10.10.2009, 19:08
Hey Guys, yet again i'm having a problem. Can you guys help?
Thanks.
-Mike.
pawn Код:
if(!strcmp(cmdtext, "//", true, 2)) // Admin chat
{
if(AccountInfo[playerid][AdminLevel] == 5) { format(string, sizeof(string), "[!] Owner %s: %s [!]", sendername, result); }
else if(AccountInfo[playerid][AdminLevel] == 4) { format(string, sizeof(string), "[!] Lead Admin %s: %s [!]", sendername, result); }
else if(AccountInfo[playerid][AdminLevel] == 3) { format(string, sizeof(string), "[!] Admin %s: %s [!]", sendername, result); }
else if(AccountInfo[playerid][AdminLevel] == 2) { format(string, sizeof(string), "[!] Moderator %s: %s [!]", sendername, result); }
else if(AccountInfo[playerid][AdminLevel] == 1) { format(string, sizeof(string), "[!] Trial Admin %s: %s [!]", sendername, result); }
else
{
format(string, sizeof(string), "[!] Trial %s: %s [!]", sendername, result);
}
SendClientMessageToAdmins(DARKPINK, string, 1);
printf("[!]: %s", string);
return 1;
}
else return SendClientMessage(playerid, RED, "You are not an admin!");
}
}
-Mike.