SA-MP Forums Archive
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: Help! (/showthread.php?tid=663139)



Help! - Di3gosPOW3 - 23.01.2019

i'm creating a samp server and i'm trying to do the /v command but when i spawn the vehicle and i use it after it blow up or like go under water the vehicle respawn, can somebody please help me?

CODE:

CMD:v( playerid, params[] )
{
new
modelid,
Float:zPos[ 3 ];


if( sscanf( params, "i", modelid ) ) SendClientMessage( playerid, 0xFFFFFF, "[ > ]{FF7E7E} Command USAGE: /v [id]" );
else
{
GetPlayerPos( playerid, zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] );
CreateVehicle( modelid, zPos[0], zPos[ 1 ], zPos[ 2 ], 0, random(255), random(255), 60);
}
return true;
}


Re: Help! - HNIC - 23.01.2019

Code:
CreateVehicle( modelid, zPos[0], zPos[ 1 ], zPos[ 2 ], 0, random(255), random(255), -1);
Change the CreateVehicle line to this, it should do the job.


Re: Help! - Di3gosPOW3 - 23.01.2019

Don't work do you know like another method to do the /v in samp?


Re: Help! - HNIC - 23.01.2019

Quote:
Originally Posted by Di3gosPOW3
View Post
Don't work do you know like another method to do the /v in samp?
https://sampforum.blast.hk/showthread.php?tid=603456
You could always use a filterscript.