28.01.2015, 03:58
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
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
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);
Car1 = AddStaticVehicleEx (520,X,Y,Z,A,-1,-1,-1); -1 on the end is for the vehicle not to respawn