smuggle command help
#1

pawn Код:
if (strcmp("/smuggle", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 482)
according to command if player is in vehicle number ID 482 his mission start, but he has to find a vehicle first
how to add a command that spawns vehicle number 482 when player types /SMUGGLE ?

Help please.
Reply
#2

Any one ?
Reply
#3

pawn Код:
if (strcmp("/smuggle", cmdtext, true, 10) == 0)
    {
        new Float:Pos[3];
        GetPlayerPosition(playerid, Pos[0], Pos[1], Pos[2]);
        CreateVehicle(482, Pos[0], Pos[1], Pos[2], 82.2873, 0, 1, -1);
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 482)
Here it is but I don't know why you'd want to create a vehicle everytime you use /smuggle command but since you asked for this, I did it for you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)