SA-MP Forums Archive
RemovePlayerFromVehicle - 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: RemovePlayerFromVehicle (/showthread.php?tid=80037)



RemovePlayerFromVehicle - Hot - 01.06.2009

This function doesn't work, is there a way to simple make the player leave the vehicle, could be with no anim. Thanks.


Re: RemovePlayerFromVehicle - Gamer007 - 01.06.2009

The function works perfectly.


Re: RemovePlayerFromVehicle - MenaceX^ - 01.06.2009

pawn Код:
stock RemovePlayerFromVehicleEx(playerid)
{
  if(!IsPlayerConnected(playerid)) return 0;
  if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER||GetPlayerState(playerid)==PLAYER_STATE_PASSENGER&&IsPlayerInAnyVehicle(playerid))
  {
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(playerid,x,y,z+2);
    return 1;
  }
}



Re: RemovePlayerFromVehicle - lol2112 - 01.06.2009

Who told you it didn't work?


Re: RemovePlayerFromVehicle - MenaceX^ - 01.06.2009

Quote:
Originally Posted by lol2112
Who told you it didn't work?
It was written + imporved somewhere.


Re: RemovePlayerFromVehicle - eXchainZ-FoReVeR - 02.06.2009

Nope.. Works perefectly..


Re: RemovePlayerFromVehicle - Blacklite - 02.06.2009

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Will remove a player from their vehicle instantly.


Re: RemovePlayerFromVehicle - MenaceX^ - 02.06.2009

Quote:
Originally Posted by Blacklite
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Will remove a player from their vehicle instantly.
That's a nice idea, I'll try it soon.
Quote:
Originally Posted by eXchainZ-FoReVeR
Nope.. Works perefectly..
It doesn't work while you're driving.