MMB ARREST
#2

Because you didn't define who's the target...

You should loop through all the players, then check if they are near the cop, and if they are also 4+ wanted level ,Then you can proceed to the code.. So instead of doing it like "new targetid;", do it like..

PHP код:
foreach(new targetid Player)
{
      new 
Float:XFloat:YFloat:Z;
      
GetPlayerPos(targetidXYZ);
      if(
IsPlayerInRangeOfPoint(playerid10XYZ)
     {
            
//Put your whole arrest code here..
     
}
     else return 
0;

I guess this would do it, Not perfectly, but good enough..
Reply


Messages In This Thread
MMB ARREST - by Thanks - 23.07.2018, 15:26
Re: MMB ARREST - by JasonRiggs - 23.07.2018, 15:34
Re: MMB ARREST - by Calisthenics - 23.07.2018, 15:46
Re: MMB ARREST - by JasonRiggs - 23.07.2018, 16:49
Re: MMB ARREST - by Thanks - 24.07.2018, 09:09
Re: MMB ARREST - by JasonRiggs - 24.07.2018, 10:44
Re: MMB ARREST - by Thanks - 25.07.2018, 07:34
Re: MMB ARREST - by coool - 25.07.2018, 09:10
Re: MMB ARREST - by GTLS - 26.07.2018, 14:54

Forum Jump:


Users browsing this thread: 3 Guest(s)