LucasRed

textdraw

Mar 26th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. function onPlayerWeaponChange( player, oldWep, newWep )
  2. {
  3. WEP.push({Player = player, Text = null});
  4. DrawWEP();
  5. }
  6. function DrawWEP()
  7. {
  8.  foreach (val in WEP)
  9.  {
  10.   if (val.Text != null) val.Text.Delete();
  11.   val.Text = CreateTextdraw("Current Weapon: " + GetWeaponName( val.Player.Weapon ), 20, -250, 0xFFFF69B4);
  12.   if (val.Text != null) val.Text.ShowForPlayer(val.Player);
  13.  }
  14. }
Add Comment
Please, Sign In to add comment