[HELP] Connect Ranks to Commands? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Connect Ranks to Commands? (
/showthread.php?tid=86779)
[HELP] Connect Ranks to Commands? -
FreddeN - 15.07.2009
I have maked a register system that also counts in your rank, also a /giverank cmd with ranks from 0 to 10.
This is a cmd I'm testing on:
Код:
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
if (PlayerInfo[playerid][pRank] == 1)
SetPlayerHealth(playerid, 0.0);
return 1;
}
It works, I mean that it's connected to Rank 1, but...
I want all higher ranks to use it to, but they are not allowed to use it, example I'm rank 10, and it dont let me use the cmd's that are connected to lower ranks etc...
Thanks for help
Re: [HELP] Connect Ranks to Commands? -
refshal - 15.07.2009
pawn Код:
if(PlayerInfo[playerid][pRank] >= 10)