22.09.2010, 18:13
if (strcmp(cmd, "/vips", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "~x Vips Online: x~");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pVIP] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "VIP: %s[VIP Normal]", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
else if(PlayerInfo[i][pVIP] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256, "VIP: %s[VIP Premium]",sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
Nao aparece os vips online .... POr faovr ajuda
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "~x Vips Online: x~");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pVIP] == 3)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "VIP: %s[VIP Normal]", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
else if(PlayerInfo[i][pVIP] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256, "VIP: %s[VIP Premium]",sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
Nao aparece os vips online .... POr faovr ajuda