Advertisement
Guest User

Untitled

a guest
Mar 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include AMXMODX.INC
  4.  
  5. // TESTING //
  6. new I_Points[33];
  7. // TESTING //
  8.  
  9. public plugin_init()
  10. {
  11. new SZ_WeaponName[32];
  12.  
  13. for (new I = CSW_P228; I < CSW_P90; I++)
  14. {
  15. if (get_weaponname(I, SZ_WeaponName, charsmax(SZ_WeaponName)))
  16. {
  17. // Desechamos el prefijo de la entidad del arma (weapon_)
  18. register_clcmd(SZ_WeaponName[7], "CLCOMMAND_Weapons");
  19. }
  20. }
  21. }
  22.  
  23. public CLCOMMAND_Weapons(const I_Client)
  24. {
  25. static SZ_WeaponName[32];
  26.  
  27. read_argv(0, SZ_WeaponName, charsmax(SZ_WeaponName));
  28.  
  29. // TESTING //
  30. client_print(I_Client, print_chat, "ARMA SELECCIONADA: ^"%s^"", SZ_WeaponName);
  31.  
  32. if (I_Points[I_Client] < 5)
  33. {
  34. client_print(I_Client, print_chat, "NO TENES PUNTOS SUFICIENTES :V");
  35.  
  36. I_Points[I_Client] += 1
  37.  
  38. return PLUGIN_HANDLED;
  39. }
  40.  
  41. return PLUGIN_CONTINUE;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement