05.11.2009, 11:38
I have created my new Register system, it works good so far, I have also maked a pRank, it saves my Police Rank, I will add /giverank soon...
But that is not the problem, if I make myself Rank 1, and I got a command that looks like this...
I got this also in it...
The problem is that if a Player with Rank 1 tries to use the cmd, it just tells me Identification Error - You need LAE Rank 1 to do this...
But if I put the Player to Rank 2, he/her can use the cmd...
I want players with Rank 1 to use this cmd, not Only higher ranks...
Thanks
But that is not the problem, if I make myself Rank 1, and I got a command that looks like this...
Код:
if (strcmp("/ra", cmdtext, true, 3) == 0) { if(GetPlayerTeam(playerid) != 8) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You are not a Police Officer."); if(PlayerInfo[playerid][pRank] <= 1) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You need LAE Rank 1 to do this."); if(cmdtext[3] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /ra [text]"); new playername[26]; GetPlayerName(playerid, playername, 26); format(string, sizeof(string), "Radio Call from Officer %s:%s, over**", playername, cmdtext[3]); for(new i=0;i<MAX_PLAYERS;i++) { if(GetPlayerTeam(playerid) == 8) { SendClientMessage(i, 0x0000FFFF, string); } } return 1; }
Код:
if(PlayerInfo[playerid][pRank] <= 1)
But if I put the Player to Rank 2, he/her can use the cmd...
I want players with Rank 1 to use this cmd, not Only higher ranks...
Thanks