killdahobo99
Unregistered
Quote:
Originally Posted by saiberfun
pawn Код:
OnPlayerExitVehicle(playerid,vehicleid) { SetVehicleParamsForPlayer(vehicleid,playerid,0,0); return 1; }
Quote:
Originally Posted by Sa:Mp Wiki
SetVehicleParamsForPlayer
Sets certain properties of a car for a player.
Important note: Disabling the objective works only if the car is respawned after
Parameters:
(vehicleid,playerid,objective,doorslocked)
vehicle ID of the vehicle
playerid ID of the player
objective Show a marker above the car for this player?
doorslocked 0 means open,1 means locked
This function does not return a specific value, it's best to simply ignore it.
|
http://wiki.sa-mp.com
very usefull just browse abit through it and learn sum stuff^-^
then u wont need to ask so much on here ![Smiley](images/smilies/smile.png)
|
That does not work, i get an error....
This is what i have under OnPlayerExitVehicle
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
InCar[playerid] = 0;
return 1;
}
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
return 1;
}