Advertisement
Filiq_

Untitled

Dec 3rd, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <fakemeta>
  6.  
  7. #define PLUGIN "Blocare Multipla"
  8. #define VERSION "1.0"
  9. #define AUTHOR "KENNY."
  10.  
  11. #define kennyprefix "[BLOCK]"
  12. #define timp 10.0
  13.  
  14. new NameUnLock[33]
  15.  
  16. public plugin_init() {
  17. register_plugin(PLUGIN, VERSION, AUTHOR)
  18. register_clcmd ( "radio1", "cmdBlock" ) // 'z'
  19. register_clcmd ( "radio2", "cmdBlock" ) // 'x'
  20. register_clcmd ( "radio3", "cmdBlock" ) // 'c'
  21. server_cmd("sv_voiceenable 0") // 'k'
  22. register_message( get_user_msgid( "TextMsg" ), "TextMsgHandler" )
  23. register_forward(FM_ClientUserInfoChanged, "KENNY_NICKSPAM")
  24. }
  25.  
  26. public cmdBlock ( ) return PLUGIN_HANDLED
  27.  
  28. public TextMsgHandler( msgid, dest, receiver ) {
  29. static const szFireInTheHole[] = "#Fire_in_the_hole"
  30. static szMsg[18]
  31.  
  32. if(get_msg_arg_int(1) != 5)
  33. return PLUGIN_CONTINUE
  34.  
  35. get_msg_arg_string(5, szMsg, charsmax(szMsg))
  36. if(!strcmp(szMsg, szFireInTheHole))
  37. return PLUGIN_HANDLED
  38.  
  39. return PLUGIN_CONTINUE
  40. }
  41.  
  42. public KENNY_NICKSPAM(id) {
  43. new LastName[32],NewName[32]
  44.  
  45. pev(id,pev_netname,LastName,charsmax(LastName))
  46.  
  47. if(LastName[0])
  48. {
  49. get_user_info(id,"name", NewName, charsmax(NewName))
  50. if(!equal(LastName,NewName))
  51. {
  52. if (NameUnLock[id] == 1)
  53. {
  54. ColorChat(id,"^4%s^1 Iti poti schimba numele din nou in^4 10 secunde.",kennyprefix)
  55. set_user_info(id,"name",LastName)
  56. return FMRES_HANDLED
  57. }
  58. }
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement