hlmod.hu
https://hlmod.hu/

Vip health
https://hlmod.hu/viewtopic.php?f=9&t=5683
Oldal: 1 / 1

Szerző:  Mike Spy [2012.08.21. 12:30 ]
Hozzászólás témája:  Vip health

Valaki kijavítaná ha szépen megkérem? :)

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

  2.  

  3. #include <amxmodx>

  4. #include <amxmisc>

  5. #include <fun>

  6. #include <colorchat>

  7.  

  8. #define PLUGIN "Vip health & Deagle"

  9. #define VERSION "1.0"

  10. #define AUTHOR "super8"

  11.  

  12.  

  13. public plugin_init() {

  14.         register_plugin(PLUGIN, VERSION, AUTHOR)

  15.         RegisterHam(Ham_Spawn, "player", "admin", 1);

  16. }

  17. public admin(id)

  18. {

  19.         if(get_user_flags(id)&ADMIN_USER)

  20.         {

  21.                 get_user_health(id,200);

  22.                 give_item(id, "weapon_deagle");

  23.                 cs_set_user_bpammo(id,CSW_DEAGLE,35);

  24.                 ColorChat(id,GREEN,"[VIP] ^x03Te kaptal +100hp-t es egy deagle-t mert vip vagy.")

  25.         }

  26. }
[/spoiler]

Warning:

[spoiler]
Kód:
  1. Welcome to the AMX Mod X 1.8.1-300 Compiler.

  2. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

  3.  

  4. Error: Undefined symbol "RegisterHam" on line 15

  5. Warning: Expression has no effect on line 15

  6. Warning: Expression has no effect on line 15

  7. Warning: Expression has no effect on line 15

  8. Error: Expected token: ";", but found ")" on line 15

  9. Error: Invalid expression, assumed zero on line 15

  10. Error: Too many error messages on one line on line 15

  11.  

  12. Compilation aborted.

  13. 4 Errors.

  14. Could not locate output file C:\Program Files\AMX Mod X\amxxstudio\Untitled.amx (compile failed).

  15.  
[/spoiler]

Szerző:  VirTuaL ~` [2012.08.21. 12:33 ]
Hozzászólás témája:  Re: Vip health

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

  2.  

  3. #include <amxmodx>

  4. #include <amxmisc>

  5. #include <fun>

  6. #include <colorchat>

  7. #include <hamsandwich>

  8. #include <cstrike>

  9.  

  10. #define PLUGIN "Vip health & Deagle"

  11. #define VERSION "1.0"

  12. #define AUTHOR "super8"

  13.  

  14.  

  15. public plugin_init() {

  16.         register_plugin(PLUGIN, VERSION, AUTHOR)

  17.         RegisterHam(Ham_Spawn, "player", "admin", 1);

  18. }

  19. public admin(id)

  20. {

  21.         if(get_user_flags(id)&ADMIN_USER)

  22.         {

  23.                 set_user_health(id,200);

  24.                 give_item(id, "weapon_deagle");

  25.                 cs_set_user_bpammo(id,CSW_DEAGLE,35);

  26.                 ColorChat(id,GREEN,"[VIP] ^x03Te kaptal +100hp-t es egy deagle-t mert vip vagy.")

  27.         }

  28. }


HP adás is javítva,nem get_ hanem set_ kell.

Szerző:  Mike Spy [2012.08.21. 12:34 ]
Hozzászólás témája:  Re: Vip health

Köszi :D

szerk.:
Kód:
  1. #include <hamsandwich>

  2.  

  3. #include <cstrike>


ezek miért kellenek?:D

Szerző:  kiki [2012.08.21. 12:50 ]
Hozzászólás témája:  Re: Vip health

Ha hamot regisztrálsz akkor szerinted minek xd?

Szerző:  VirTuaL ~` [2012.08.21. 13:11 ]
Hozzászólás témája:  Re: Vip health

ham az éledés,a cstrike az ammó adás a fegyóba.

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