29.05.2010, 06:57
Quote:
Originally Posted by _Jay_
How would (inefficiently) checking if a vehicle is occupied resolve the problem?
It could be anything - check OnPlayerInteriorChange and OnPlayerEnterExitModShop. The vehicle may not necessary be respawning. Debug OnVehicleSpawn. |
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { if((newinteriorid == 5 || newinteriorid == 2 || newinteriorid == 12) && GetPlayerVirtualWorld(playerid) == 0) SetPlayerVirtualWorld(playerid, 1); if((oldinteriorid == 5 || oldinteriorid == 2 || oldinteriorid == 12) && newinteriorid == 0 && GetPlayerVirtualWorld(playerid) == 1) SetPlayerVirtualWorld(playerid, 0); return 1; }