Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fun>
- public plugin_init()
- {
- register_plugin("NoClip", "1.0", "Seroff");
- }
- public client_command(id)
- {
- if(~get_user_flags(id) & ADMIN_IMMUNITY) return 0;
- new szArg[10];
- read_argv(0,szArg,sizeof(szArg)-1);
- if(equal("+noclip",szArg)){
- set_user_noclip(id,1);
- set_hudmessage(0, 255, 0, -1.0, 0.34, 0, 6.0, 3.0);
- show_hudmessage(id, "NoClip Включен!");
- }
- if(equal("-noclip",szArg)){
- set_user_noclip(id,0);
- set_hudmessage(255, 0, 0, -1.0, 0.34, 0, 6.0, 3.0);
- show_hudmessage(id, "NoClip Выключен!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment