arrest player who is near not by id
#6

pawn Код:
new nearestwanted[4];

for(new i;i<MAX_PLAYERS;i++) if(GetDistanceBetweenPlayers(i, playerid) <= 4 && GetPlayerWantedLevel(i) > 0) format(nearestwanted, sizeof(nearestwanted), "%i", i);

//'nearestwanted' is now a integrer holding the ID of the nearest wanted player in a region of 4 coords.

Arrest(nearestwanted); //or something
Reply


Messages In This Thread
arrest player who is near not by id - by Patrick - 24.12.2012, 20:20
Re : arrest player who is near not by id - by [HRD]Mar1 - 24.12.2012, 20:23
Re: Re : arrest player who is near not by id - by Patrick - 24.12.2012, 20:25
Re : Re: Re : arrest player who is near not by id - by [HRD]Mar1 - 24.12.2012, 20:30
Re: arrest player who is near not by id - by Patrick - 24.12.2012, 20:42
Re: arrest player who is near not by id - by SKAzini - 24.12.2012, 20:57
Re: Re : arrest player who is near not by id - by RedCrossER - 24.12.2012, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)