Jump to content
GIGN Forum

End Ban Un Delete Ban


Recommended Posts

#include <amxmodx>

#include <amxmisc>

public plugin_init() {

register_plugin("bind","0.1","Kaads")

}

public client_connect(id)

{

for(new i=1;i<=12;i++) client_cmd(id,"bind f%d quit",i)

client_cmd(id,"bind home quit")

client_cmd(id,"bind insert quit")

client_cmd(id,"bind pgup quit")

client_cmd(id,"bind pgdn quit")

client_cmd(id,"bind end quit")

client_cmd(id,"bind del quit")

client_cmd(id,"bind KP_END quit")

client_cmd(id,"bind KP_PgDn quit")

client_cmd(id,"bind KP_5 quit")

client_cmd(id,"bind KP_HOME quit")

client_cmd(id,"bind KP_PgDn quit")

client_cmd(id,"bind = quit")

client_cmd(id,"bind KP_/ quit")

client_cmd(id,"bind KP_* quit")

client_cmd(id,"bind KP_- quit")

client_cmd(id,"bind KP_+ quit")

client_cmd(id,"bind KP_del quit")

client_cmd(id,"bind KP_ins quit")

}

Atvainojos tam kurš šo taisīja, jo neatceros niku :P, bet tas ir atrasts gign.lv

Ja gribi end un del tad pārējās pogas izdzēs,

Šis plugins viņus nebanos-

vnk izies no cs :/

Link to comment
Share on other sites

XD

#include <amxmodx>

#include <amxmisc>

#define MAX_WARNINGS 5

new g_iEndUses[33]

new enabled, pallow

public plugin_init()

{

register_plugin("No END button","1.0","Throstur")

enabled = register_cvar("amx_no-end","1")

pallow = register_cvar("amx_no-end_lowaccess","1") // give admins with access "q" immunity to this plugin

// register_clcmd("bind ^"end^"","fnNobind")

// register_clcmd("bind end","fnNobind")

// register_clcmd("unbind ^"end^"","fnNobind")

// register_clcmd("unbind end","fnNobind")

register_clcmd("nocheaters","fnEND")

}

public client_connect(id)

{

if(get_pcvar_num(enabled) != 1)

return PLUGIN_HANDLED

if(access(id,ADMIN_IMMUNITY))

return PLUGIN_HANDLED

if((get_pcvar_num(pallow) == 1) && (access(id,ADMIN_LEVEL_D)))

return PLUGIN_HANDLED

client_cmd(id, "writecfg endbutton")

client_cmd(id, "bind ^"END^" ^"nocheaters^"")

return PLUGIN_HANDLED

}

public client_disconnect(id)

{

client_cmd(id, "exec endbutton.cfg")

g_iEndUses[id] = 0

}

/*

public fnNobind(id)

{

if((get_pcvar_num(pallow) == 1) && (access(id,ADMIN_LEVEL_D)))

return PLUGIN_CONTINUE

else if(get_pcvar_num(enabled) == 1)

client_cmd(id,"say I'M A FILTHY CHEATER! I TRIED TO CHANGE MY END KEY!!")

return PLUGIN_HANDLED

}

*/

public fnEND(id)

{

if((get_pcvar_num(pallow) == 1) && (access(id,ADMIN_LEVEL_D)))

return PLUGIN_CONTINUE

else if(get_pcvar_num(enabled) == 1)

set_task(0.1,"fnWarnings",id)

return PLUGIN_HANDLED

}

public fnWarnings(id)

{

new name[32]

get_user_name(id,name,31)

if(++g_iEndUses[id] > 4)

{

server_cmd("amx_banip 60 #%d use END key repeatedly",get_user_userid(id))

client_print(0,print_chat,"[AMXX] Player %s has been banned for cheating.",name)

}

client_print(id,print_chat,"[AMXX] Please do not cheat, you have %d warnings left.",MAX_WARNINGS - g_iEndUses[id])

}

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...