hlmod.hu
https://hlmod.hu/

Pisztoly lekérése
https://hlmod.hu/viewtopic.php?f=9&t=20935
Oldal: 1 / 1

Szerző:  ExE [ 2015.06.10. 07:55 ]
Hozzászólás témája:  Pisztoly lekérése

Üdv,valaki meg tudná csinálni hogy a pisztolyt is írja ki. Ha van Arany USP je akkor Pisztoly: Arany USP,és ha nincs uspje akkor semmit.

Előre is köszönöm.

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <dhudmessage>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "author"
  10.  
  11. new aranyak47[33]
  12. new aranyusp[33]
  13.  
  14. public plugin_init() {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16. register_clcmd("kell","kell")
  17. register_clcmd("kel","kel")
  18. set_task(0.1, "kijelzo", 0, _, _, "b")
  19. // Add your code here...
  20. }
  21. public kell(id)
  22. {
  23. aranyak47[id]++
  24. }
  25. public kel(id)
  26. {
  27. aranyusp[id]++
  28. }
  29. public kijelzo()
  30. {
  31. new players[32], szam, id
  32. get_players(players, szam)
  33. for(new i; i<szam; i++){
  34. id = players[i]
  35. if(aranyak47[id] == 1)
  36. {
  37. set_dhudmessage(255, 255, 255, -1.0, 0.0, 0, 6.0, 12.0)
  38. show_hudmessage(id, "Fegyver: Arany AK47")
  39. }
  40. else
  41. {
  42. set_dhudmessage(255, 255, 255, -1.0, 0.0, 0, 6.0, 12.0)
  43. show_hudmessage(id, "Fegyver :")
  44. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/