Vehicle must not respawn
#4

use this from my new vehicle script im creating

on top of your script put this

new Float:X,Float:Y,Float:Z,Float:A;
new Car1;

below make a cmd like /hydra


pawn Код:
new vehicleid;
vehicleid= GetPlayerVehicleID(playerid);
DestroyVehicle(vehicleid);
GetPlayerPos(i,X,Y,Z);
GetPlayerFacingAngle(i,A);
Car1 = AddStaticVehicleEx (520,X,Y,Z,A,-1,-1,-1);
PutPlayerInVehicle(playerid,Car1,0);
GameTextForPlayer(playerid,"HYDRA",4000,1);
this checks if a player is in the vehicle and detroys current vehicle and give the player a new vehicle

Car1 = AddStaticVehicleEx (520,X,Y,Z,A,-1,-1,-1); -1 on the end is for the vehicle not to respawn
Reply


Messages In This Thread
Vehicle must not respawn - by vassilis - 28.01.2015, 02:40
Re: Vehicle must not respawn - by Columbian - 28.01.2015, 03:27
Re: Vehicle must not respawn - by Arxalan - 28.01.2015, 03:48
Re: Vehicle must not respawn - by andrewgrob - 28.01.2015, 03:58
Re: Vehicle must not respawn - by Lynn - 28.01.2015, 04:45
Re: Vehicle must not respawn - by vassilis - 29.01.2015, 03:05

Forum Jump:


Users browsing this thread: 1 Guest(s)