hlmod.hu
https://hlmod.hu/

rankra +cuccok
https://hlmod.hu/viewtopic.php?f=29&t=5274
Oldal: 1 / 1

Szerző:  expert [2012.07.16. 07:47 ]
Hozzászólás témája:  rankra +cuccok

Valaki írna nekem egy olyan plugint, ami spawn kor leelenőrzi, hogy a szerveren a játékos hanyadik és ha benne van a top 10 legjobban akkor kapjon a TE-ingyen a ak-t a CT meg ingyen M4 et...
A rankot nem tudom hogy kell lekérni és azért nem tudom megírni.. talán a rankinfóból kilehet induli valahogy gondolom.

Szerző:  HunGamer [2012.07.16. 11:03 ]
Hozzászólás témája:  Re: rankra +cuccok

Kód:
  1. /* Plugin generated by AMXX-Studio */

  2.  

  3. #include <amxmodx>

  4. #include <amxmisc>

  5. #include <fun>

  6. #include <cstrike>

  7. #include <csstats>

  8. #include <hamsandwich>

  9.  

  10. #define PLUGIN "rankra cuccok"

  11. #define VERSION "1.0"

  12. #define AUTHOR "HunGamer"

  13.  

  14.  

  15. public plugin_init()

  16. {

  17.         register_plugin(PLUGIN, VERSION, AUTHOR)

  18.         RegisterHam(Ham_Spawn, "player", "Eledes", 1);

  19. }

  20. public Eledes(id)

  21. {

  22.         new rank

  23.         new data1[8],data2[8]

  24.         rank = get_user_stats(id,data1,data2)

  25.         if(rank <= 10)

  26.         {

  27.                 if(cs_get_user_team(id) == CS_TEAM_T)

  28.                 {

  29.                         give_item(id, "weapon_ak47")

  30.                         cs_set_user_bpammo(id, CSW_AK47, 90)

  31.                 }

  32.                 if(cs_get_user_team(id) == CS_TEAM_CT)

  33.                 {

  34.                         give_item(id, "weapon_m4a1")

  35.                         cs_set_user_bpammo(id, CSW_M4A1, 90)

  36.                 }

  37.         }

  38.         return PLUGIN_CONTINUE

  39. }

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