How to do this when in vehicle?
#5

Quote:
Originally Posted by Torran
Thats not the problem,
The problem is its not setting my velocity,

if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");

Is better than

pawn Код:
CMD:eject(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
STUFF
}
else
{
STUFF
}
return 1;
}
use return before SendClientMessage:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
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)