SA-MP Forums Archive
The new /lock and /unlock cmd - 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: The new /lock and /unlock cmd (/showthread.php?tid=102938)



The new /lock and /unlock cmd - Erkan - 17.10.2009

I heard there should be a new /lock and /unlock cmd for 0.3, annyone got the script from it, because the Search engine does not work, so I can't search.


Re: The new /lock and /unlock cmd - Gergo1352 - 18.10.2009

You just need to reapply SetVehicleParamsForPlayer() at OnVehicleStreamIn().


Re: The new /lock and /unlock cmd - Claude_Speed - 18.10.2009

Example of Locking All the Vehicles for Everyone:

Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++) {
  	if(IsPlayerConnected(i)) {
		SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
		}
	}
}