#1

Hello again,
I am still working on my RP mode and this time I attempted to create a command of /acuspawn which spawns a vehicle by its ID, this command is only for detectives, I attempted to do it but I don't know how to create it since I am a beginner.
Thank you in advance, volcaN131.
Reply
#2

you want this:
pawn Код:
CMD:veh(playerid,params[])
{
    new id,cor,cor1;
    if(sscanf(params, "ddd", id, cor,cor1))  SendClientMessage(playerid,-1, ,"USO: /veh [model] [color1] [color2]");
    else if (id < 400 || id > 611)  SendClientMessage(playerid,-1, "Between 400 and 611");
    else if (cor < 0 || cor1 > 126) SendClientMessage(playerid,-1, "Color between 0 and 126");
    else
    {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid, X,Y,Z);
            CreateVehicle(id,X+2,Y,Z,0.0,cor,cor1,-1);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)