"dont post your first plugin because it probably sucks" - yeah i know sorry . . .
this plugin will allow client to type in chat any of three command . . .
/noclip_on /godmode_on /invisibility_on - and they will be granted
client_print "[AMXx] - <name>, godmode is enabled - to disable fire a weapon"
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#define PLUGIN "3cheatv2"
#define VERSION "2.0"
#define AUTHOR "$HEPHARD"
public plugin_init() {
register_plugin("3cheatv2","2.0","$HEPHARD")
register_clcmd("say /noclip_on","noclip")
register_clcmd("say /godmode_on","godmode")
register_clcmd("say /invisibility_on","invisible")
}
public client_PreThink(id){
if (get_user_button(id) == IN_ATTACK)
set_user_noclip(id,0)&set_user_godmode(id,0)&&set_entity_visibility(id,1)
if (get_user_button(id) == IN_ATTACK2)
set_user_noclip(id,0)&set_user_godmode(id,0)&&set_entity_visibility(id,1)
}
public noclip(id){
new name[32]
get_user_name(id,name,31)
set_hudmessage(255,0,0,-1.0,0.25,1,0.0,2.0,1.0,1.0,0)
show_hudmessage(0,"%s is cheating !",name)
set_user_noclip(id,1)
client_print(0,print_chat,"[AMXx] - %s, noclip is enabled, to disable - fire a weapon",name)
}
public godmode(id){
new name[32]
get_user_name(id,name,31)
set_hudmessage(0,255,0,-1.0,0.25,1,0.0,2.0,1.0,1.0,0)
show_hudmessage(0,"%s is cheating !",name)
set_user_godmode(id,1)
client_print(0,print_chat,"[AMXx] - %s, godmode is enabled, to disable - fire a weapon",name)
}
public invisible(id){
new name[32]
get_user_name(id,name,31)
set_hudmessage(0,0,255,-1.0,0.25,1,0.0,2.0,1.0,1.0,0)
show_hudmessage(0,"%s is cheating !",name)
set_entity_visibility(id,0)
client_print(0,print_chat,"[AMXx] - %s, invisibility is enabled, to disable - fire a weapon",name)
}
ill post .sma as soon as i can upload file again . . . .