[Help] Moveable Gate - 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)
+--- Thread: [Help] Moveable Gate (
/showthread.php?tid=386269)
[Help] Moveable Gate -
AchievementMaster360 - 19.10.2012
So i got these script from Raven's Role play but when ever i try to open the gate with /go it says you don't have a controller
Код:
#include <a_samp>
#define FILTERSCRIPT
new repogates1;
public OnFilterScriptInit()
{
print("\n******************************************************");
print("* *");
print("* Simple Movable Gates Filterscript *");
print("* *");
print("******************************************************\n");
repogates1 = CreateObject(968,-495.59960938,-562.89941406,25.50000000,0.00000000,90.00000000,0.00000000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/go", true)){
if(IsPlayerInRangeOfPoint(playerid, 15, 785.09997558594, -1152.4000244141, 25.299999237061)){
MoveObject(repogates1, 785.40002441406, -1162.9000244141, 25.39999961853, 3.0, 0.0, 0.0, 270);
return 1;
}
}
else if(strcmp(cmdtext, "/close", true)){
if(IsPlayerInRangeOfPoint(playerid, 15, 785.09997558594, -1152.4000244141, 25.299999237061)){
MoveObject(repogates1, 785.09997558594, -1152.4000244141, 25.299999237061, 3.0, 0.0, 0.0, 270);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
Re: [Help] Moveable Gate -
Joshman543 - 19.10.2012
Try changing the command /go to something different, it is most likely interfering with the Raven's Gamemode
Re: [Help] Moveable Gate -
nmader - 19.10.2012
If you are using the filterscript in a gamemode that has a /go cmd which I can guarantee you do have. Rename the cmd and try again!
Re: [Help] Moveable Gate -
AchievementMaster360 - 19.10.2012
I tried switching the command from /go to /towgate it still didn't work
Re: [Help] Moveable Gate -
RedFusion - 19.10.2012
Use CTRL + F in PAWN and look for the "controller" part you're talking about