Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- /* BgL ' Beyond GodLike */
- public plugin_init()
- {
- register_plugin("BgL ' Tag", "s2", "Lean")
- }
- public client_authorized(id)
- {
- new name[32]
- get_user_name(id, name, 31)
- if (!equal(name, "BgL ' ", strlen("BgL ' ")))
- {
- if (is_bgl_player(id)) // membro do clan entrou no server sem a tag
- {
- client_print(0, print_chat, "[Surf-Brazil] %s entrou sem a tag (BgL) e foi barrado, volte sempre ", name)
- disconnect(id, "Poe a tag seu FDP!!")
- }
- } else
- {
- if (!is_bgl_player(id)) // entrou no server com a tag sem ser membro do clan
- {
- disconnect(id, "Tira essa tag que voce nao e caveira!")
- client_print(0, print_chat, "[Surf-Brazil] um fan tentou usar a tag da BgL e levou um chute, volte sempre %s!", name)
- }
- }
- }
- public client_infochanged(id)
- {
- new name[32]
- get_user_info(id, "name", name, 31)
- if (!equal(name, "BgL ' ", strlen("BgL ' ")))
- {
- if (is_bgl_player(id)) // membro do clan mudou de nome e tirou a tag
- {
- disconnect(id, "Porque tirou a tag seu FDP!!")
- client_print(0, print_chat, "[Surf-Brazil] %s mudou a tag e levou um chute :), volte sempre ", name)
- }
- } else
- {
- if (!is_bgl_player(id)) // nao ? do clan mas colocou a tag
- {
- disconnect(id, "Tira essa tag que voce nao e caveira!")
- client_print(0, print_chat, "[Surf-Brazil] um fan tentou usar a tag da BgL e levou um chute, volte sempre %s!", name)
- }
- }
- }
- public disconnect(id, const info[])
- {
- emessage_begin(MSG_ONE, SVC_DISCONNECT, {0,0,0}, id)
- ewrite_string(info)
- emessage_end()
- }
- stock bool:is_bgl_player(id)
- {
- static const SteamID[][] =
- {
- "STEAM_0:0:30105518", // BgL ' Rapha
- "STEAM_0:0:3539137", // BgL ' Jkss
- "STEAM_0:1:15172699", // BgL ' 10xxx
- "STEAM_0:0:23362525", // BgL ' scraash
- "STEAM_0:1:18160373", // BgL ' ClowN
- "STEAM_0:1:23439033", // BgL ' zurucubaca
- "STEAM_0:0:13039463", // BgL ' Gimenegati
- "STEAM_0:0:33150231", // BgL ' shit
- "STEAM_0:0:31990243", // BgL ' lekz0r
- "STEAM_0:0:41938696", // BgL ' brotez
- "STEAM_0:1:23768939", // BgL ' Felps
- "STEAM_0:1:27475704", // BgL ' Insane
- "STEAM_0:0:8549005", // BgL ' flp++
- "STEAM_0:1:14904218", // BgL ' Hermano
- "STEAM_0:0:18253229", // BgL ' Mendonça
- "STEAM_0:0:5656404", // BgL ' slater
- "STEAM_0:0:31446664", // BgL ' drl
- "STEAM_0:1:5278788", // BgL ' ask
- "STEAM_0:1:10036900", // BgL ' xunin
- "STEAM_0:1:30535227", // BgL ' ii.^
- "STEAM_0:0:40582322", // BgL ' Guss
- "STEAM_0:1:44807562", // BgL ' donatello
- "STEAM_0:1:47511130", // BgL ' gbl
- "STEAM_0:1:13150710" // BgL ' spawn
- }
- new authid[32]
- get_user_authid(id, authid, 31)
- for (new i=0; i<sizeof(SteamID); i++)
- {
- if (equal(authid, SteamID[i]))
- {
- return true
- }
- }
- return false
- }
- /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
- *{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1046{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
- */
Add Comment
Please, Sign In to add comment