Advertisement
LostProphet

Untitled

Jul 19th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. try
  2. {
  3.     foreach(Cop cop in nearbyCopList)
  4.     {
  5.         if (Exists(cop.ped) && Exists(cop.blip))
  6.         {
  7.             cop.blip.Color = BlipColor.Red;
  8.  
  9.                 if (GTA.Native.Function.Call<bool>("HAS_CHAR_SPOTTED_CHAR_IN_FRONT", cop.ped, pc) && GTA.Native.Function.Call<bool>("HAS_CHAR_SPOTTED_CHAR_IN_FRONT", pc, cop.ped))
  10.                 {
  11.                     // Some stuff
  12.                 }
  13.         }
  14.     }
  15. }
  16. catch (NullReferenceException ex)
  17. {
  18.     Game.Console.Print("WTF NO! lol");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement