10.11.2009, 16:50
How do I stop a player from leaving any vehicle?
if (newstate == PLAYER_STATE_ONFOOT)
{
if(oldstate == PLAYER_STATE_DRIVER)
{
new veh = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid,veh);
}
}
public OnPlayerExitVehicle(playerid,vehicleid)
{
PutPlayerInVehicle(playerid,vehicleid,GetPlayerVehicleSeat(playerid));
return 1;
}
Originally Posted by Zinglish
Lolz, I've thought of that, but won't it play the get out animation, then spawn the play back in the vehicle
I'll try that later, I just don't want it to play the animation of the player getting out. |
Originally Posted by ►Peter Corneile [ideal-host.co.uk
◄ ]
Quote:
|
Originally Posted by Zinglish
Quote:
|