PDA

View Full Version : I need mums with script problem in order to anybody has remade him it


phela133
04-15-2008, 11:43
Plugin acts but it unis possible to kill knife and it ask no grenade weapon even need change. In order to it was possible to haunt only on it. I ask about fast answer


#include <amxmodx>
#include <amxmisc>
#include <engine>

new semiclip = 1

public plugin_init() {
register_plugin("Semiclip", "1.0", "Crusher918")
register_concmd("amx_semiclip","cmd_semiclip",ADMIN_LEVEL_A,"<1|0>")
register_clcmd("fullupdate", "clcmd_fullupdate")
register_event("ResetHUD", "ResetHUD", "b")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}

public clcmd_fullupdate() {
return PLUGIN_HANDLED_MAIN
}

public cmd_semiclip(id,level,cid) {
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED

new name[32]
new arg1[32]
read_argv(1,arg1,31)
new cvarnum = str_to_num(arg1)
semiclip = cvarnum
get_user_name(id,name,31)

new players[32], pnum
get_players(players,pnum,"a")

if(semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_TRIGGER)
}
client_print(0,print_chat,"[AMXX] ADMIN %s: set semiclip on",name)
}
else if(!semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_BBOX)
}
client_print(0,print_chat,"[AMXX] ADMIN %s: unset semiclip off",name)
}
return PLUGIN_HANDLED
}

public ResetHUD(id) {
if(semiclip)
entity_set_int(id, EV_INT_solid, SOLID_TRIGGER)
else if(!semiclip)
entity_set_int(id, EV_INT_solid, SOLID_BBOX)
}

public new_round() {
new players[32], pnum
get_players(players,pnum,"a")

if(semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_TRIGGER)
}
}
else if(!semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_BBOX)
}
}
return PLUGIN_HANDLED
}

[ --<-@ ] Black Rose
04-15-2008, 11:47
Learn english.
What pathetic reason do you have not to?

phela133
04-15-2008, 11:51
My problem relies on it that as it will install this plugin unpossible kill no weapon!

YamiKaitou
04-15-2008, 14:06
Please correct your title to be something easier to understand and more descriptive

[ --<-@ ] Black Rose
04-15-2008, 14:37
Please correct your title to be something easier to understand and more descriptive

How is he supposed to fix that with his english? Have you read anything?