RemovePlayerFromVehicle
#1

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

The function works perfectly.
Reply
#3

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;
  }
}
Reply
#4

Who told you it didn't work?
Reply
#5

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

Nope.. Works perefectly..
Reply
#7

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)