Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Command HELP

$
0
0
Hi guys i am trying to make /vips command to see the online vips but when i type it it shows all online players as Vips
Code:

CMD:vips(playerid, params[])
{
        new vipstring[2000],count=0;
        if(IsPlayerConnected(playerid))
        {
            for (new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                if(vipmember[playerid] > 0)
                    {
                        format(vipstring, sizeof(vipstring),"{ffffff}%s%s (ID:%d)\n", vipstring, RPN(i), playerid);
                        count++;
                    }
                }
            }
            ShowPlayerDialog(playerid, 117,DIALOG_STYLE_MSGBOX,"{B266FF}Online VIPs:",vipstring,"Close","");
        }
        if(count == 0) return SendClientMessage(playerid,COLOR_RED,"There are no VIP's online.");
        return 1;

}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>