08.12.2011, 00:29
pawn Код:
if(strcmp(text,"#",true, 1) == 0)
{
if(PlayerInfo[playerid][pAdminLevel] >= 1)
{
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
switch(PlayerInfo[playerid][pAdminLevel])
{
case 1: LevelName = "Moderator";
case 2: LevelName = "Administrator";
case 3: LevelName = "Senior Administrator";
case 4: LevelName = "Main Administrator";
case 5: LevelName = "Head Administrator";
case 6: LevelName = "Senior Head Administrator";
case 7: LevelName = "Trusted Administrator";
case 8: LevelName = "Owner";
}
strdel(text, 0, 1);
format(string,sizeof(string),"[Admin Chat] %s %s: %s",LevelName,pname,text);
SendClientMessageToAdmins(COLOR_BLUE,string);
}
else return 0;
return 0;
}