25.03.2019, 08:01
Code:
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][pAdmin] == 1) { new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF2400}[King] "; GetPlayerName(playerid, pName, 24); format(String, sizeof(String), "%s%s%s{FFFFFF}[%d]: {FFFFFF}%s {FFFFFF}%s", Prefix, TeamColor[gTeam[playerid]], pName, playerid, text); SendClientMessageToAll(-1,String); return 1; } if(PlayerInfo[playerid][pVip] > 0) { new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF2400}[VIP+] "; GetPlayerName(playerid, pName, 24); format(String, sizeof(String), "%s%s%s{FFFFFF}[%d]: {FFFFFF}%s {FFFFFF}%s", Prefix, TeamColor[gTeam[playerid]], pName, playerid, text); SendClientMessageToAll(-1,String); return 1; } HideClassTextdraw(playerid); return 0; }