LSPD Gate System
#2

PHP код:
forward lspdgate();
public 
lspdgate()
{
     for(new 
i=0;i<MAX_PLAYERS;i++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
IsPlayerInCheckpoint(i)==lspdcheckpoint)
            {
                return 
1;
            }
        }
    }
    
KillTimer(lspdgatetimer);
    if(
lspdgateopen==1)
    {
        
MoveObject(lspdgate11544.64209, -1622.2741713.996331.0);
        
MoveObject(lspdgate21544.68726, -1626.4851114.015541.0);
        
lspdgateopen=0;
    }
    return 
1;

IsPlayerInCheckpoint(i)

This function only returns 'true', or 'false'! Therefore, it will never be equal to a checkpoint ID.

KillTimer(lspdgatetimer);

This should go at the bottom, after closing the gate.
Reply


Messages In This Thread
LSPD Gate System - by ATGOggy - 06.12.2014, 06:40
Re: LSPD Gate System - by iiNzTicTx - 06.12.2014, 06:51
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 06:59
Re: LSPD Gate System - by iiNzTicTx - 06.12.2014, 07:09
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 07:12
Re: LSPD Gate System - by iiNzTicTx - 06.12.2014, 07:13
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 07:17
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 07:23
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 07:26
Re: LSPD Gate System - by ATGOggy - 06.12.2014, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)