updated header
This commit is contained in:
parent
983356c77e
commit
4478bb378f
|
@ -1,205 +1,201 @@
|
||||||
/* AMX Mod
|
/* AMX Mod X
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _amxconst_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _amxconst_included
|
|
||||||
|
|
||||||
// Uncomment if you are not using Steam
|
// Uncomment if you are not using Steam
|
||||||
//#define NO_STEAM
|
//#define NO_STEAM
|
||||||
|
|
||||||
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
|
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
|
||||||
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
|
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
|
||||||
#define ADMIN_KICK (1<<2) /* flag "c" */
|
#define ADMIN_KICK (1<<2) /* flag "c" */
|
||||||
#define ADMIN_BAN (1<<3) /* flag "d" */
|
#define ADMIN_BAN (1<<3) /* flag "d" */
|
||||||
#define ADMIN_SLAY (1<<4) /* flag "e" */
|
#define ADMIN_SLAY (1<<4) /* flag "e" */
|
||||||
#define ADMIN_MAP (1<<5) /* flag "f" */
|
#define ADMIN_MAP (1<<5) /* flag "f" */
|
||||||
#define ADMIN_CVAR (1<<6) /* flag "g" */
|
#define ADMIN_CVAR (1<<6) /* flag "g" */
|
||||||
#define ADMIN_CFG (1<<7) /* flag "h" */
|
#define ADMIN_CFG (1<<7) /* flag "h" */
|
||||||
#define ADMIN_CHAT (1<<8) /* flag "i" */
|
#define ADMIN_CHAT (1<<8) /* flag "i" */
|
||||||
#define ADMIN_VOTE (1<<9) /* flag "j" */
|
#define ADMIN_VOTE (1<<9) /* flag "j" */
|
||||||
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
|
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
|
||||||
#define ADMIN_RCON (1<<11) /* flag "l" */
|
#define ADMIN_RCON (1<<11) /* flag "l" */
|
||||||
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
|
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
|
||||||
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
|
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
|
||||||
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
|
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
|
||||||
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
|
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
|
||||||
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
|
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
|
||||||
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
|
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
|
||||||
#define ADMIN_LEVEL_G (1<<18) /* flag "s" */
|
#define ADMIN_LEVEL_G (1<<18) /* flag "s" */
|
||||||
|
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
|
||||||
|
#define ADMIN_MENU (1<<20) /* flag "u" */
|
||||||
|
#define ADMIN_USER (1<<25) /* flag "z" */
|
||||||
|
|
||||||
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
|
#define FLAG_KICK (1<<0) /* flag "a" */
|
||||||
#define ADMIN_MENU (1<<20) /* flag "u" */
|
#define FLAG_TAG (1<<1) /* flag "b" */
|
||||||
#define ADMIN_USER (1<<25) /* flag "z" */
|
#define FLAG_AUTHID (1<<2) /* flag "c" */
|
||||||
|
#define FLAG_IP (1<<3) /* flag "d" */
|
||||||
|
#define FLAG_NOPASS (1<<4) /* flag "e" */
|
||||||
|
|
||||||
#define FLAG_KICK (1<<0) /* flag "a" */
|
#define PLUGIN_CONTINUE 0 /* Results returned by public functions */
|
||||||
#define FLAG_TAG (1<<1) /* flag "b" */
|
#define PLUGIN_HANDLED 1 /* stop other plugins */
|
||||||
#define FLAG_AUTHID (1<<2) /* flag "c" */
|
#define PLUGIN_HANDLED_MAIN 2 /* to use in client_command(), continue all plugins but stop the command */
|
||||||
#define FLAG_IP (1<<3) /* flag "d" */
|
|
||||||
#define FLAG_NOPASS (1<<4) /* flag "e" */
|
|
||||||
|
|
||||||
#define PLUGIN_CONTINUE 0 /* Results returned by public functions */
|
|
||||||
#define PLUGIN_HANDLED 1 /* stop other plugins */
|
|
||||||
#define PLUGIN_HANDLED_MAIN 2 /* to use in client_command(), continue all plugins but stop the command */
|
|
||||||
|
|
||||||
/* Destination types for message_begin() */
|
/* Destination types for message_begin() */
|
||||||
#define MSG_BROADCAST 0 /* unreliable to all */
|
#define MSG_BROADCAST 0 /* unreliable to all */
|
||||||
#define MSG_ONE 1 /* reliable to one (msg_entity) */
|
#define MSG_ONE 1 /* reliable to one (msg_entity) */
|
||||||
#define MSG_ALL 2 /* reliable to all */
|
#define MSG_ALL 2 /* reliable to all */
|
||||||
#define MSG_INIT 3 /* write to the init string */
|
#define MSG_INIT 3 /* write to the init string */
|
||||||
#define MSG_PVS 4 /* Ents in PVS of org */
|
#define MSG_PVS 4 /* Ents in PVS of org */
|
||||||
#define MSG_PAS 5 /* Ents in PAS of org */
|
#define MSG_PAS 5 /* Ents in PAS of org */
|
||||||
#define MSG_PVS_R 6 /* Reliable to PVS */
|
#define MSG_PVS_R 6 /* Reliable to PVS */
|
||||||
#define MSG_PAS_R 7 /* Reliable to PAS */
|
#define MSG_PAS_R 7 /* Reliable to PAS */
|
||||||
#define MSG_ONE_UNRELIABLE 8 /* Send to one client, but don't put in reliable stream, put in unreliable datagram ( could be dropped ) */
|
#define MSG_ONE_UNRELIABLE 8 /* Send to one client, but don't put in reliable stream, put in unreliable datagram ( could be dropped ) */
|
||||||
#define MSG_SPEC 9 /* Sends to all spectator proxies */
|
#define MSG_SPEC 9 /* Sends to all spectator proxies */
|
||||||
|
|
||||||
/* Message types for message_begin() */
|
/* Message types for message_begin() */
|
||||||
#define SVC_TEMPENTITY 23
|
#define SVC_TEMPENTITY 23
|
||||||
#define SVC_INTERMISSION 30
|
#define SVC_INTERMISSION 30
|
||||||
#define SVC_CDTRACK 32
|
#define SVC_CDTRACK 32
|
||||||
#define SVC_WEAPONANIM 35
|
#define SVC_WEAPONANIM 35
|
||||||
#define SVC_ROOMTYPE 37
|
#define SVC_ROOMTYPE 37
|
||||||
#define SVC_ADDANGLE 38 /* [vec3] add this angle to the view angle */
|
#define SVC_ADDANGLE 38 /* [vec3] add this angle to the view angle */
|
||||||
#define SVC_NEWUSERMSG 39
|
#define SVC_NEWUSERMSG 39
|
||||||
#define SVC_HLTV 50
|
#define SVC_HLTV 50
|
||||||
|
|
||||||
/* Flags for register_cvar() */
|
/* Flags for register_cvar() */
|
||||||
#define FCVAR_ARCHIVE 1 /* set to cause it to be saved to vars.rc */
|
#define FCVAR_ARCHIVE 1 /* set to cause it to be saved to vars.rc */
|
||||||
#define FCVAR_USERINFO 2 /* changes the client's info string */
|
#define FCVAR_USERINFO 2 /* changes the client's info string */
|
||||||
#define FCVAR_SERVER 4 /* notifies players when changed */
|
#define FCVAR_SERVER 4 /* notifies players when changed */
|
||||||
#define FCVAR_EXTDLL 8 /* defined by external DLL */
|
#define FCVAR_EXTDLL 8 /* defined by external DLL */
|
||||||
#define FCVAR_CLIENTDLL 16 /* defined by the client dll */
|
#define FCVAR_CLIENTDLL 16 /* defined by the client dll */
|
||||||
#define FCVAR_PROTECTED 32 /* It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value */
|
#define FCVAR_PROTECTED 32 /* It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value */
|
||||||
#define FCVAR_SPONLY 64 /* This cvar cannot be changed by clients connected to a multiplayer server. */
|
#define FCVAR_SPONLY 64 /* This cvar cannot be changed by clients connected to a multiplayer server. */
|
||||||
#define FCVAR_PRINTABLEONLY 128 /* This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ). */
|
#define FCVAR_PRINTABLEONLY 128 /* This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ). */
|
||||||
#define FCVAR_UNLOGGED 256 /* If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log */
|
#define FCVAR_UNLOGGED 256 /* If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log */
|
||||||
|
|
||||||
|
|
||||||
/* Id of weapons in CS */
|
/* Id of weapons in CS */
|
||||||
#define CSW_P228 1
|
#define CSW_P228 1
|
||||||
#define CSW_SCOUT 3
|
#define CSW_SCOUT 3
|
||||||
#define CSW_HEGRENADE 4
|
#define CSW_HEGRENADE 4
|
||||||
#define CSW_XM1014 5
|
#define CSW_XM1014 5
|
||||||
#define CSW_C4 6
|
#define CSW_C4 6
|
||||||
#define CSW_MAC10 7
|
#define CSW_MAC10 7
|
||||||
#define CSW_AUG 8
|
#define CSW_AUG 8
|
||||||
#define CSW_SMOKEGRENADE 9
|
#define CSW_SMOKEGRENADE 9
|
||||||
#define CSW_ELITE 10
|
#define CSW_ELITE 10
|
||||||
#define CSW_FIVESEVEN 11
|
#define CSW_FIVESEVEN 11
|
||||||
#define CSW_UMP45 12
|
#define CSW_UMP45 12
|
||||||
#define CSW_SG550 13
|
#define CSW_SG550 13
|
||||||
#define CSW_GALI 14
|
#define CSW_GALIL 14
|
||||||
#define CSW_FAMAS 15
|
#define CSW_FAMAS 15
|
||||||
#define CSW_USP 16
|
#define CSW_USP 16
|
||||||
#define CSW_GLOCK18 17
|
#define CSW_GLOCK18 17
|
||||||
#define CSW_AWP 18
|
#define CSW_AWP 18
|
||||||
#define CSW_MP5NAVY 19
|
#define CSW_MP5NAV 19
|
||||||
#define CSW_M249 20
|
#define CSW_M249 20
|
||||||
#define CSW_M3 21
|
#define CSW_M3 21
|
||||||
#define CSW_M4A1 22
|
#define CSW_M4A1 22
|
||||||
#define CSW_TMP 23
|
#define CSW_TMP 23
|
||||||
#define CSW_G3SG1 24
|
#define CSW_G3SG1 24
|
||||||
#define CSW_FLASHBANG 25
|
#define CSW_FLASHBANG 25
|
||||||
#define CSW_DEAGLE 26
|
#define CSW_DEAGLE 26
|
||||||
#define CSW_SG552 27
|
#define CSW_SG552 27
|
||||||
#define CSW_AK47 28
|
#define CSW_AK47 28
|
||||||
#define CSW_KNIFE 29
|
#define CSW_KNIFE 29
|
||||||
#define CSW_P90 30
|
#define CSW_P90 30
|
||||||
|
|
||||||
/* Parts of body for hits */
|
/* Parts of body for hits */
|
||||||
#define HIT_GENERIC 0 /* none */
|
#define HIT_GENERIC 0 /* none */
|
||||||
#define HIT_HEAD 1
|
#define HIT_HEAD 1
|
||||||
#define HIT_CHEST 2
|
#define HIT_CHEST 2
|
||||||
#define HIT_STOMACH 3
|
#define HIT_STOMACH 3
|
||||||
#define HIT_LEFTARM 4
|
#define HIT_LEFTARM 4
|
||||||
#define HIT_RIGHTARM 5
|
#define HIT_RIGHTARM 5
|
||||||
#define HIT_LEFTLEG 6
|
#define HIT_LEFTLEG 6
|
||||||
#define HIT_RIGHTLEG 7
|
#define HIT_RIGHTLEG 7
|
||||||
|
|
||||||
/* Constants for emit_sound() */
|
/* Constants for emit_sound() */
|
||||||
/* Channels */
|
/* Channels */
|
||||||
#define CHAN_AUTO 0
|
#define CHAN_AUTO 0
|
||||||
#define CHAN_WEAPON 1
|
#define CHAN_WEAPON 1
|
||||||
#define CHAN_VOICE 2
|
#define CHAN_VOICE 2
|
||||||
#define CHAN_ITEM 3
|
#define CHAN_ITEM 3
|
||||||
#define CHAN_BODY 4
|
#define CHAN_BODY 4
|
||||||
#define CHAN_STREAM 5 /* allocate stream channel from the static or dynamic area */
|
#define CHAN_STREAM 5 /* allocate stream channel from the static or dynamic area */
|
||||||
#define CHAN_STATIC 6 /* allocate channel from the static area */
|
#define CHAN_STATIC 6 /* allocate channel from the static area */
|
||||||
#define CHAN_NETWORKVOICE_BASE 7 /* voice data coming across the network */
|
#define CHAN_NETWORKVOICE_BASE 7 /* voice data coming across the network */
|
||||||
#define CHAN_NETWORKVOICE_END 500 /* network voice data reserves slots (CHAN_NETWORKVOICE_BASE through CHAN_NETWORKVOICE_END). */
|
#define CHAN_NETWORKVOICE_END 500 /* network voice data reserves slots (CHAN_NETWORKVOICE_BASE through CHAN_NETWORKVOICE_END). */
|
||||||
|
|
||||||
/* Attenuation values */
|
/* Attenuation values */
|
||||||
#define ATTN_NONE 0.00
|
#define ATTN_NONE 0.00
|
||||||
#define ATTN_NORM 0.80
|
#define ATTN_NORM 0.80
|
||||||
#define ATTN_IDLE 2.00
|
#define ATTN_IDLE 2.00
|
||||||
#define ATTN_STATIC 1.25
|
#define ATTN_STATIC 1.25
|
||||||
|
|
||||||
/* Pitch values */
|
/* Pitch values */
|
||||||
#define PITCH_NORM 100 /* non-pitch shifted */
|
#define PITCH_NORM 100 /* non-pitch shifted */
|
||||||
#define PITCH_LOW 95 /* other values are possible - 0-255, where 255 is very high */
|
#define PITCH_LOW 95 /* other values are possible - 0-255, where 255 is very high */
|
||||||
#define PITCH_HIGH 120
|
#define PITCH_HIGH 120
|
||||||
|
|
||||||
|
|
||||||
/* Volume values */
|
/* Volume values */
|
||||||
#define VOL_NORM 1.0
|
#define VOL_NORM 1.0
|
||||||
|
|
||||||
/* Destination types for client_print() */
|
/* Destination types for client_print() */
|
||||||
enum {
|
enum {
|
||||||
print_notify = 1,
|
print_notify = 1,
|
||||||
print_console,
|
print_console,
|
||||||
print_chat,
|
print_chat,
|
||||||
print_center,
|
print_center,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destination types for engclient_print() */
|
/* Destination types for engclient_print() */
|
||||||
enum {
|
enum {
|
||||||
engprint_console = 0,
|
engprint_console = 0,
|
||||||
engprint_center,
|
engprint_center,
|
||||||
engprint_chat,
|
engprint_chat,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Render for set_user_rendering() */
|
/* Render for set_user_rendering() */
|
||||||
enum {
|
enum {
|
||||||
kRenderNormal, /* src */
|
kRenderNormal, /* src */
|
||||||
kRenderTransColor, /* c*a+dest*(1-a) */
|
kRenderTransColor, /* c*a+dest*(1-a) */
|
||||||
kRenderTransTexture, /* src*a+dest*(1-a) */
|
kRenderTransTexture, /* src*a+dest*(1-a) */
|
||||||
kRenderGlow, /* src*a+dest -- No Z buffer checks */
|
kRenderGlow, /* src*a+dest -- No Z buffer checks */
|
||||||
kRenderTransAlpha, /* src*srca+dest*(1-srca) */
|
kRenderTransAlpha, /* src*srca+dest*(1-srca) */
|
||||||
kRenderTransAdd, /* src*a+dest */
|
kRenderTransAdd, /* src*a+dest */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fx for set_user_rendering() */
|
/* Fx for set_user_rendering() */
|
||||||
enum {
|
enum {
|
||||||
kRenderFxNone = 0,
|
kRenderFxNone = 0,
|
||||||
kRenderFxPulseSlow,
|
kRenderFxPulseSlow,
|
||||||
kRenderFxPulseFast,
|
kRenderFxPulseFast,
|
||||||
kRenderFxPulseSlowWide,
|
kRenderFxPulseSlowWide,
|
||||||
kRenderFxPulseFastWide,
|
kRenderFxPulseFastWide,
|
||||||
kRenderFxFadeSlow,
|
kRenderFxFadeSlow,
|
||||||
kRenderFxFadeFast,
|
kRenderFxFadeFast,
|
||||||
kRenderFxSolidSlow,
|
kRenderFxSolidSlow,
|
||||||
kRenderFxSolidFast,
|
kRenderFxSolidFast,
|
||||||
kRenderFxStrobeSlow,
|
kRenderFxStrobeSlow,
|
||||||
kRenderFxStrobeFast,
|
kRenderFxStrobeFast,
|
||||||
kRenderFxStrobeFaster,
|
kRenderFxStrobeFaster,
|
||||||
kRenderFxFlickerSlow,
|
kRenderFxFlickerSlow,
|
||||||
kRenderFxFlickerFast,
|
kRenderFxFlickerFast,
|
||||||
kRenderFxNoDissipation,
|
kRenderFxNoDissipation,
|
||||||
kRenderFxDistort, /* Distort/scale/translate flicker */
|
kRenderFxDistort, /* Distort/scale/translate flicker */
|
||||||
kRenderFxHologram, /* kRenderFxDistort + distance fade */
|
kRenderFxHologram, /* kRenderFxDistort + distance fade */
|
||||||
kRenderFxDeadPlayer, /* kRenderAmt is the player index */
|
kRenderFxDeadPlayer, /* kRenderAmt is the player index */
|
||||||
kRenderFxExplode, /* Scale up really big! */
|
kRenderFxExplode, /* Scale up really big! */
|
||||||
kRenderFxGlowShell, /* Glowing Shell */
|
kRenderFxGlowShell, /* Glowing Shell */
|
||||||
kRenderFxClampMinScale, /* Keep this sprite from getting very small (SPRITES only!) */
|
kRenderFxClampMinScale, /* Keep this sprite from getting very small (SPRITES only!) */
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
force_exactfile, /* File on client must exactly match server's file */
|
force_exactfile = 0, /* File on client must exactly match server's file */
|
||||||
force_model_samebounds, /* For model files only, the geometry must fit in the same bbox */
|
force_model_samebounds, /* For model files only, the geometry must fit in the same bbox */
|
||||||
force_model_specifybounds, /* For model files only, the geometry must fit in the specified bbox */
|
force_model_specifybounds, /* For model files only, the geometry must fit in the specified bbox */
|
||||||
}
|
}
|
|
@ -1,26 +1,23 @@
|
||||||
/* AMX Mod misc.
|
/* AMX Mod X misc.
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined _amxmisc_included
|
stock bool:cmd_access(id,level,cid,num) {
|
||||||
#endinput
|
if ( ((get_user_flags(id)&level)!=level) && (id!=(is_dedicated_server()?0:1)) ) {
|
||||||
#endif
|
console_print(id,"You have no access to that command")
|
||||||
#define _amxmisc_included
|
return false
|
||||||
|
|
||||||
stock cmd_access(a,b,c,d){
|
|
||||||
if ( ((get_user_flags(a)&b)!=b) && (a!=(is_dedicated_server()?0:1)) ){
|
|
||||||
console_print(a,"You have no access to that command")
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
if (read_argc() < d){
|
if (read_argc() < num) {
|
||||||
new hcmd[32], hinfo[128], hflag
|
new hcmd[32], hinfo[128], hflag
|
||||||
get_concmd(c,hcmd,31,hflag,hinfo,127,b)
|
get_concmd(cid,hcmd,31,hflag,hinfo,127,level)
|
||||||
console_print(a,"Usage: %s %s",hcmd,hinfo)
|
console_print(id,"Usage: %s %s",hcmd,hinfo)
|
||||||
return 0
|
return false
|
||||||
}
|
}
|
||||||
return 1
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
stock access(id,level)
|
stock access(id,level)
|
||||||
|
@ -34,36 +31,36 @@ stock access(id,level)
|
||||||
*/
|
*/
|
||||||
stock cmd_target(id,const arg[],flags = 1) {
|
stock cmd_target(id,const arg[],flags = 1) {
|
||||||
new player = find_player("bl",arg)
|
new player = find_player("bl",arg)
|
||||||
if (player){
|
if (player) {
|
||||||
if ( player != find_player("blj",arg) ){
|
if ( player != find_player("blj",arg) ) {
|
||||||
console_print(id,"There are more clients matching to your argument")
|
console_print(id,"There are more clients matching to your argument")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( ( player = find_player("c",arg) )==0 && arg[0]=='#' && arg[1] )
|
else if ( ( player = find_player("c",arg) )==0 && arg[0]=='#' && arg[1] )
|
||||||
player = find_player("k",strtonum(arg[1]))
|
player = find_player("k",strtonum(arg[1]))
|
||||||
if (!player){
|
if (!player) {
|
||||||
console_print(id,"Client with that name or userid not found")
|
console_print(id,"Client with that name or userid not found")
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
if (flags & 1){
|
if (flags & 1) {
|
||||||
if ((get_user_flags(player)&ADMIN_IMMUNITY) && ((flags&2)?(id!=player):true) ){
|
if ((get_user_flags(player)&ADMIN_IMMUNITY) && ((flags&2)?(id!=player):true) ) {
|
||||||
new imname[32]
|
new imname[32]
|
||||||
get_user_name(player,imname,31)
|
get_user_name(player,imname,31)
|
||||||
console_print(id,"Client ^"%s^" has immunity",imname)
|
console_print(id,"Client ^"%s^" has immunity",imname)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flags & 4){
|
if (flags & 4) {
|
||||||
if (!is_user_alive(player)){
|
if (!is_user_alive(player)) {
|
||||||
new imname[32]
|
new imname[32]
|
||||||
get_user_name(player,imname,31)
|
get_user_name(player,imname,31)
|
||||||
console_print(id,"That action can't be performed on dead client ^"%s^"",imname)
|
console_print(id,"That action can't be performed on dead client ^"%s^"",imname)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flags & 8){
|
if (flags & 8) {
|
||||||
if (is_user_bot(player)){
|
if (is_user_bot(player)) {
|
||||||
new imname[32]
|
new imname[32]
|
||||||
get_user_name(player,imname,31)
|
get_user_name(player,imname,31)
|
||||||
console_print(id,"That action can't be performed on bot ^"%s^"",imname)
|
console_print(id,"That action can't be performed on bot ^"%s^"",imname)
|
||||||
|
@ -73,9 +70,9 @@ stock cmd_target(id,const arg[],flags = 1) {
|
||||||
return player
|
return player
|
||||||
}
|
}
|
||||||
|
|
||||||
stock show_activity( id, const name[], {Float,_}: ... ){
|
stock show_activity( id, const name[], {Float,_}: ... ) {
|
||||||
new buffer[128]
|
new buffer[128]
|
||||||
format_args( buffer , 127 , 2 )
|
format_args( buffer , 127 , 2 )
|
||||||
switch(get_cvar_num("amx_show_activity")) {
|
switch(get_cvar_num("amx_show_activity")) {
|
||||||
case 2: client_print(0,print_chat,"%s %s: %s",
|
case 2: client_print(0,print_chat,"%s %s: %s",
|
||||||
(get_user_flags(id) & ADMIN_USER) ? "PLAYER" : "ADMIN" , name , buffer )
|
(get_user_flags(id) & ADMIN_USER) ? "PLAYER" : "ADMIN" , name , buffer )
|
||||||
|
@ -84,7 +81,7 @@ stock show_activity( id, const name[], {Float,_}: ... ){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stock is_running(const arg[]){
|
stock is_running(const arg[]) {
|
||||||
new mod_name[32]
|
new mod_name[32]
|
||||||
get_modname(mod_name,31)
|
get_modname(mod_name,31)
|
||||||
return equal(mod_name,arg)
|
return equal(mod_name,arg)
|
||||||
|
@ -97,8 +94,8 @@ stock build_path( path[] , len , {Float,_}:... ) {
|
||||||
return replace( path , len , "$basedir", basedir )
|
return replace( path , len , "$basedir", basedir )
|
||||||
}
|
}
|
||||||
|
|
||||||
stock get_basedir( name[], len )
|
stock get_basedir( name[], len )
|
||||||
return get_localinfo( "amx_basedir", name , len )
|
return get_localinfo( "amx_basedir", name , len )
|
||||||
|
|
||||||
stock get_logfile( name[], len )
|
stock get_logfile( name[], len )
|
||||||
return get_time("admin%m%d.log",name,len)
|
return get_time("admin%m%d.log",name,len)
|
|
@ -1,13 +1,10 @@
|
||||||
/* AMX Mod functions
|
/* AMX Mod X functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _amxmod_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _amxmod_included
|
|
||||||
|
|
||||||
#include <core>
|
#include <core>
|
||||||
#include <float>
|
#include <float>
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
/* Core functions
|
/* Core functions
|
||||||
*
|
*
|
||||||
* (c) Copyright 1998-2002, ITB CompuPhase
|
* (c) Copyright 1998-2003, ITB CompuPhase
|
||||||
* This file is provided as is (no warranties).
|
*
|
||||||
*/
|
* This file is provided as is (no warranties).
|
||||||
#if defined _core_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _core_included
|
|
||||||
|
|
||||||
native heapspace();
|
native heapspace();
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
/* CS Stats functions
|
/* CS Stats functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _csstats_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _csstats_included
|
|
||||||
|
|
||||||
/* Gets stats from given weapon index. If wpnindex is 0
|
/* Gets stats from given weapon index. If wpnindex is 0
|
||||||
* then the stats are from all weapons. If weapon has not been used function
|
* then the stats are from all weapons. If weapon has not been used function
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
/* Files functions
|
/* Files functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _file_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _file_included
|
|
||||||
|
|
||||||
|
|
||||||
/* Reads content from directory.
|
/* Reads content from directory.
|
||||||
* Returns index of next element or 0 when end of dir. is reached. */
|
* Returns index of next element or 0 when end of dir. is reached. */
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
/* Fun functions
|
/* Fun functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _fun_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _fun_included
|
|
||||||
|
|
||||||
/* Sets who can listen who. Function returns 0
|
/* Sets who can listen who. Function returns 0
|
||||||
* if for some reasons this setting can't be done. */
|
* if for some reasons this setting can't be done. */
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
/* MySQL functions
|
/* MySQL functions
|
||||||
*
|
*
|
||||||
* (c) Copyright 2002, dJeyL
|
* (c) Copyright 2002-2004, dJeyL
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _mysql_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _mysql_included
|
|
||||||
|
|
||||||
/* Opens connection. If already such exists then that will be used.
|
/* Opens connection. If already such exists then that will be used.
|
||||||
* Function returns sql id to use with other sql natives.
|
* Function returns sql id to use with other sql natives.
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
/* Strings manipulation
|
/* Strings manipulation
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
* This file is provided as is (no warranties).
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
*/
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
#if defined _string_included
|
*/
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _string_included
|
|
||||||
|
|
||||||
/* Checks if source contains string. On success function
|
/* Checks if source contains string. On success function
|
||||||
* returns position in source, on failure returns -1. */
|
* returns position in source, on failure returns -1. */
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
/* Vault
|
/* Vault
|
||||||
*
|
*
|
||||||
* (c) 2002-2003, OLO
|
* (c) 2002-2004, OLO
|
||||||
|
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||||
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined _vault_included
|
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _vault_included
|
|
||||||
|
|
||||||
/* Reads a data from given key.
|
/* Reads a data from given key.
|
||||||
* If len is set to zero then get_vaultdata
|
* If len is set to zero then get_vaultdata
|
||||||
* returns value as an number. */
|
* returns value as an number. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user