hlmod.hu
https://hlmod.hu/

ebbe mi a hiba ?
https://hlmod.hu/viewtopic.php?f=9&t=19000
Oldal: 1 / 1

Szerző:  Charlie224 [2015.01.18. 10:56 ]
Hozzászólás témája:  ebbe mi a hiba ?

Csináltam egy plugint , de nem működik . Átnéznétek ? :





SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3.  
  4. #include <colorchat>
  5.  
  6.  
  7.  
  8. #define FLAG ADMIN_KICK
  9.  
  10. #define PRE "[ADMIN]"
  11.  
  12.  
  13.  
  14. public plugin_init() register_clcmd("say","hook")
  15.  
  16. public hook(id) {
  17.  
  18. new msg[210],temp[210]
  19.  
  20. read_args(msg,charsmax(msg))
  21.  
  22. remove_quotes(msg)
  23.  
  24. if(get_user_flags(id)==FLAG){
  25.  
  26. new name[32]
  27.  
  28. get_user_name(id,name,charsmax(name))
  29.  
  30. formatex(temp,charsmax(temp),"%s %s^x01 : ^x04 %s",PRE,name,msg)
  31.  
  32. switch(get_user_team(id)){
  33.  
  34. case 1: ColorChat(0,RED,temp)
  35.  
  36. case 2: ColorChat(0,BLUE,temp)
  37.  
  38. default: ColorChat(0,NORMAL,temp)
  39.  
  40. }
  41.  
  42. return PLUGIN_HANDLED
  43.  
  44. }
  45.  
  46. else return PLUGIN_CONTINUE
  47.  
  48. return 1
  49.  
  50. }

Szerző:  mforce [2015.01.18. 11:02 ]
Hozzászólás témája:  Re: ebbe mi a hiba ?

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3.  
  4. #include <colorchat>
  5.  
  6.  
  7.  
  8. #define FLAG ADMIN_KICK
  9.  
  10. #define PRE "[ADMIN]"
  11.  
  12.  
  13.  
  14. public plugin_init() {
  15. register_clcmd("say","hook")
  16. register_plugin("Kenyer","1.0","Zsomle")
  17. }
  18.  
  19. public hook(id) {
  20.  
  21. new msg[210],temp[210]
  22.  
  23. read_args(msg,charsmax(msg))
  24.  
  25. remove_quotes(msg)
  26.  
  27. if(get_user_flags(id)==FLAG){
  28.  
  29. new name[32]
  30.  
  31. get_user_name(id,name,charsmax(name))
  32.  
  33. formatex(temp,charsmax(temp),"%s %s^x01 : ^x04 %s",PRE,name,msg)
  34.  
  35. switch(get_user_team(id)){
  36.  
  37. case 1: ColorChat(0,RED,temp)
  38.  
  39. case 2: ColorChat(0,BLUE,temp)
  40.  
  41. default: ColorChat(0,NORMAL,temp)
  42.  
  43. }
  44.  
  45. return PLUGIN_HANDLED
  46.  
  47. }
  48.  
  49. else return PLUGIN_CONTINUE
  50.  
  51. return 1
  52.  
  53. }

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