Posts: 273
Threads: 71
Joined: Sep 2011
Reputation:
0
Hey i am building my own filterscript which shall include a save system, login dialogs and VIP system but im stuck -.- i dont understand how i would create a setvip command, could someone give me a hand please?
-thanks
Posts: 209
Threads: 4
Joined: Sep 2011
Reputation:
0
Do you know how to make commands (using zcmd etc), just need to check the person using the commands has the right priviliges (is an administrator etc) and change the users vip variable (which should be apart of their main variables like position, money, cars etc) to true or 1 meaning they are VIP, then in other parts check the users VIP variable is 1 to do anything VIP specific.
Posts: 273
Threads: 71
Joined: Sep 2011
Reputation:
0
um could you link me to a tut for zcmd? please
Posts: 273
Threads: 71
Joined: Sep 2011
Reputation:
0
thanks for the reply but im very new to scripting so know nothing about that kind of thing as i can make gangmodes to a degree but cant do multiple command strings including more then 1 playerid so could you help me at all ? it would be most appreciated thanks
Posts: 209
Threads: 4
Joined: Sep 2011
Reputation:
0
It's kind of hard at the moment as i'm at work and doing it from my iPhone lol.
You need to find the main zcmd and sscanf2 (not sscanf) topics in the filterscript and include or plugin sections and follow their directions for downloading and putting the files in the correct places, plus the #includes for both.
Once you have that all good, I can write a couple things for you to test out and see how it all works, plus the main threads for zcmd amd sscanf2 give you an idea of how to use it also.
Posts: 209
Threads: 4
Joined: Sep 2011
Reputation:
0
In your sscanf you have Message with a capital M instead of small m.
Also not that using if sscanf actually fires off if there is a problem not if it's successful.
I know it's weird but a lot of people write them that way for some strange reason. So send your error message if sscanf and otherwise do your thing.
Posts: 209
Threads: 4
Joined: Sep 2011
Reputation:
0
Yeah on a side note, wouldn't IsPlayerAdmin be sufficient in whatevet command sets admin priviliges, as from then on you only need to check one thing everywhere else rather than 2 things?