Does anyone know the problem with this ?
#3

I don't know what doesn't work.. Is it the Anti Fall or the whole thing?

Well, try this: (Yeah, i used state change here.)

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 449)
    {
       AntiFalloff[playerid] = false;
       SendClientMessage(playerid,COLOR_YELLOW,"Anti fall of bike was disabled to avoid the tram exciting bug.");
       SendClientMessage(playerid,COLOR_YELLOW,"Use /afon to re-enable it.");
       SendClientMessage(playerid,COLOR_RED,"NOTE: It is recommended to only turn it on again after you have excited the tram.");
       SetCameraBehindPlayer(playerid);
    }
    return 1;
}
And you can re-enable it automatically by on foot state > antifall true
Reply


Messages In This Thread
Does anyone know the problem with this ? - by Jay. - 24.06.2011, 19:12
Re: Does anyone know the problem with this ? - by dowster - 24.06.2011, 19:29
Re: Does anyone know the problem with this ? - by iPLEOMAX - 24.06.2011, 19:30
Re: Does anyone know the problem with this ? - by Jay. - 24.06.2011, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)