05.05.2011, 10:23
Oh,, i didn't notice this:
Can i just make an extra public OnPlayerStateChange, or do i have to put it in here?
pawn Код:
#if EnableSpec == true // <-------------------
//==============================================================================
public OnPlayerStateChange(playerid, newstate, oldstate)
{
switch(newstate)
{
case PLAYER_STATE_ONFOOT:
{
switch(oldstate)
{
case PLAYER_STATE_DRIVER: OnPlayerExitVehicle(playerid,255);
case PLAYER_STATE_PASSENGER: OnPlayerExitVehicle(playerid,255);
}
}
}
return 1;
}
#endif // <---------------------