CMD:vips(playerid, params[])
{
new Str[85];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pVip[playerid][Vip] >= 1)
{
format(Str,sizeof(Str), "{FFFF00}%s: {FFFFFF}%s", GetName(i));
ShowPlayerDialog(playerid, DialogVips, DIALOG_STYLE_MSGBOX, "Jogadores VIPs", Str, "X", "");
}
}
}
if(pVip[playerid][Vip] <= 0)
{
format(Str,sizeof(Str), "Nenhum jogador vip estб online!");
ShowPlayerDialog(playerid, DialogVipsOff, DIALOG_STYLE_LIST, "Jogadores VIPs", Str, "X", "");
}
return 1;
}
CMD:vips(playerid)
{
new strings[85];
new count;
SendClientMessage(playerid, 0x33AAFFFF, "•~~~~~~~~ Jogadores VIP online ~~~~~~~~•");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pVip[playerid][Vip] >= 1)
{
if(IsPlayerConnected(i))
{
format(strings, sizeof(strings), "%s", GetName(i));
SendClientMessage(playerid, 0xE3E3E3FF, strings);
count++;
}
}
}
if(count == 0)
return SendClientMessage(playerid, 0xD8D8D8FF, "Nгo tem nenhum jogador vip on-line!");
return true;
}
CMD:vips(playerid, params[])
{
new Str[85], StrDialog[300], cont;
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && pVip[i][Vip] >= 1)
{
format(Str,sizeof(Str), "{FFFF00}%s: {FFFFFF}%i\n", GetName(i), pVip[i][Vip]);
strcat(StrDialog, Str);
cont++;
}
}
if(cont != 0) ShowPlayerDialog(playerid, DialogVips, DIALOG_STYLE_MSGBOX, "Jogadores VIPs", StrDialog, "X", "");
else ShowPlayerDialog(playerid, DialogVipsOff, DIALOG_STYLE_LIST, "Jogadores VIPs", "Nenhum jogador vip estб online!", "X", "");
return 1;
}
Scavenge and Survive й um servidor de sobrevivкncia no samp, uma mistura de DayZ com Minecraft codado por Southclaw. |