Quote:
Originally Posted by xVIP3Rx
Can't use case in that case, because it's not the same variable,
read this
A better way to do it.
pawn Код:
public OnPlayerText(playerid, text[]) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(PlayerInfo[playerid][pAdmin]) format(string,sizeof(string),"{993300}[ADMIN] {%06x}%s {999999}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); else if(PlayerInfo[playerid][pDonator]) format(string,sizeof(string),"{FF6600}[DONATOR] {%06x}%s {999999}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); else format(string,sizeof(string),"%s {999999}[%i]: {FFFFFF}%s", name, playerid, text); SendClientMessageToAll(GetPlayerColor(playerid), string); return 0; }
|
Okay,if its RP Mode,eazy use ProxDetector than "SendClientMessageToAll" )))