Gate Problem
#5

pawn Код:
forward GateOpen();
public GateOpen()
{
    for(new i = 0; i < MAX_PLAYERS; i++) //Begin looping through players
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, 5.0, ...) //If they are near the gate.
            {
                new name[MAX_PLAYER_NAME];
                GetPlayerName(i, name, MAX_PLAYER_NAME);
                if(strcmp(name, "Mark_Hilt", false) == 0)
                {
                    MoveObject(gate, .... //Open gate
                }
            }
        }
    }
    return 1;
}
NOTE: Rushed
Reply


Messages In This Thread
Gate Problem - by coolmark1995 - 19.09.2012, 20:38
Re: Gate Problem - by coolmark1995 - 19.09.2012, 20:44
Re: Gate Problem - by C00K13M0N$73R - 19.09.2012, 20:46
Re: Gate Problem - by coolmark1995 - 19.09.2012, 20:47
Re: Gate Problem - by clarencecuzz - 19.09.2012, 20:48
Re: Gate Problem - by C00K13M0N$73R - 19.09.2012, 20:48
Re: Gate Problem - by coolmark1995 - 19.09.2012, 20:52
Re: Gate Problem - by coolmark1995 - 23.09.2012, 18:23

Forum Jump:


Users browsing this thread: