22.08.2015, 12:15
Hello, I'm trying to change the player Text Like this : [VIP]PlayerName[ID]: Smth
But I don't know what I'm doing wrong, any help? Thanks.
But I don't know what I'm doing wrong, any help? Thanks.
Код:
public OnPlayerText(playerid, text[]) { if(pInfo[playerid][VIPlevel] == 1) { new pName[MAX_PLAYER_NAME], msg[200], string[128]; GetPlayerName(playerid, pName, sizeof(pName)); SetPlayerColor(playerid, 0x009900); format(string, sizeof(string), "{000099}[VIP]| %s [%d]:{7F7F7F} %s", pName, playerid, msg); SendPlayerMessageToAll(playerid, string); return 0; } return 1; }