19.03.2009, 14:20
loose identiation isn't en error.
Have fun.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys==KEY_SECONDARY_ATTACK)
{
OnPlayerCommandText(playerid,"/enter");
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
if(EngineStatus[GetPlayerVehicleID(playerid)] == 0)
{
RemoveDriverFromVehicle(playerid);
}
if(OutOfFuel[playerid])
{
RemoveDriverFromVehicle(playerid);
OutOfFuel[playerid] = 0;
}
}
return 1;
}