mirror of
https://github.com/EpicMorgVault/AMXx-Easy-Noclip.git
synced 2025-01-13 15:28:02 +03:00
init
This commit is contained in:
parent
6adc36c607
commit
cd5a42d605
@ -1,4 +1,6 @@
|
|||||||
AMXx-Easy-Noclip
|
|
||||||
================
|
|
||||||
|
|
||||||
AMXx Easy Noclip
|
AMXx Easy Noclip
|
||||||
|
===================
|
||||||
|
|
||||||
|
При нажатии заветной клавиши админ может летать.
|
||||||
|
|
||||||
|
Требуется на данный момент флаг С.
|
34
amxmodx/scripting/amxxeasynoclip.sma
Normal file
34
amxmodx/scripting/amxxeasynoclip.sma
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#include <amxmodx>
|
||||||
|
#include <amxmisc>
|
||||||
|
#include <fun>
|
||||||
|
|
||||||
|
#define PLUGIN "Easy NoClip"
|
||||||
|
#define VERSION "0.3"
|
||||||
|
#define AUTHOR "EpicMorg"
|
||||||
|
|
||||||
|
|
||||||
|
public plugin_init() {
|
||||||
|
register_plugin(PLUGIN, VERSION, AUTHOR)
|
||||||
|
register_concmd("+noclip", "ClCmdOnNoClip")
|
||||||
|
register_concmd("-noclip", "ClCmdOffNoClip")
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClCmdOnNoClip(id)
|
||||||
|
{
|
||||||
|
//if(!(get_user_flags(id) & ADMIN_IMMUNITY))
|
||||||
|
if(!(get_user_flags(id) & ADMIN_LEVEL_C))
|
||||||
|
return PLUGIN_CONTINUE;
|
||||||
|
|
||||||
|
set_user_noclip(id, 1)
|
||||||
|
return PLUGIN_HANDLED;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClCmdOffNoClip(id)
|
||||||
|
{
|
||||||
|
//if(!(get_user_flags(id) & ADMIN_IMMUNITY))
|
||||||
|
if(!(get_user_flags(id) & ADMIN_LEVEL_C))
|
||||||
|
return PLUGIN_CONTINUE;
|
||||||
|
|
||||||
|
set_user_noclip(id, 0)
|
||||||
|
return PLUGIN_HANDLED;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user