31.05.2010, 01:18
Okay, well I noticed that SetVehicleParamsForPlayer doesn't work in 0.3a, how do I fix it?
public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, iVehicleObjective[vehicleid][0], iVehicleObjective[vehicleid][1]);
}
stock SetVehicleParamsForPlayerEx(vehicleid, playerid, objective, doorslocked)
{
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked);
iVehicleObjective[vehicleid][0] = objective;
iVehicleObjective[vehicleid][1] = doorslocked;
}
Originally Posted by Antonio (eternalrp.webatu.com)
How will the loop help? Its only locking for a certain player.
|
Originally Posted by russooooo
Quote:
Tomorrow after i sleep i'll take a look. |
public OnVehicleStreamedIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // Locks doors without arrow above it
}
Originally Posted by Antonio (eternalrp.webatu.com)
Wait so how now do I lock the vehicle after adding those codes?
|
Originally Posted by Grim_
Quote:
|
public OnVehicleStreamedIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // Locks doors without arrow above it
}