automatic gate problem
#1

ok so basicly i have a automatic gate and when i go to it - it opens but when my friend goes to it - it doesnt open so if you want 2 pm me and il give u the ip and show u and heres the code that i have 4 it



Код:
new AutomaticGate;
forward gatec();
Код:
SetTimer("gatec", 500, true);
 	AutomaticGate = CreateObject(975,1717.04809570,1298.18298340,11.49500275,0.00000000,0.00000000,269.75000000);
Код:
public gatec()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, 10.0, 1717.04809570,1298.18298340,11.49500275))
            {
                MoveObject(AutomaticGate, 1716.09643555,1293.90063477,11.49500275, 5.0);
            }
   	        else
            {
                MoveObject(AutomaticGate, 1717.04809570,1298.18298340,11.49500275, 5.0);
            }
        }
    }
}
plz help ty and if u want 2 see it pm me and il give u IP
Reply
#2

Follow the tutorial at wiki.sa-mp.com just search for Automatic Gates
Reply
#3

https://sampwiki.blast.hk/wiki/Automatic_Gates
Edit: too late.
Reply
#4

thanks guys fixed it <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)