31.08.2008, 23:30
Police Gates (GF)
This small and simple add-on for the godfather script basically makes gates at evey Police Station in San Andreas. You may use the auto-shut option which shuts the gates 5 seconds after the /open command.
Link to the Godfather Script:
Click Here.
I've use the function: IsACop(playerid) to check if the player is a cop, and if they aren't then the gate won't open. This add-on places both barriers and gates at LSPD, SFPD, and LVPD.
~Commands~ (Won't need to /close if using the auto-shut script)
/lspdbarriergate1open /lspdbarriergate1close
/lspdgate1open /lspdgate1close
/sfpdbarriergate1open /sfpdbarriergate1close
/sfpdbarriergate2open /sfpdbarriergate2close
/sfpdgate1open /sfpdgate1close
/lvpdbarriergate1open /lvpdbarriergate1close
/lvpdgate1open /lvpdgate1close
/lvpdgate2open /lvpdgate2close
~Links~
Pastebin(Normal)
Pastebin(With auto-shut after 5seconds.)Updated
~Credits~
Made By Tez
Don't really want much credit as it's pritty easy to do. It was aimed at the noobs who no nothing about Pawn who start off with the godfather.
~Future Releases~
If any bugs are found or if you have any suggestions then please say so here.
Thanks, Tez
TUTORIALThis small and simple add-on for the godfather script basically makes gates at evey Police Station in San Andreas. You may use the auto-shut option which shuts the gates 5 seconds after the /open command.
Link to the Godfather Script:
Click Here.
I've use the function: IsACop(playerid) to check if the player is a cop, and if they aren't then the gate won't open. This add-on places both barriers and gates at LSPD, SFPD, and LVPD.
~Commands~ (Won't need to /close if using the auto-shut script)
/lspdbarriergate1open /lspdbarriergate1close
/lspdgate1open /lspdgate1close
/sfpdbarriergate1open /sfpdbarriergate1close
/sfpdbarriergate2open /sfpdbarriergate2close
/sfpdgate1open /sfpdgate1close
/lvpdbarriergate1open /lvpdbarriergate1close
/lvpdgate1open /lvpdgate1close
/lvpdgate2open /lvpdgate2close
~Links~
Pastebin(Normal)
Pastebin(With auto-shut after 5seconds.)Updated
~Credits~
Made By Tez
Don't really want much credit as it's pritty easy to do. It was aimed at the noobs who no nothing about Pawn who start off with the godfather.
~Future Releases~
If any bugs are found or if you have any suggestions then please say so here.
Thanks, Tez
Quote:
Originally Posted by [XG
Tez ]
I've had a few requests on how to add the damn thing into the gf. It's pritty simple. I'll try tell you how and keep it short at the same time. Now, at the top of the script, where all you 'new' things are, add the following. pawn Code:
Now, under your 'OnGameModeInit' add the following: pawn Code:
Now all we need are the commands. Under your 'OnPlayerCommandText' add the following: pawn Code:
|
LSPD Gate open
http://www.jmorris4.pwp.blueyonder.c...pdopengate.jpg
LSPD Gate closed
http://www.jmorris4.pwp.blueyonder.c...dclosegate.jpg
LSPD Barrier open
http://www.jmorris4.pwp.blueyonder.c...AMP/BGopen.jpg
LSPD Barrier closed
http://www.jmorris4.pwp.blueyonder.c...MP/BGclose.jpg
Thanks to veteranmoza for the screenz.
--