updated header
This commit is contained in:
parent
983356c77e
commit
4478bb378f
|
@ -1,14 +1,11 @@
|
|||
/* AMX Mod
|
||||
/* AMX Mod X
|
||||
*
|
||||
* (c) 2002-2004, OLO
|
||||
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _amxconst_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _amxconst_included
|
||||
|
||||
// Uncomment if you are not using Steam
|
||||
//#define NO_STEAM
|
||||
|
||||
|
@ -31,7 +28,6 @@
|
|||
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
|
||||
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
|
||||
#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" */
|
||||
|
@ -93,12 +89,12 @@
|
|||
#define CSW_FIVESEVEN 11
|
||||
#define CSW_UMP45 12
|
||||
#define CSW_SG550 13
|
||||
#define CSW_GALI 14
|
||||
#define CSW_GALIL 14
|
||||
#define CSW_FAMAS 15
|
||||
#define CSW_USP 16
|
||||
#define CSW_GLOCK18 17
|
||||
#define CSW_AWP 18
|
||||
#define CSW_MP5NAVY 19
|
||||
#define CSW_MP5NAV 19
|
||||
#define CSW_M249 20
|
||||
#define CSW_M3 21
|
||||
#define CSW_M4A1 22
|
||||
|
@ -199,7 +195,7 @@ 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_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-2004, OLO
|
||||
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _amxmisc_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _amxmisc_included
|
||||
|
||||
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
|
||||
stock bool:cmd_access(id,level,cid,num) {
|
||||
if ( ((get_user_flags(id)&level)!=level) && (id!=(is_dedicated_server()?0:1)) ) {
|
||||
console_print(id,"You have no access to that command")
|
||||
return false
|
||||
}
|
||||
if (read_argc() < d){
|
||||
if (read_argc() < num) {
|
||||
new hcmd[32], hinfo[128], hflag
|
||||
get_concmd(c,hcmd,31,hflag,hinfo,127,b)
|
||||
console_print(a,"Usage: %s %s",hcmd,hinfo)
|
||||
return 0
|
||||
get_concmd(cid,hcmd,31,hflag,hinfo,127,level)
|
||||
console_print(id,"Usage: %s %s",hcmd,hinfo)
|
||||
return false
|
||||
}
|
||||
return 1
|
||||
return true
|
||||
}
|
||||
|
||||
stock access(id,level)
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* AMX Mod functions
|
||||
/* AMX Mod X functions
|
||||
*
|
||||
* (c) 2002-2004, OLO
|
||||
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _amxmod_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _amxmod_included
|
||||
|
||||
#include <core>
|
||||
#include <float>
|
||||
#include <amxconst>
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
/* Core functions
|
||||
*
|
||||
* (c) Copyright 1998-2002, ITB CompuPhase
|
||||
* (c) Copyright 1998-2003, ITB CompuPhase
|
||||
*
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
#if defined _core_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _core_included
|
||||
|
||||
native heapspace();
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* CS Stats functions
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* (c) 2002-2004, OLO
|
||||
* 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
|
||||
* then the stats are from all weapons. If weapon has not been used function
|
||||
* returns 0 in other case 1. Fields in stats are:
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
/* Files functions
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* (c) 2002-2004, OLO
|
||||
* 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.
|
||||
* Returns index of next element or 0 when end of dir. is reached. */
|
||||
native read_dir(const dirname[],pos,output[],len,&outlen);
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* Fun functions
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* (c) 2002-2004, OLO
|
||||
* 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
|
||||
* if for some reasons this setting can't be done. */
|
||||
native set_user_listening(receiver,sender,listen);
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* MySQL functions
|
||||
*
|
||||
* (c) Copyright 2002, dJeyL
|
||||
* (c) Copyright 2002-2004, dJeyL
|
||||
* 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.
|
||||
* Function returns sql id to use with other sql natives.
|
||||
* Host can be plain ip or with port seperated with ':' char. */
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* Strings manipulation
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* (c) 2002-2004, OLO
|
||||
* 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
|
||||
* returns position in source, on failure returns -1. */
|
||||
native contain(const source[],const string[]);
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
/* Vault
|
||||
*
|
||||
* (c) 2002-2003, OLO
|
||||
* (c) 2002-2004, OLO
|
||||
* modified by BAILOPAN, Manip, PM, SniperBeamer
|
||||
*
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _vault_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _vault_included
|
||||
|
||||
/* Reads a data from given key.
|
||||
* If len is set to zero then get_vaultdata
|
||||
* returns value as an number. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user