11.05.2013, 18:02
pawn Код:
CMD:vip(playerid, params[]) {
if(Player[playerid][pVIP] < 1)
return SendClientMessage(playerid, COLOR_RED, "{FFFFFF}|FAIL|{BEBEBE} Vocк nгo й um vip. Consulte nosso /forum e saiba como se tornar um.");
if(isnull(params))
return SendClientMessage(playerid, COLOR_GREY, "{FFFFFF}|USO|{BEBEBE} /vip [chat]");
static i, cStr[128], Nome[MAX_PLAYER_NAME];
format (cStr, sizeof cStr, "%s %s: %s, cвmbio.", AccountVIP(playerid), (GetPlayerName(playerid, Nome, MAX_PLAYER_NAME), Nome), params);
for ( i = GetMaxPlayers() - 1; i != -1; --i) {
if (IsPlayerConnected(i) && Player[i][pVIP] != 0)
SendClientMessage(i, COLOR_GREEN, cStr);
}
return true;
}