27.10.2011, 17:32
Hello, Can someone add a Rank System to this Command
Example: (( Rank 1 Admin seanny: message ))
(( Rank 2 Admin seanny: message ))
and et cetra
pawn Код:
CMD:a(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[160];
if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid, COLOR_LIGHTRED,"[D-RP]: {FFFFFF}You are Not an Administrator");
if(isnull(params)) return SendClientMessage(playerid,COLOR_LIGHTRED,"[D-RP]: {FFFFFF}/a [Admin Chat]");
GetPlayerName(playerid,sendername,sizeof(sendername));
sendername[strfind(sendername,"_")] = ' ';
format(string,160,"(( %d Admin %s: %s ))",PlayerInfo[playerid][pAdmin],sendername,params);
SendAdminMessage(COLOR_LIGHTRED,string);
return 1;
}
(( Rank 2 Admin seanny: message ))
and et cetra