#1

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;
}
Reply
#2

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.
Reply
#3

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)