Vehicle stream - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle stream (
/showthread.php?tid=123040)
Vehicle stream -
potato - 24.01.2010
Hi!
Is OnVehicleStreamIn called for every player even if a vehicle is already streamed for another player?
I don't know why but the vehicle lock doesn't work well, it only works if a player which has got the car locked and then another player has the car locked.
Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(VehicleLocks[forplayerid][vehicleid] != 0) {
SetVehicleParamsForPlayer(vehicleid, forplayerid, false, true);
}
return true;
}
For some reasons the car is unlocked all players, but locked only for the player which first found the car locked.