27.02.2011, 11:47
Wondering if someone could fix this sort of bug, Explaination of bug:
If player uses command "/cheetah", Vehicle respawns on his position and facing the right angle.
If player enters the vehicle, starts driving and suddenly crashes the vehicle, engine on fire and explodes...
The vehicle will dissapear and actually RESPAWN at the place where the player used the command "/Cheetah"..
What I want to get fixed is that when the vehicle crashes, engine on fire and explodes. The vehicle just dissapears.
PLEASE READ CAREFULLY BEFORE POSTING!
PAWN codes of the current command.
If player uses command "/cheetah", Vehicle respawns on his position and facing the right angle.
If player enters the vehicle, starts driving and suddenly crashes the vehicle, engine on fire and explodes...
The vehicle will dissapear and actually RESPAWN at the place where the player used the command "/Cheetah"..
What I want to get fixed is that when the vehicle crashes, engine on fire and explodes. The vehicle just dissapears.
PLEASE READ CAREFULLY BEFORE POSTING!
PAWN codes of the current command.
pawn Код:
if (strcmp("/cheetah", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,COLOR_RED,"You are already in a vehicle!");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid)) {
new vehicleid;
new Float:X,Float:Y,Float:Z,Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
GetPlayerVehicleID(playerid);
vehicleid = vehicleid = CreateVehicle(415,X,Y,Z,Angle,-1,-1,600);
PutPlayerInVehicle(playerid, vehicleid, 0);
}
return 1;
}