Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <w_Gates>
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- AddLVPDGate();
- AddLSPDGate();
- AddSFPDGate();
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/openlv", cmdtext, true, 7) == 0)
- {
- OpenLVPDGate(playerid,3.0,1,8000);
- return 1;
- }
- if (strcmp("/closelv", cmdtext, true, 8) == 0)
- {
- CloseLVPDGate(playerid,3.0);
- return 1;
- }
- if (strcmp("/openls", cmdtext, true, 7) == 0)
- {
- OpenLSPDGate(playerid,3.0,0,0);
- return 1;
- }
- if (strcmp("/closels", cmdtext, true, 8) == 0)
- {
- CloseLSPDGate(playerid,3.0);
- return 1;
- }
- if (strcmp("/opensf", cmdtext, true, 7) == 0)
- {
- OpenSFPDGate(playerid,3.0,1,20000);
- return 1;
- }
- if (strcmp("/closesf", cmdtext, true, 8) == 0)
- {
- CloseSFPDGate(playerid,3.0);
- return 1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment