02.05.2010, 18:15
I have this thing for hydra, Cause my mate likes doing stunts in hydra and he always wants to show me, Anyway i like radio in cars/planes/helicopters/boats/bikes ect, So hydra passenger from seif ect dont have radio.. So im using PutPlayerInVehicle and i know if i pressed f or enter it would make me crash, So i did this:
So if i press F or enter when in the plane, It puts me right in middle of the plane, Inside it, And i cant see my player, Why? Anyone help
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
GetXYBesidePlayer(playerid, x, y, 1);
SetPlayerPos(playerid, x, y, z);
}
}
return 1;
}