16.08.2010, 23:11
if it doesn't work use this
Код:
GetPlayerName(playerid, sendername, sizeof(sendername)); new atext[64]; if(PlayerInfo[playerid][pAdmin] == 1){ atext = "Moderator/Trail Admin(1)"; } else if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin(2)"; } else if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin(3)"; } else if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Head Admin(4)"; } else if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Elite Admin(1337)"; } else if(PlayerInfo[playerid][pAdmin] == 1337) { atext = "Server Scripter(1337)"; } else if(PlayerInfo[playerid][pAdmin] == 1338) { atext = "Server Owner(1338)"; } format(string, sizeof(string), "%s %s: %s", atext, sendername, result);