hlmod.hu
https://hlmod.hu/

Chatba 3percenként.
https://hlmod.hu/viewtopic.php?f=29&t=19234
Oldal: 1 / 1

Szerző:  levo00 [ 2015.01.31. 16:34 ]
Hozzászólás témája:  Chatba 3percenként.

Sziasztok! azt hogy csináljam hogy mondjuk van ez a /ujra -s plugin és azt akarom h chatba is irja mondjuk 3percenként azt hogy , Ha ujra szeretnél éledni írd be azt hogy /ujra .
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "author"
  8.  
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_clcmd("say /respawn", "ujra")
  13. }
  14. public ujra(id) {
  15. new CsTeams:Team = cs_get_user_team(id)
  16.  
  17. if(is_user_alive(id) || Team == CS_TEAM_SPECTATOR) {
  18. client_print(id, print_chat, "Csak halottak használhatják!")
  19. }
  20. else
  21. {
  22. ExecuteHamB(Ham_CS_RoundRespawn, id)
  23. }
  24. }

Szerző:  xXlederXxHUN [ 2015.01.31. 16:37 ]
Hozzászólás témája:  Re: Chatba 3percenként.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "New Plug-In"
  6. #define VERSION "1.0"
  7. #define AUTHOR "author"
  8.  
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_clcmd("say /respawn", "ujra")
  13. set_task(180.0, "uzi", 0, _, _, "b")
  14. }
  15. public ujra(id) {
  16. new CsTeams:Team = cs_get_user_team(id)
  17.  
  18. if(is_user_alive(id) || Team == CS_TEAM_SPECTATOR) {
  19. client_print(id, print_chat, "Csak halottak használhatják!")
  20. }
  21. else
  22. {
  23. ExecuteHamB(Ham_CS_RoundRespawn, id)
  24. }
  25. }
  26. public uzi() client_print(0, print_chat, "Az uzenet")

Szerző:  levo00 [ 2015.01.31. 17:15 ]
Hozzászólás témája:  Re: Chatba 3percenként.

xXlederXxHUN írta:
SMA Forráskód: [ Mindet kijelol ]#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /respawn", "ujra")
set_task(180.0, "uzi", 0, _, _, "b")
}
public ujra(id) {
new CsTeams:Team = cs_get_user_team(id)
 
if(is_user_alive(id) || Team == CS_TEAM_SPECTATOR) {
client_print(id, print_chat, "Csak halottak használhatják!")
}
else
{
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public uzi() client_print(0, print_chat, "Az uzenet")

köszi! :)

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