Automatic Gate isn't working
#10

Quote:
Originally Posted by spd_sahil
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Automatic_Gates Read this <<<<< Helpfull..

if ur bored then..
pawn Код:
OnGameModeInit()
{
    SetTimer("CheckGate1",10,true)
}
forward CheckGate1();
public CheckGate1()
{
    new mygate_status;
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(IsPlayerInRangeOfPoint(i,10.0, {YOUR GATES CO-ORDINATES}))mygate_status=1;
    }
    if(mygate_status)MoveObject(open2,{ CO_ORDINATEs Change the x OR y depending on where u want the gate to move} ,3.0);
    else MoveObject(open2,{GATES CO-ORDINATES},3.0);
   
}
You called a timer, which will call a callback called "CheckGate", but you named the callback "CheckGate1"
Reply


Messages In This Thread
Automatic Gate isn't working - by nmader - 15.09.2011, 00:49
Re: Automatic Gate isn't working - by [HiC]TheKiller - 15.09.2011, 00:53
Re: Automatic Gate isn't working - by =WoR=G4M3Ov3r - 15.09.2011, 00:53
Re: Automatic Gate isn't working - by nmader - 15.09.2011, 01:14
Re: Automatic Gate isn't working - by RelaxCafe - 15.09.2011, 02:05
Re: Automatic Gate isn't working - by |_ⒾⓇⓄN_ⒹⓄG_| - 15.09.2011, 08:32
Re: Automatic Gate isn't working - by nmader - 15.09.2011, 11:14
Re: Automatic Gate isn't working - by =WoR=Varth - 15.09.2011, 11:27
Re: Automatic Gate isn't working - by spd_sahil - 15.09.2011, 16:11
Re: Automatic Gate isn't working - by Universal - 15.09.2011, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)