Guest User

Untitled

a guest
Jan 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. /* BgL ' Beyond GodLike */
  4.  
  5. public plugin_init()
  6. {
  7. register_plugin("BgL ' Tag", "s2", "Lean")
  8. }
  9.  
  10. public client_authorized(id)
  11. {
  12. new name[32]
  13. get_user_name(id, name, 31)
  14.  
  15. if (!equal(name, "BgL ' ", strlen("BgL ' ")))
  16. {
  17. if (is_bgl_player(id)) // membro do clan entrou no server sem a tag
  18. {
  19. client_print(0, print_chat, "[Surf-Brazil] %s entrou sem a tag (BgL) e foi barrado, volte sempre ", name)
  20.  
  21. disconnect(id, "Poe a tag seu FDP!!")
  22. }
  23. } else
  24. {
  25. if (!is_bgl_player(id)) // entrou no server com a tag sem ser membro do clan
  26. {
  27. disconnect(id, "Tira essa tag que voce nao e caveira!")
  28.  
  29. client_print(0, print_chat, "[Surf-Brazil] um fan tentou usar a tag da BgL e levou um chute, volte sempre %s!", name)
  30. }
  31. }
  32. }
  33.  
  34. public client_infochanged(id)
  35. {
  36. new name[32]
  37. get_user_info(id, "name", name, 31)
  38.  
  39. if (!equal(name, "BgL ' ", strlen("BgL ' ")))
  40. {
  41. if (is_bgl_player(id)) // membro do clan mudou de nome e tirou a tag
  42. {
  43. disconnect(id, "Porque tirou a tag seu FDP!!")
  44.  
  45. client_print(0, print_chat, "[Surf-Brazil] %s mudou a tag e levou um chute :), volte sempre ", name)
  46. }
  47. } else
  48. {
  49. if (!is_bgl_player(id)) // nao ? do clan mas colocou a tag
  50. {
  51. disconnect(id, "Tira essa tag que voce nao e caveira!")
  52.  
  53. client_print(0, print_chat, "[Surf-Brazil] um fan tentou usar a tag da BgL e levou um chute, volte sempre %s!", name)
  54.  
  55. }
  56. }
  57. }
  58.  
  59.  
  60. public disconnect(id, const info[])
  61. {
  62. emessage_begin(MSG_ONE, SVC_DISCONNECT, {0,0,0}, id)
  63. ewrite_string(info)
  64. emessage_end()
  65. }
  66.  
  67. stock bool:is_bgl_player(id)
  68. {
  69. static const SteamID[][] =
  70. {
  71. "STEAM_0:0:30105518", // BgL ' Rapha
  72. "STEAM_0:0:3539137", // BgL ' Jkss
  73. "STEAM_0:1:15172699", // BgL ' 10xxx
  74. "STEAM_0:0:23362525", // BgL ' scraash
  75. "STEAM_0:1:18160373", // BgL ' ClowN
  76. "STEAM_0:1:23439033", // BgL ' zurucubaca
  77. "STEAM_0:0:13039463", // BgL ' Gimenegati
  78. "STEAM_0:0:33150231", // BgL ' shit
  79. "STEAM_0:0:31990243", // BgL ' lekz0r
  80. "STEAM_0:0:41938696", // BgL ' brotez
  81. "STEAM_0:1:23768939", // BgL ' Felps
  82. "STEAM_0:1:27475704", // BgL ' Insane
  83. "STEAM_0:0:8549005", // BgL ' flp++
  84. "STEAM_0:1:14904218", // BgL ' Hermano
  85. "STEAM_0:0:18253229", // BgL ' Mendonça
  86. "STEAM_0:0:5656404", // BgL ' slater
  87. "STEAM_0:0:31446664", // BgL ' drl
  88. "STEAM_0:1:5278788", // BgL ' ask
  89. "STEAM_0:1:10036900", // BgL ' xunin
  90. "STEAM_0:1:30535227", // BgL ' ii.^
  91. "STEAM_0:0:40582322", // BgL ' Guss
  92. "STEAM_0:1:44807562", // BgL ' donatello
  93. "STEAM_0:1:47511130", // BgL ' gbl
  94. "STEAM_0:1:13150710" // BgL ' spawn
  95.  
  96.  
  97.  
  98. }
  99.  
  100. new authid[32]
  101. get_user_authid(id, authid, 31)
  102.  
  103. for (new i=0; i<sizeof(SteamID); i++)
  104. {
  105. if (equal(authid, SteamID[i]))
  106. {
  107. return true
  108. }
  109. }
  110.  
  111. return false
  112. }
  113. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  114. *{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1046{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
  115. */
Add Comment
Please, Sign In to add comment