Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ITEM.ID = "smallmedkit";
  2. ITEM.Name = "Gauze Bandages";
  3. ITEM.Description = "A roll of gauze bandages. Used for emergency first aid.";
  4. ITEM.Model = "models/props/cs_office/Paper_towels.mdl";
  5. ITEM.Weight = 1;
  6. ITEM.FOV = 9;
  7. ITEM.CamPos = Vector( 50, 50, 50 );
  8. ITEM.LookAt = Vector( 0, 0, 5.02 );
  9.  
  10. ITEM.BulkPrice = 6;
  11. ITEM.License = LICENSE_MED;
  12.  
  13. ITEM.Usable = true;
  14. ITEM.UseText = "Apply";
  15. ITEM.DeleteOnUse = true;
  16. ITEM.OnPlayerUse = function( self, ply )
  17.  
  18. if( CLIENT ) then
  19.  
  20. GAMEMODE:AddChat( Color( 200, 200, 200, 255 ), "CombineControl.ChatNormal", "You wrap the wound in bandages.", { CB_ALL, CB_IC } );
  21.  
  22. else
  23.  
  24. ply:SetHealth( math.min( ply:Health() + 20, 100 ) );
  25.  
  26. end
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement