03.11.2013, 11:49
Hello everyone and good morning. I hope it is bright and sunny where you are! I need some help from you all though. I have ******d Admin systems and permission systems for SAMP. While I found a lot of them none of them are simple enough for me. What I mean is I do not want 50+ features. I just want my commands to be controlled. I want to be able to control what players get what commands. Nothing more nothing less.
Here is what one of my commands look like. This happens to be a command for spawning weapon set 2;
With commands like these what would I need to do in order to add a permission like system to all my commands? Again all I am looking for is something that checks to see if the user is a 0, 1, 2, or 3.
0 = User
1 = Trusted User
2 = Admin
3 = Owner
Any and all help is appreciated. I always +Rep those who earn it! Thanks for reading guys and gals, and make sure to have a wonderful day!!
-
0Z3ro0
Here is what one of my commands look like. This happens to be a command for spawning weapon set 2;
Код:
CMD:set2(playerid, params[]) { GivePlayerWeapon(playerid, 1, 1); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 12, 1); GivePlayerWeapon(playerid, 16, 10); GivePlayerWeapon(playerid, 23, 150); GivePlayerWeapon(playerid, 26, 125); GivePlayerWeapon(playerid, 32, 200); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 33, 175); GivePlayerWeapon(playerid, 37, 1500); SendClientMessage(playerid, COLOR_YELLOW, "You've been granted weapon set 2!"); return 1; }
0 = User
1 = Trusted User
2 = Admin
3 = Owner
Any and all help is appreciated. I always +Rep those who earn it! Thanks for reading guys and gals, and make sure to have a wonderful day!!
-
0Z3ro0