27.06.2011, 10:13
I kind of forgot how to do this:
But at my command:
If you used that the rank is higher then 10 it should return a message that you can't do it higher then 10.
I tried like: if(rank) and then I got stuck xD
But at my command:
If you used that the rank is higher then 10 it should return a message that you can't do it higher then 10.
pawn Код:
COMMAND:spr(playerid,params[])
{
new rank;
if(PlayerInfo[playerid][pFrank] <9) return SendClientMessage(playerid,COLOR_GREY,"You have to be rank 9+ in a faction to use this command.");
if(sscanf(params,"ud",id,rank)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /spr [playerid] [factionrank]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_GREY,"This player is not connected");
return 1;
}