IsPlayerInRangeOfPoint Teleport Help
#3

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{
    SetTimer("Check", 2500, 1);
    return 1;
}

forward Check();
public Check()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, 2.0, 2305.9927, -16.2388, 26.7496))
            {
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, 2271.6396,2289.1282,10.8203);
            }
        }
    }
    return 1;
}
can u explain why that 3rd brace and IsPlayerConnected and changing from half a sec to 2 and a half secs fixes it?
Reply


Messages In This Thread
IsPlayerInRangeOfPoint Teleport Help - by <Weponz> - 19.11.2010, 13:41
Re: IsPlayerInRangeOfPoint Teleport Help - by The_Moddler - 19.11.2010, 13:44
Re: IsPlayerInRangeOfPoint Teleport Help - by <Weponz> - 19.11.2010, 13:46
Re: IsPlayerInRangeOfPoint Teleport Help - by The_Moddler - 19.11.2010, 13:53
Re: IsPlayerInRangeOfPoint Teleport Help - by <Weponz> - 19.11.2010, 14:53
Re: IsPlayerInRangeOfPoint Teleport Help - by MadeMan - 19.11.2010, 14:59
Re: IsPlayerInRangeOfPoint Teleport Help - by The_Moddler - 19.11.2010, 15:01
Re: IsPlayerInRangeOfPoint Teleport Help - by randomkid88 - 19.11.2010, 15:12
Re: IsPlayerInRangeOfPoint Teleport Help - by The_Moddler - 19.11.2010, 15:46
Re: IsPlayerInRangeOfPoint Teleport Help - by randomkid88 - 20.11.2010, 04:03

Forum Jump:


Users browsing this thread: 3 Guest(s)