12.01.2010, 17:15
And also this would be working and simplier method
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_CROUCH))
{
if(IsAPlane(GetPlayerVehicleID(playerid))
{
GivePlayerWeapon(playerid,46,1);
new Float:pos[3]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
SetPlayerPos(playerid,pos[0],pos[1],pos[2]+30);
GameTextForPlayer(playerid, "EJECTING", 5000, 5);
}
}
}