29.12.2010, 19:33
I think "not getting out the car" will be a bit hard. But you could do something like this i guess...
pawn Код:
//Untested
new IsDriverOf[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
IsDriverOf[playerid] = GetPlayerVehicleID(playerid);
}
if(oldstate == PLAYER_STATE_DRIVER)
{
PutPlayerInVehicle(playerid, IsDriverOf[playerid], 0);
}
return 1;
}