PHP Code:
new szarg1[33], szalpha[8], szarg3[8], bool:mode
read_argv(1,szarg1,32)
read_argv(2,szalpha,7)
read_argv(3,szarg3,7)
new ialpha = str_to_num(szalpha)
if(equal(szarg3,"on"))
mode = true
new pid = cmd_target(id,szarg1,2)
if(pid > 0) {
hasinvis[pid] = mode
if(mode) {
client_print(pid,print_chat,"-[EVIL]- %s is now cloaked ",name)
set_user_rendering(pid,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,ialpha)
}
else {
client_print(pid,print_chat,"-[EVIL]- %s is no longer ",name)
set_user_rendering(pid,kRenderFxNone,0,0,0,kRenderNormal,ialpha)
}
}
}
I dont fully understand new (brand new to scripting)
new (creates something) arg (it is called upon in the command?)[] (length?) is this right?
__________________