SA-MP Forums Archive
problem with anti fall off - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with anti fall off (/showthread.php?tid=87447)



problem with anti fall off - stinkiwinki - 20.07.2009

hey, i'm using this anti fall off script: http://forum.sa-mp.com/index.php?topic=50627.0

but it has some problems when i wanne eject someone out of his car he just goes back in the car

this antifall off also works for cars so extremely annoying for me how can i get it only to work for bikes?

if i teleport somewhere while in a car/bike i go to the position but like 2 secs after that i go back to my car i alreaddy added this to my teleport:if(InCar[playerid] == O) but it still wont work


ps i use the version without cmd

help plz


Re: problem with anti fall off - refshal - 20.07.2009

Ask in the script's thread.


Re: problem with anti fall off - M4S7ERMIND - 20.07.2009

Try adding
Код:
InCar[targetid] = 0;
above
Код:
RemovePlayerFromVehicle(targetid);
and every other command, where playerstate changes.

pawn Код:
stock IsBike(carid) {

  new Bikes[] = { 581, 462, 521, 463, 522, 523, 461, 448, 471, 468, 586, 509, 481, 510 };
  for(new i = 0; i < sizeof(Bikes); i++) {
    if(GetVehicleModel(carid) == Bikes[i]) return 1;
  }
  return 0;
}
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT)
{
  if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
  {
    if(IsBike(GetPlayerVehicleID(playerid)) {
      InCar[playerid] = 1;
      WhatCar[playerid] = GetPlayerVehicleID(playerid);
    }
  }
}



Re: problem with anti fall off - stinkiwinki - 20.07.2009

Quote:

Try adding
Code:

InCar[targetid] = 0;

above
Code:

RemovePlayerFromVehicle(targetid);

and every other command, where playerstate changes.

this in my gamemode or in the filterscript of antifalloff?


Re: problem with anti fall off - Pawno_Master - 20.07.2009

You need to put that under every command that will remove a player from his Car


Re: problem with anti fall off - stinkiwinki - 20.07.2009

i added evrything to the antifall off script but now antifall off wont work for the bikes also


but teles work now


Re: problem with anti fall off - refshal - 20.07.2009

Quote:
Originally Posted by еddy
Ask in the script's thread.