27.07.2012, 19:05
Quote:
Everytime a player logs in, you can process all vehicles and set the doors locked/unlocked based on the ownership of the vehicle.
|
Quote:
Originally Posted by Wiki
Note: From 0.3 you will have to re-apply this function when OnVehicleStreamIn is called!
|
Hence the following code wouldn't work at all
pawn Code:
public OnPlayerSpawn(playerid) // or OnPlayerConnect
{
for(new i = 0; i < MAX_VEHICLES; i ++)
{
print("executing");
SetVehicleParamsForPlayer(i, playerid, 0, 1);
}
return 1;
}
pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
return 1;
}
Quote:
it should lock/unlock doors when I use command /dvere, however I can enter vehicle even if I locked it
|
You gotta create textdraws.