Guest User

fix

a guest
Nov 6th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.69 KB | None | 0 0
  1. if((newkeys == KEY_SUBMISSION) && isLEO(playerid))
  2. {
  3.     foreach(new i : Player)
  4.     {
  5.         new msg[100];
  6.        
  7.         if(GetDistanceBetweenPlayers(playerid, i) < 7.0 && Player[i][playerWanted] <= 5 && Player[i][playerWanted] >= 1) return SendClientMessage ( playerid, -1, "No suspect" );
  8.         {
  9.             format(msg, 100, "/ticket %d", i);
  10.             return CallLocalFunction("OnPlayerCommandText", "ds", playerid, msg);
  11.         }
  12.  
  13.         if(GetDistanceBetweenPlayers(playerid, i) < 7.0 && Player[i][playerWanted] >= 6)  return SendClientMessage ( playerid, -1, "No suspect" );
  14.         {
  15.             format(msg, 100, "/arrest %d", i);
  16.             return CallLocalFunction("OnPlayerCommandText", "ds", playerid, msg);
  17.         }
  18.     }
  19.  }
Advertisement
Add Comment
Please, Sign In to add comment