How to do this when in vehicle?
#2

Quote:
Originally Posted by Torran
pawn Код:
CMD:eject(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
    else
    {
    RemovePlayerFromVehicle(playerid);
    SetPlayerVelocity(playerid,0.0,0.0,5.0);
    }
    return 1;
}
...
Still not working So how would i do this right?
How about this:
pawn Код:
CMD:eject(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
      RemovePlayerFromVehicle(playerid);
        SetPlayerVelocity(playerid,0.0,0.0,5.0);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
    }
    return 1;
}
Reply


Messages In This Thread
How to do this when in vehicle? - by Torran - 25.02.2010, 14:35
Re: How to do this when in vehicle? - by Virtual1ty - 25.02.2010, 14:41
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 14:43
Re: How to do this when in vehicle? - by aircombat - 25.02.2010, 16:06
Re: How to do this when in vehicle? - by Kurence - 25.02.2010, 16:08
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 16:13
Re: How to do this when in vehicle? - by Torran - 25.02.2010, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)