30.07.2015, 20:35
PHP код:
if (strcmp(cmd, "/vips", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_VERDE, "Vips Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(JogadorInfo[i][pAdmin] < 1340)
{
if(JogadorInfo[i][pVIP] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "VIP: %s[VIP Bronze][%d dias]", sendername, JogadorInfo[i][pDiaVIP]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pVIP] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256, "VIP: %s[VIP Prata][%d dias]", sendername, JogadorInfo[i][pDiaVIP]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(JogadorInfo[i][pVIP] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256, "VIP: %s[VIP Ouro][%d dias]", sendername, JogadorInfo[i][pDiaVIP]);
SendClientMessage(playerid, 0xFFFF00FF, string);
}
}
}
}
}
}