[HELP] Lock car - 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: [HELP] Lock car (
/showthread.php?tid=338811)
[HELP] Lock car -
V4at - 01.05.2012
Код:
new pVehicle;
public OnGameModeInit()
{
pVehicle = CreateVehicle(560,-2003.0203,286.8954,33.5500,90.3872,21,1, 10000); //
return 1;
}
public OnPlayerConnect(playerid)
{
SetVehicleParamsForPlayer(pVehicle,playerid,0,1);
return 1;
}
Going into the server on this car can still get in :/
Where's the problem?
Re: [HELP] Lock car -
Reynolds - 01.05.2012
If you'd like to set the lock for one player only, it'll only work with OnVehicleStreamIn. I see you're trying to set it for all players. For that, I recommend to use the code bellow:
pawn Код:
pVehicle = CreateVehicle(560,-2003.0203,286.8954,33.5500,90.3872,21,1, 10000);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,false,bonnet,boot,objective);
Re : [HELP] Lock car -
V4at - 01.05.2012
How to use your code? Show me :/
Re: [HELP] Lock car -
Reynolds - 01.05.2012
Err... Just copy & paste the appropirate code to OnGameModeInit.
Re : [HELP] Lock car -
V4at - 01.05.2012
Anyway can to get in the car...
Re : [HELP] Lock car -
V4at - 01.05.2012
Anyone, can help me?