21.01.2010, 16:52
Is there such callback as, OnPlayerExitVehicle,
Or anything simular or what would do the same thing?
Or anything simular or what would do the same thing?
Originally Posted by ๔๏קקєyy
Why need a other one if you want the exact same thing as OnPlayerExitVehicle ?
[Doppeyy |
Originally Posted by JoeDaDude
Quote:
If it dosent then one that would do the same thing |
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_ONFOOT && (oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER))
{
// your code.
}
return true;
}
// array.
new
Engine[MAX_VEHICLES]; // change it to your own vehicle_define.
// code.
new
vehicleid = GetPlayerVehicleID(playerid);
Engine[vehicleid] = 1;
Originally Posted by Don Correlli
pawn Код:
|
Originally Posted by Don Correlli
Then i guess you're looking for this:
Quote:
That code will get the ID of the vehicle in which the player is in currently and set its Engine variable to 1. |
Originally Posted by JoeDaDude
Ok whatcha mean by this: // change it to your own vehicle_define.
|
Engine[12];
Engine[MAX_VEHICLES_12];
Originally Posted by JoeDaDude
pawn Код:
|