>> Gates at National Guard (NG) << - 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: >> Gates at National Guard (NG) << (
/showthread.php?tid=82256)
>> Gates at National Guard (NG) << -
monster010 - 17.06.2009
I wish if I can do to me please barrier in the National Guard, but I want to open automatically when I honk the horn
Thanks in advance
Re: >> Gates at National Guard (NG) << -
MenaceX^ - 17.06.2009
You should first create the gate where you want it, create the object.
Then you can do it with OnPlayerKeyStateChange
like
pawn Код:
if(newkeys==KEY_HANDBRAKE&&IsPlayerInAnyVehicle(playerid)&&GetVehicleModel(GetPlayerVehicleID(playerid))==471) // not sure about the model id
{
MoveObject(yourobject,newX,newY,newZ);
SendClientMessage(playerid,color,"You used the horn and opened the gate.");
}
Re: >> Gates at National Guard (NG) << -
monster010 - 17.06.2009
I do not know .... the Coordinating you can do to completely tutorial please?
PS: I'm in the Romania
Re: >> Gates at National Guard (NG) << -
MenaceX^ - 17.06.2009
No, I can't make a tutorial, you can find tutorials yourself.
And it doesn't really matter where you are from.