SA-MP Forums Archive
[HELP]: Lock And Unlock - 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: [HELP]: Lock And Unlock (/showthread.php?tid=245007)



[HELP]: Lock And Unlock - [MKD]Max - 29.03.2011

hello guys all is know how to make lock and unlock commands but i was to sau when i make it i go in server i try to do it you know

/lock it lock and all right but when someone from other play come to in the car its can rob it from me and go what i need when the car is locked then others can enter it! please help!


Re: [HELP]: Lock And Unlock - Hornet600 - 29.03.2011

are you looping the lock? if not try to do it and it will lock for every player


Re: [HELP]: Lock And Unlock - Jochemd - 29.03.2011

You should also lock it for the streaming in vehicle.

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(VehicleInfo[vehicleid][Locked] == 1) SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
    else SetVehicleParamsForPlayer(vehicleid,forplayerid,0,0);
    return 1;
}
Edit it for your own script


Re: [HELP]: Lock And Unlock - [MKD]Max - 29.03.2011

not like what you do Joch what i need when someone else want to try to enter the car i lock it's cant enter it!! send him text Car Locked thats all!