IsPlayerInRangeOfPoint loop + timer
#3

Quote:
Originally Posted by CreativityLacker
Посмотреть сообщение
pawn Код:
forward LOC_CHECK();
public LOC_CHECK()
{
    for(new x =0; x < MAX_PLAYERS; x++)
    {
         if(IsPlayerInRangeOfPoint(x, 1.5, 1742.9924, -1863.2076, 13.5754))
         {
               ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "TAXI JOB", "Are you sure you want to take this job", "Yes", "No");
         }
    }
    return 1;
}

public OnGameModeInIt( )
{
     SetTimer("LOC_CHECK", 5000, true);
     return 1;
}
Though I strongly recommend you avoid this, since it's very inefficient. Try pickups or somethin'
Hm.. Is the streamer plugin more "efficient" for this?
Reply


Messages In This Thread
IsPlayerInRangeOfPoint loop + timer - by reckst4r - 13.02.2013, 13:01
Re: IsPlayerInRangeOfPoint loop + timer - by CreativityLacker - 13.02.2013, 13:09
Re: IsPlayerInRangeOfPoint loop + timer - by reckst4r - 13.02.2013, 13:12
Re: IsPlayerInRangeOfPoint loop + timer - by CreativityLacker - 13.02.2013, 13:14
Re: IsPlayerInRangeOfPoint loop + timer - by reckst4r - 13.02.2013, 13:18
Re: IsPlayerInRangeOfPoint loop + timer - by Babul - 13.02.2013, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)