Re: [Add-On] Police Gates (GF) -
SAW-RL - 11.10.2008
Quote:
Originally Posted by tomnidi
There are alot of errors, please fix it, I really need LVPD gates, the other gates I dont need 
|
make your own gates.
itґs not hard its easy
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 11.10.2008
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 Код:
new LSPDBarrier1;
new LSPDGate1;
new SFPDBarrier1;
new SFPDBarrier2;
new SFPDGate1;
new LVPDBarrier1;
new LVPDGate1;
new LVPDGate2;
Now, under your 'OnGameModeInit' add the following:
pawn Код:
CreateObject(995,1544.841674,-1633.573242,13.244799,90.000000,0.000000,271.012207); // LSPDBlock1
CreateObject(994,1544.860107,-1617.647216,12.537019,-1.000000,0.000000,269.168762); // LSPDBlock2
CreateObject(971,-1636.529296,688.580444,9.389122,0.000000,0.000000,358.653167); // SFPDBlock1
LSPDBarrier1 = CreateObject(968,1544.755004,-1623.929199,13.352820,0.000000,89.000000,269.818847);
LSPDGate1 = CreateObject(980,1588.265991,-1638.143554,15.014236,0.000000,0.000000,0.675605);
SFPDBarrier1 = CreateObject(968,-1572.275878,665.800231,7.037499,0.000000,-89.000000,91.176780);
SFPDBarrier2 = CreateObject(968,-1701.454101,680.673767,24.857488,0.000000,-89.000000,269.939086);
SFPDGate1 = CreateObject(971,-1627.696777,688.464660,9.414549,0.000000,0.000000,-0.333460);
LVPDBarrier1 = CreateObject(968,2238.143554,2457.357910,10.833136,0.000000,89.000000,271.965820);
LVPDGate1 = CreateObject(980,2293.974853,2497.135498,4.561177,0.000000,0.000000,91.243118);
LVPDGate2 = CreateObject(980,2335.075195,2443.761474,7.144308,0.000000,0.000000,241.384170);
Now all we need are the commands. Under your 'OnPlayerCommandText' add the following:
pawn Код:
if(strcmp(cmd, "/LSPDBarrier1open", true) == 0) // Command
{
if(IsACop(playerid)) // Checks if the player is in the police
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.818847); // Moves the object
}
}
if(strcmp(cmd, "/LSPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.818847);
}
}
if(strcmp(cmd, "/LSPDGate1open", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LSPDGate1, 1588.265991,-1638.143554,9.534472,0.4);
}
}
if(strcmp(cmd, "/LSPDGate1close", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LSPDGate1, 1588.265991,-1638.143554,15.014236,0.4);
}
}
if(strcmp(cmd, "/SFPDBarrier1open", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier1,0.000000,-1.000000,91.176780);
}
}
if(strcmp(cmd, "/SFPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier1,0.000000,-89.000000,91.176780);
}
}
if(strcmp(cmd, "/SFPDBarrier2open", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier2,0.000000,-1.000000,269.939086);
}
}
if(strcmp(cmd, "/SFPDBarrier2close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier2,0.000000,-89.000000,269.939086);
}
}
if(strcmp(cmd, "/SFPDGate1open", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(SFPDGate1, -1627.696777,688.464660,14.599885,0.4);
}
}
if(strcmp(cmd, "/SFPDGate1close", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(SFPDGate1, -1627.696777,688.464660,9.414549,0.4);
}
}
if(strcmp(cmd, "/LVPDBarrier1open", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LVPDBarrier1, 0.000000,-1.000000,271.965820);
}
}
if(strcmp(cmd, "/LVPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LVPDBarrier1, 0.000000,89.000000,271.965820);
}
}
if(strcmp(cmd, "/LVPDGate1open", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate1, 2293.974853,2497.135498,10.055157,0.4);
}
}
if(strcmp(cmd, "/LVPDGate1close", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate1, 2293.974853,2497.135498,4.561177,0.4);
}
}
if(strcmp(cmd, "/LVPDGate2open", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate2, 2335.075439,2443.761474,12.621609,0.4);
}
}
if(strcmp(cmd, "/LVPDGate2close", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate2, 2335.075195,2443.761474,7.144308,0.4);
}
}
If you still can't do it then add my msn:
removed
Re: [Add-On] Police Gates (GF) -
FrankQ - 11.10.2008
Very nice job done here!
It will be useful for beginners

Thank you!
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 11.10.2008
Quote:
Originally Posted by FrankQ
Very nice job done here!
It will be useful for beginners 
Thank you!
|
No problem.
Re: [Add-On] Police Gates (GF) -
erne456 - 16.10.2008
It very good but my very need it at filterscript .My errors...
Re: [Add-On] Police Gates (GF) -
MenaceX^ - 19.10.2008
Any ScreenShots?
Re: [Add-On] Police Gates (GF) -
|CrippinBloodDrippin| - 20.10.2008
Thanks for this, much apreciated. :P
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 25.10.2008
Quote:
Originally Posted by Ricardo_Quaresma
Any ScreenShots?
|
Yeah. Thanks to veteranmoza for the screenshots here:
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
Quote:
Originally Posted by |$pider|
Thanks for this, much apreciated. :P
|
Thanks. :P
Re: [Add-On] Police Gates (GF) -
MenaceX^ - 25.10.2008
Screens.
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 26.10.2008
Quote:
Originally Posted by Ricardo_Quaresma
Screens.
|
Yeah read my last posts...
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 07.01.2009
Why you advertising the GF topic in my GF Gates Topic? Seriously though, I have a link in my first post anyway?
PS. Spam my PM again and I'll have you banned.
Re: [Add-On] Police Gates (GF) -
pidar - 07.01.2009
Sorry, i don't advertise that script. ur link is to clean gf mod without ur gates. i give a link to gf WITH ur gates. thnx for gates anyway
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 07.01.2009
Quote:
Originally Posted by -=[Serbish
=- ]
Quote:
Originally Posted by [XG
Tez ]
One last thing, add all the and such just above the command for the gates.
|
Are you crazy?
He doesn't need to define the cmdtext.
I think you have placed it in the wrong callback.
It must be in OnPlayerCommandText.
|
Notice how I said "and all the" which in other words means "all the 'new' goes above your commands. I just thought that people with some sense would understand.
Re: [Add-On] Police Gates (GF) -
MenaceX^ - 20.01.2009
As I see by the replies. It's shouldn't be a filterscript, You should add it to your GodFather mode.
Re: [Add-On] Police Gates (GF) -
Tez2k7 - 20.01.2009
Quote:
Originally Posted by Well Well Well..
As I see by the replies. It's shouldn't be a filterscript, You should add it to your GodFather mode.
|
As you would see from the first post, it aint a filterscript. It is actually an add-on for the GF.
Re: [Add-On] Police Gates (GF) -
Chpp - 02.02.2009
My error bunch:
>C:\Program Files\PawnSciTE\pawncc.exe "C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26275) : error 021: symbol already defined: "OnGameModeInit"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26287) : warning 209: function "OnGameModeInit" should return a value
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26290) : error 021: symbol already defined: "OnPlayerCommandText"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26291) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(2629

: error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26305) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26312) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26319) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26326) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26333) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26340) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26347) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26354) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26361) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(2636

: error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26375) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26382) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26389) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26396) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Hans\Desktop\pawno\gamemodes\IRP_vдravate st.pwn(26403) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
18 Errors.
Script itself:
public OnGameModeInit()
{
CreateObject(995,1544.841674,-1633.573242,13.244799,90.000000,0.000000,271.01220 7); // LSPDBlock1
CreateObject(994,1544.860107,-1617.647216,12.537019,-1.000000,0.000000,269.168762); // LSPDBlock2
CreateObject(971,-1636.529296,688.580444,9.389122,0.000000,0.000000, 358.653167); // SFPDBlock1
LSPDBarrier1 = CreateObject(968,1544.755004,-1623.929199,13.352820,0.000000,89.000000,269.81884 7);
LSPDGate1 = CreateObject(980,1588.265991,-1638.143554,15.014236,0.000000,0.000000,0.675605);
SFPDBarrier1 = CreateObject(968,-1572.275878,665.800231,7.037499,0.000000,-89.000000,91.176780);
SFPDBarrier2 = CreateObject(968,-1701.454101,680.673767,24.857488,0.000000,-89.000000,269.939086);
SFPDGate1 = CreateObject(971,-1627.696777,688.464660,9.414549,0.000000,0.000000,-0.333460);
LVPDBarrier1 = CreateObject(968,2238.143554,2457.357910,10.833136 ,0.000000,89.000000,271.965820);
LVPDGate1 = CreateObject(980,2293.974853,2497.135498,4.561177, 0.000000,0.000000,91.24311

;
LVPDGate2 = CreateObject(980,2335.075195,2443.761474,7.144308, 0.000000,0.000000,241.384170);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/ob lspd", true) == 0) // Command
{
if(IsACop(playerid)) // Checks if the player is in the police
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.81 8847); // Moves the object
}
}
if(strcmp(cmd, "/cb lspd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.8 18847);
}
}
if(strcmp(cmd, "/og lspd", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LSPDGate1, 1588.265991,-1638.143554,9.534472,0.4);
}
}
if(strcmp(cmd, "/cg lspd", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LSPDGate1, 1588.265991,-1638.143554,15.014236,0.4);
}
}
if(strcmp(cmd, "/ob sfpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier1,0.000000,-1.000000,91.176780);
}
}
if(strcmp(cmd, "/cb sfpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier1,0.000000,-89.000000,91.176780);
}
}
if(strcmp(cmd, "/og sfpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier2,0.000000,-1.000000,269.939086);
}
}
if(strcmp(cmd, "/cg sfpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier2,0.000000,-89.000000,269.939086);
}
}
if(strcmp(cmd, "/og sfpd2", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(SFPDGate1, -1627.696777,688.464660,14.599885,0.4);
}
}
if(strcmp(cmd, "/cg sfpd2", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(SFPDGate1, -1627.696777,688.464660,9.414549,0.4);
}
}
if(strcmp(cmd, "/ob lvpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LVPDBarrier1, 0.000000,-1.000000,271.965820);
}
}
if(strcmp(cmd, "/cb lvpd", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LVPDBarrier1, 0.000000,89.000000,271.965820);
}
}
if(strcmp(cmd, "/og lvpd", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate1, 2293.974853,2497.135498,10.055157,0.4);
}
}
if(strcmp(cmd, "/cg lvpd", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate1, 2293.974853,2497.135498,4.561177,0.4);
}
}
if(strcmp(cmd, "/og lvpd2", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate2, 2335.075439,2443.761474,12.621609,0.4);
}
}
if(strcmp(cmd, "/cg lvpd2", true) == 0)
{
if(IsACop(playerid))
{
MoveObject(LVPDGate2, 2335.075195,2443.761474,7.144308,0.4);
}
}
}
Only the gates part here.
26275 is the first error, the line is public ongamemodeinit
Re: [Add-On] Police Gates (GF) -
znake - 05.02.2009
This script works 100%
Re: [Add-On] Police Gates (GF) -
eXchainZ-FoReVeR - 07.02.2009
Nice!. Oh yeah! Its good for RPG Servers.
Re: [Add-On] Police Gates (GF) -
Omega90210 - 08.02.2009
everytime i try to compile the gf script with this shit in it pawn crashes? any thoughts?
Re: [Add-On] Police Gates (GF) -
TrueCoppa - 08.02.2009
Quote:
Originally Posted by Omega90210
everytime i try to compile the gf script with this shit in it it crashes? any thoughts?
|
Go away and get a better RP gm maybe? 0_o