Advertisement
Rendflex

Untitled

Aug 24th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. ownArmoryItem(item)
  3. {
  4.  
  5. if(isWeapon(item))
  6. {
  7.  
  8. if(self hasweapon(item))
  9. {
  10. return true;
  11. }
  12.  
  13. if(self hasWeapon(item + "_mp"))
  14. {
  15. return true;
  16. }
  17. }
  18.  
  19.  
  20. return false;
  21. }
  22.  
  23. isWeapon(stringName)
  24. {
  25.  
  26. if(weaponInventoryType(stringName) != "") {
  27. return true;
  28. }
  29.  
  30. if(weaponInventoryType(stringName + "_mp") != "")
  31. {
  32. return true;
  33. }
  34.  
  35. return false;
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement