hlmod.hu
https://hlmod.hu/

plugin javitás
https://hlmod.hu/viewtopic.php?f=29&t=9251
Oldal: 1 / 1

Szerző:  csmester [2013.07.02. 18:16 ]
Hozzászólás témája:  plugin javitás

helló ezt kijavitaná valaki?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. #define VERSION "0.0.1"
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Spawn With Awp", VERSION, "ConnorMcLeod")
  9. }
  10.  
  11. public plugin_precache()
  12. {
  13. new iEnt
  14. iEnt = create_entity("game_player_equip")
  15.  
  16. DispatchKeyValue(iEnt, "weapon_knife", "9")
  17. DispatchKeyValue(iEnt, "weapon_awp", "9")
  18. DispatchKeyValue(iEnt, "weapon_scout", "9")
  19. DispatchKeyValue(iEnt, "weapon_deagle", "9")
  20. DispatchSpawn(iEnt)
  21.  
  22. iEnt = create_entity("info_map_parameters")
  23. DispatchKeyValue(iEnt, "buying", "3")
  24. DispatchSpawn(iEnt)
  25. }
  26.  
  27. public pfn_keyvalue( iEnt )
  28. {
  29. new szClassName[32], szKeyName[32], szValue[32]
  30. copy_keyvalue(szClassName, charsmax(szClassName), szKeyName, charsmax(szKeyName), szValue, charsmax(szValue))
  31. if( equal(szClassName, "game_player_equip")
  32. || equal(szClassName, "info_map_parameters") )
  33. {
  34. remove_entity(iEnt)
  35. return PLUGIN_HANDLED
  36. }
  37. return PLUGIN_CONTINUE
  38. }
  39.  
  40. public plugin_cfg()
  41. {
  42. set_cvar_float("sv_restart", 1.0)
  43. }

Szerző:  Zsoltiaz_HUN [2013.07.02. 19:13 ]
Hozzászólás témája:  Re: plugin javitás

csmester írta:
helló ezt kijavitaná valaki?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. #define VERSION "0.0.1"
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Spawn With Awp", VERSION, "ConnorMcLeod")
  9. }
  10.  
  11. public plugin_precache()
  12. {
  13. new iEnt
  14. iEnt = create_entity("game_player_equip")
  15.  
  16. DispatchKeyValue(iEnt, "weapon_knife", "9")
  17. DispatchKeyValue(iEnt, "weapon_awp", "9")
  18. DispatchKeyValue(iEnt, "weapon_scout", "9")
  19. DispatchKeyValue(iEnt, "weapon_deagle", "9")
  20. DispatchSpawn(iEnt)
  21.  
  22. iEnt = create_entity("info_map_parameters")
  23. DispatchKeyValue(iEnt, "buying", "3")
  24. DispatchSpawn(iEnt)
  25. }
  26.  
  27. public pfn_keyvalue( iEnt )
  28. {
  29. new szClassName[32], szKeyName[32], szValue[32]
  30. copy_keyvalue(szClassName, charsmax(szClassName), szKeyName, charsmax(szKeyName), szValue, charsmax(szValue))
  31. if( equal(szClassName, "game_player_equip")
  32. || equal(szClassName, "info_map_parameters") )
  33. {
  34. remove_entity(iEnt)
  35. return PLUGIN_HANDLED
  36. }
  37. return PLUGIN_CONTINUE
  38. }
  39.  
  40. public plugin_cfg()
  41. {
  42. set_cvar_float("sv_restart", 1.0)
  43. }

mi a hiba? :D mert az oldal átalakítója átalakítja :)

Szerző:  csmester [2013.07.02. 19:20 ]
Hozzászólás témája:  Re: plugin javitás

leál a szero töle

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