31.03.2017, 16:23
PHP Code:
CMD:vips(playerid)
{
new string[90];
SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
new count= 0;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[playerid] == true)
{
if(IsPlayerVip(i))
{
format(string,90,"Vip: %s", Nome(i));
SendClientMessage(playerid, -1, string);
count++;
}
}
}
}
if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
return 1;
}