26.04.2011, 12:14
GetPlayerVehicleSeat
Maybe something like this?
PS.
Dont forget under the public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) Callback.
Something like this maybe?
Maybe something like this?
pawn Код:
if(GetPlayerVehicleSeat(playerid) == 1)
{
//Stuff
}
if(GetPlayerVehicleSeat(playerid) == 2)
{
//Stuff
}
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);
}
}