Bukz

Crosshair Script Concept

Mar 5th, 2011
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. valid_xhairs = [0 1 2 3 4 5 6 8 9]
  2.  
  3. xhair_0 = "knife.png"
  4. xhair_1 = "pistol.png"
  5. xhair_2 = "carbine.png"
  6. xhair_3 = "shotgun.png"
  7. xhair_4 = "smg.png"
  8. xhair_5 = "sniper.png"
  9. xhair_6 = "ar.png"
  10. xhair_8 = "grenade.png"
  11. xhair_9 = "akimbo.png"
  12.  
  13. alias set_crosshair [
  14.   if (strstr $valid_xhairs (curweapon)) [
  15.     loadcrosshair (getalias (format "xhair_%1" (curweapon)))
  16.   ]
  17.   sleep 0 [set_crosshair]
  18. ]
  19.  
  20. addcheck_msa [set_crosshair]
Advertisement
Add Comment
Please, Sign In to add comment