25.08.2010, 04:27
oh my bad lol
easier
pawn Код:
if(strcmp(cmdtext, "/eject", true) == 0)
{
if(IsPlayerInAnyVehicle)
{
new Float:X,Float:Y,Float:Z;
RemovePlayerFromVehicle(playerid);
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z+5);
GivePlayerWeapon(playerid,46,1);
return 1;
} else SendClientMessage(playerid,red,"You are not in a vehicle");
return 1;
}