How can i do this?
#1

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:

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;
}
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
Reply


Messages In This Thread
How can i do this? - by Torran - 02.05.2010, 18:15
Re: How can i do this? - by Torran - 03.05.2010, 09:34
Re: How can i do this? - by park4bmx - 03.05.2010, 09:50
Re: How can i do this? - by Torran - 03.05.2010, 09:52
Re: How can i do this? - by Desert - 03.05.2010, 09:56
Re: How can i do this? - by Torran - 03.05.2010, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)