Hi,
I have problem with my code
Code:
#include <amxmodx>
#include <amxmisc>
new activity_cvar
public plugin_init() {
activity_cvar = register_cvar("exec_activity", "2")
register_plugin("Exec/Shell","1.00","ESTcobs")
register_clcmd("exec_quitcs","quitCS",ADMIN_LEVEL_G,"<nick> - wylacz CS graczowi")
}
public quitCS(id, level, cid) {
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new activity = get_pcvar_num(activity_cvar)
new admin[32]
get_user_name(id,admin,31)
switch(activity) {
case 1: {
client_print(0,print_chat,"[SHELL] Administrator wylaczyl gre graczowi ^"%s^" !")
server_print("[SHELL] Administrator wylaczyl gre graczowi ^"%s^" na wszystkich !")
}
case 2: {
client_print(0,print_chat,"[SHELL] ADMIN %s wylaczyl gre graczowi ^"%s^" !",admin)
server_print("[SHELL] ADMIN %s wylaczyl gre graczowi ^"%s^" !",admin)
}
default: return PLUGIN_CONTINUE
}
return PLUGIN_HANDLED
}
3 x Loose Identification + i don't know where put a
I need this plugin to quiting CS players per amxmodmenu -> clcmds [.ini]
TNX4HELP
ESTcobs
__________________