Lock - 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)
+--- Thread: Lock (
/showthread.php?tid=618988)
Lock -
StR_MaRy - 12.10.2016
hey guys i have a glich on my server that a player can enter any car until relog only i have this problem ? or what should i search for to solve this ?
Re: Lock -
Hansrutger - 12.10.2016
You would have to give us parts of the code, but generally from what you are describing, cars have it by default being unlocked and they are set to locked OnPlayerDisconnect? As said without more information it's pretty hard to find the problem, don't take me wrong.
Re: Lock -
StR_MaRy - 12.10.2016
yea that's the idea i didn't know what part of script should i post it here or search it to see if is locked or not
Re: Lock -
Hansrutger - 12.10.2016
Wherever you set them first time of being locked. OnGameModeInit() perhaps. Or generally anywhere you have used SetVehicleParamsForPlayer() in the script:
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer