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

Spawning Vehicle help

$
0
0
Code:

CMD:myveh(playerid, params[])
{
        if(GetPVarInt(playerid, "Admin") >= 7)
        {
                if(GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
                if(IsPlayerConnected(playerid))
                {
                        if(isnull(params))
                        {
                                SCM(playerid, COLOR_ERROR, "USAGE: /myveh [name]");
                                SCM(playerid, COLOR_GREY, "Available names: Sabre, FBITruck");
                                return 1;
                        }
                        if(strcmp(params,"Sabre",true) == 0)
                        {
                                //
                            }
                        if(strcmp(params,"FBITruck",true) == 0)
                        {
                                //
                        }
                }
        }
        else SendClientMessage(playerid, COLOR_ERROR, "You do not have access to this command!");
        return 1;
}

How do I make this command to work like /myveh [name] [color1] [color2]

Viewing all articles
Browse latest Browse all 18226

Trending Articles



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