Player Location?
#2

GetPlayerVehicleSeat


Maybe something like this?

pawn Код:
if(GetPlayerVehicleSeat(playerid) == 1)
            {
                //Stuff
            }
if(GetPlayerVehicleSeat(playerid) == 2)
            {
                //Stuff
            }
PS.
Dont forget under the public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) Callback.

Something like this maybe?

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
if(GetPlayerVehicleSeat(playerid) == 2)
{
    if (PRESSED(KEY_FIRE))
    {
                  new lol = GetPlayerVehicleID(playerid);
                  if(lol != INVALID_VEHICLE_ID) {
                     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                     SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
    }
}
Reply


Messages In This Thread
Player Location? - by RichyB - 26.04.2011, 11:38
Re: Player Location? - by itachi4x4 - 26.04.2011, 12:14
Re: Player Location? - by RichyB - 26.04.2011, 12:29
Re: Player Location? - by itachi4x4 - 26.04.2011, 12:49
Re: Player Location? - by RichyB - 26.04.2011, 13:13
Re: Player Location? - by MP2 - 26.04.2011, 14:46
[No subject] - by RichyB - 26.04.2011, 15:05

Forum Jump:


Users browsing this thread: 3 Guest(s)