25.02.2010, 14:35
pawn Код:
CMD:eject(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
else
{
SetPlayerVelocity(playerid,0.0,0.0,5.0);
}
return 1;
}
pawn Код:
CMD:eject(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
SetPlayerVelocity(playerid,0.0,0.0,5.0);
}
return 1;
}
So i tried..
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;
}