[HELP] Connect Ranks to Commands?
#1

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
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pRank] >= 10)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)