Forum
CS2D Scripts Hats for VIP and above.Hats for VIP and above.
8 Antworten 1
Here is an example of a script (took me just few seconds to search):
HC Admin Script 1.9.3 (226)
Beside from hats feature, the above ranks group such as Moderator or Admin have particular privileges or powers to punish the players who are violating the rules of a server. All of these groups have (include the V.I.P rank as well) already the privilege regard Hats.
Then here it is.
Inform about any issues you find toward this script.
1
if variableForVIP[id] == true then -- or 1 instead of true
Hope that helps
Well, I made it by saying "!hats".
Therefore, by just saying !hats, a menu will come out and then you will be able to use the hats.
You can change it though.
1
2
3
4
5
6
2
3
4
5
6
addhook ("serveraction","Hatsmenu") function Hatsmenu(id, action) 	if action == 1 -- Which 1 refers to F2 button, you can change also to 2 or 3, your choice 		menu(id,"Hats menu, First hat, Second hat, Third hat, Remove the recent hat!") -- This is the menu list with hats in it, you can add more in your choice 	end end
Which "First hat" is the first button and whenever you're clicking it, the specific hat appears. What I told here is only the basics, the rest you can find it yourself and it's your choice if you want to stay with THEMUD which contains "!hats" command that opens the menu (NOTE: THEMUD's method regard opening a menu with a command by saying it uses say hook) or using this method.
Edit1: And seeing as you are a newbie scripter, I'd recommend to everyone (even to you) to read first this CS2D scripting in Lua by ohaz. This tutorial helped me quite a lot with the first basics and a good start to practise.
CS2D Scripting in Lua by Ohaz
Don't get so hype though because when you start practising, you'll have a long road to go but it's worth it. After that, I'd also recommend this Lua pil for beginners to fulfil further basics in Lua.
http://www.lua.org/pil/1.html
You can find also other useful tutorials out there in Unreal Software to cover your needs by searching.
Good luck and hope it was helpful somehow!
2× editiert, zuletzt 15.11.15 15:00:02
1