Advertisement
CamerDisco

Untitled

May 30th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public void GetWeaponClassname(int weapon, char[] buffer, int size) {
  2. switch(GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex")) {
  3. case 60: Format(buffer, size, "weapon_m4a1_silencer");
  4. case 61: Format(buffer, size, "weapon_usp_silencer");
  5. case 63: Format(buffer, size, "weapon_cz75a");
  6. case 64: Format(buffer, size, "weapon_revolver");
  7. default: GetEntityClassname(weapon, buffer, size);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement