30.04.2012, 17:29
Alright as i prefer ZCMD here we go
it works like if playerid who using command is RCON admin the command will work otherwise error message
pawn Код:
CMD:adminsay(playerid , params[])
{
if(IsPlayerAdmin(playerid)
{
//here goes all code
new string[128],pName[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid , -1 , "Add a message /adminsay <msg>");
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"%s: %s",pName,params);
SendClientMessageToAll(0xFFFFFF, string);
//-------
}else SendClientMessage(playerid , -1 , "You Not RCON admin");
return 1;
}