Advertisement
awiaprox

NameTImer

Dec 16th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1. public NameTimer()
  2. {
  3.     foreach (Player, i)
  4.     {
  5.         foreach (Player, q)
  6.         {
  7.             new Float:p1x;
  8.             new Float:p1y;
  9.             new Float:p1z;
  10.             new Float:p2x;
  11.             new Float:p2y;
  12.             new Float:p2z;
  13.             if(IsPlayerConnected(i) && IsPlayerConnected(q))
  14.             {
  15.                 GetPlayerPos(i,p1x,p1y,p1z);
  16.                 GetPlayerPos(q,p2x,p2y,p2z);
  17.                 if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
  18.                 {
  19.                     if(PlayerInfo[q][pMaskuse] != 1)
  20.                     {
  21.                         ShowPlayerNameTagForPlayer(i,q,1);
  22.                     }
  23.                 }
  24.                 else
  25.                 {
  26.                     ShowPlayerNameTagForPlayer(i,q,0);
  27.                 }
  28.             }
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement