11.08.2013, 18:40
Just add a simple variable.
pawn Код:
new bool: isVIP[MAX_PLAYERS] = {false, ...};
if(APlayerData[playerid][PlayerLevel] >= 1 && !isVIP[playerid])
{
new oldname[MAX_PLAYER_NAME], newname[MAX_PLAYER_NAME];
GetPlayerName(playerid, oldname, sizeof oldname);
format(newname, sizeof newname, "[VIP]%s", oldname);
SetPlayerName(playerid, newname);
SetPlayerColor(playerid, 0xFFFF00AA);
isVIP[playerid] = true;
}
return 1;
}