SA-MP Forums Archive
gate would not open - 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: gate would not open (/showthread.php?tid=199020)



gate would not open - LegendNissanGTR - 14.12.2010

Hi, my gate cant open when im near it? but i want it to turn by using rotation not by using the non rotation? so how can i make my gate going rotate?
here's my script
http://pastebin.com/zBw8FBBv


Re: gate would not open - XePloiT - 14.12.2010

put the script between [pawn] tag


Re: gate would not open - LegendNissanGTR - 14.12.2010

Huh what you mean?


Re: gate would not open - XePloiT - 14.12.2010

i think this can help you
https://sampforum.blast.hk/showthread.php?tid=75493

EDIT: you can use Incognito's streamer to make an area ... and when player enters the area (of the gate).
no loops no nothing... much better in my opinion
Incognito's Streamer


Re: gate would not open - LegendNissanGTR - 14.12.2010

Hmm so is it i just edit the MoveObject To native RotateObject? in my script?
edit i think so too


Re: gate would not open - XePloiT - 14.12.2010

Quote:
Originally Posted by LegendNissanGTR
Посмотреть сообщение
Hmm so is it i just edit the MoveObject To native RotateObject? in my script?
Yes, but look at my previous post... i edited it...i suggest use Areas...


Re: gate would not open - LegendNissanGTR - 14.12.2010

Looks kinda hard to use is there anything more simple to use?


Re: gate would not open - XePloiT - 14.12.2010

it is not hard at all.... hm its suppose to work i think... try this and tell me...
pawn Код:
new AOG;
AOG=CreateDynamicCircle(1794.95019531,701.68750000,15.17343998,20,0,0);//
//AOG...put it if its gm so OnGameModeInit() if FS OnFilterScriptInit()
//i suppose its the center of the place where you get close to and its opens...
forward AutoGate();
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(areaid==AOG)
    {
        RotateObject(gate, 0, 270, 440, 3);
        SetTimer("AutoGate",5000,false);
    }
    return 1;
}
public AutoGate()
{
    RotateObject(gate, 0,270,350, 3);
    return 1;
}
btw its first time i'm using RotateObject i found this include about a hour ago... never tested it... but i think it'll work


Re: gate would not open - LegendNissanGTR - 14.12.2010

It didnt work i can show you on my server that it dosent work server ip is 121.7.214.53:5800 its at lv the toll
here's the script i made when you ask me to use it
http://pastebin.com/mvhZ9kVF


Re: gate would not open - M3NK5 - 14.12.2010

how about you fix the indents? ;]