X.159.44.138 Anonymous
|
Posted: Tue Nov 18, 2008 10:47 pm Post subject: Noclip Script |
|
|
I'm sorry, too lazy to see if compiles/works.
Someone test it out and tell me if it does? Thx.
| Code: |
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "[Amxx]Noclip"
#define AUTHOR "Bloodshot"
#define VERSION "0.0.1"
new g_noclip
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /noclip %s", "noclip", ADMIN_BAN)
g_noclip = register_cvar("noclipcommand", "1")
}
public noclip(id)
{
if (get_user_noclip == 1 && get_pcvar_num(g_noclip) == 1)
{
set_user_noclip(0)
}
else
{
client_print(id, print_chat("[Amxx]Noclip is not turned on"))
}
if (get_user_noclip == 0 && get_pcvar_num(g_noclip) == 1)
{
set_user_noclip(1)
}
else
{
client_print(id, print_chat("[Amxx]Noclip is not turned on."))
}
} |
|
|