smuggle command help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: smuggle command help (
/showthread.php?tid=376232)
smuggle command help -
0utLaW_ - 09.09.2012
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.
Re: smuggle command help -
0utLaW_ - 09.09.2012
Any one ?
Re: smuggle command help -
antonio112 - 09.09.2012
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.