List Command Help (+Rep)
#4

err

pawn Код:
if(strcmp(cmdtext,"/VipList",true) == 0)
{
    printf("[INFO]: \"%s\" Typed /VipList",GetName(playerid));
    if(IsPlayerConnected(playerid))
{
    new count = 0;
    SendClientMessage(playerid,COLOR_WHITE,"--- ViP ---");
    for(new i=0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
{
    if(IsPViP(i))
{
    SendClientMessage(playerid,COLOR_WHITE,"--- ViP ---");
    format(string,sizeof(string),"%d) \"%s\" [id: %d | ViP Level: %d]",i,GetName(i),i,GetVipLevel(i));
    SendClientMessage(playerid,COLOR_YELLOW,string);
    count++;
}
}
}
    SendClientMessage(playerid,COLOR_WHITE,"--- ViP  ---");
    if(count == 0) return SendClientMessage(playerid,COLOR_RED,"! no VIP");
}
return 1;
}
Reply


Messages In This Thread
List Command Help (+Rep) - by _DownLoaD_ - 07.03.2012, 20:44
Re: List Command Help (+Rep) - by SnG.Scot_MisCuDI - 07.03.2012, 20:50
Re: List Command Help (+Rep) - by _DownLoaD_ - 07.03.2012, 21:01
Re: List Command Help (+Rep) - by Mike_Peterson - 07.03.2012, 22:22
Re: List Command Help (+Rep) - by _DownLoaD_ - 08.03.2012, 04:33
Re: List Command Help (+Rep) - by _DownLoaD_ - 08.03.2012, 04:48
Re: List Command Help (+Rep) - by Shabi RoxX - 08.03.2012, 05:25
Re: List Command Help (+Rep) - by _DownLoaD_ - 08.03.2012, 05:51
Re: List Command Help (+Rep) - by Shabi RoxX - 08.03.2012, 06:04
Re: List Command Help (+Rep) - by _DownLoaD_ - 08.03.2012, 08:09

Forum Jump:


Users browsing this thread: 2 Guest(s)