LondoN eXtream 110 Posted April 21, 2015 Share Posted April 21, 2015 Descriere: Acest plugin nu permite HLTV'urilor si BOT'ilor sa intre pe server. Nu permite botilor care fac reclama [gen xFak] sa intre pe server. Nume: RF Guard Lite Autor: dK^aLeX Versiune: 1.0 Instalare: RF.cfg - > configs RF.sma - > scripting RF.amxx - > plugins In plugins.ini adaugam: RF.amxx Download: http://www.girlshare.ro/34689926.7 #include <amxmodx>#include <amxmisc>#include <fakemeta>#include <cstrike>#define PLUGIN "RF Functions Lite"#define VERSION "1.0"#define AUTHOR "dK^aLeX @ RF"new const TAG[] = "[^x04RG^x03]"new sEnabled, sModenew const g_szConfigFile[] = "RF.cfg"public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR) sEnabled = register_cvar("amx_rf_functions_lite", "1") sMode = register_cvar("rf_lite_mode", "2") register_forward(FM_ClientConnect, "fw_ClCon")}public fw_ClCon(id){ switch(get_pcvar_num(sEnabled)) { case 0 : { server_print("[RF] Plugin Disabled") } case 1 : { switch(get_pcvar_num(sMode)) { case 1 : { if(is_user_bot(id) && is_user_hltv(id)) { new sIp[32] get_user_ip(id, sIp, charsmax(sIp)) server_cmd("amx_kick %s HLTV & BOT's not allowed.", sIp) return 1; } } case 2 : { if(is_user_bot(id) && is_user_hltv(id)) { new sIp[32] get_user_ip(id, sIp, charsmax(sIp)) server_cmd("amx_ban %s 0 HLTV & BOT's not allowed", sIp) return 1; } } } } } return 1}public plugin_cfg(){ switch(get_pcvar_num(sEnabled)) { case 0 :{ server_print("[RF] Plugin Disabled") } case 1 : { new sDirector[64] get_configsdir(sDirector, sizeof(sDirector) -1) if(file_exists(g_szConfigFile)) { server_cmd("exec %s/%s", sDirector, g_szConfigFile) write_file(g_szConfigFile, " /* RangFort Function Lite */") write_file(g_szConfigFile, " /* Made by dK^aLeX */") write_file(g_szConfigFile, " ") write_file(g_szConfigFile, " // Default value: 1 ") write_file(g_szConfigFile, " // 1 - Activated | 2 - Deactivated") write_file(g_szConfigFile, "amx_rf_funtions_lite 1") write_file(g_szConfigFile, "//Mode") write_file(g_szConfigFile, "rf_lite_mode 2 // Ban | 1 = kick") } if(!file_exists(g_szConfigFile)) { server_print("[RF] File missing!") } } }}public client_putinserver(id){ switch(get_pcvar_num(sEnabled)) { case 0 : { server_print("[RF] Diabled") } case 1 : { new CsTeams:userTeam = cs_get_user_team(id) if(userTeam == CS_TEAM_SPECTATOR) { cs_set_user_team(id, CS_TEAM_T) client_print(id, print_chat, "%s Ai fost mutat la echipa ^x04 Terorist", TAG) } } }}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }*/ In RF.cfg adaugam: amx_rf_functions_lite "1" // Activat rf_lite_mode "2" // 1 - kick / 2 ban 2 Link to comment Share on other sites More sharing options...
Recommended Posts