25.08.2011, 06:56
Okay, as you see from my script below:
It still doesn't seem to be working.
Anymore suggestions?
What i want is that if the player attempts to exit the vehicle while his bomb is in the process of being exploded, it will put him back into the driver seat saying that you cannot do that.
pawn Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(explosion == 0)
{
return 1;
}
else if(explosion == 1)
{
new iSeat = GetPlayerVehicleSeat(playerid);
if(iSeat == 0)
{
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
SendClientMessage(playerid,COLOR_RED,"You Cannot Leave Your Car While Bomb Armed!");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Type /Disarm Bomb To Disarm it!");
}
}
return 1;
}
Anymore suggestions?
What i want is that if the player attempts to exit the vehicle while his bomb is in the process of being exploded, it will put him back into the driver seat saying that you cannot do that.