24.06.2011, 19:30
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.)
And you can re-enable it automatically by on foot state > antifall true
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;
}