updated header | readded double include prevention
This commit is contained in:
parent
16d8a7a210
commit
87b4d3570f
|
@ -1,10 +1,15 @@
|
||||||
/* Vexd Utility backwards compatibility
|
/* Vexd Utility backwards compatibility
|
||||||
*
|
*
|
||||||
* (c) 2004, the AMX Mod X Development Team
|
* by the AMX Mod X Development Team
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _Vexd_Utilities_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _Vexd_Utilities_included
|
||||||
|
|
||||||
#include <engine>
|
#include <engine>
|
||||||
|
|
||||||
stock Entvars_Get_Int(iIndex, iVariable)
|
stock Entvars_Get_Int(iIndex, iVariable)
|
||||||
|
|
|
@ -1,11 +1,19 @@
|
||||||
/* AMX Mod X
|
/* AMX Mod X constants
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _amxconst_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _amxconst_included
|
||||||
|
|
||||||
|
#define AMX_VERSION 0.1
|
||||||
|
new AMX_VERSION_STR[] = "0.1"
|
||||||
|
|
||||||
/* Uncomment if you are not using Steam */
|
/* Uncomment if you are not using Steam */
|
||||||
//#define NO_STEAM
|
//#define NO_STEAM
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* AMX Mod X misc.
|
/* AMX Mod X misc.
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _amxmisc_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _amxmisc_included
|
||||||
|
|
||||||
stock cmd_access(id,level,cid,num) {
|
stock cmd_access(id,level,cid,num) {
|
||||||
if ( ((get_user_flags(id)&level)!=level) && (id!=(is_dedicated_server()?0:1)) ) {
|
if ( ((get_user_flags(id)&level)!=level) && (id!=(is_dedicated_server()?0:1)) ) {
|
||||||
console_print(id,"You have no access to that command")
|
console_print(id,"You have no access to that command")
|
||||||
|
|
|
@ -1,17 +1,23 @@
|
||||||
/* AMX Mod X functions
|
/* AMX Mod X functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* 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>
|
||||||
#include <amxconst>
|
#include <amxconst>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <file>
|
#include <file>
|
||||||
#include <vault>
|
#include <vault>
|
||||||
|
#include <fun>
|
||||||
|
|
||||||
/* Function is called just after server activation.
|
/* Function is called just after server activation.
|
||||||
* Good place for configuration loading, commands and cvars registration. */
|
* Good place for configuration loading, commands and cvars registration. */
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
* 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();
|
||||||
|
|
||||||
native funcidx(const name[]);
|
native funcidx(const name[]);
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* CS Stats functions
|
/* CS Stats functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* 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
|
||||||
* returns 0 in other case 1. Fields in stats are:
|
* returns 0 in other case 1. Fields in stats are:
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* Engine
|
/* Engine functions
|
||||||
*
|
*
|
||||||
* (c) 2004, the AMX Mod X Development Team
|
* by the AMX Mod X Development Team
|
||||||
* thanks to Vexd
|
* thanks to Vexd
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _engine_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _engine_included
|
||||||
|
|
||||||
#include <engine_const>
|
#include <engine_const>
|
||||||
#include <engine_stocks>
|
#include <engine_stocks>
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
/* Engine Constants
|
/* Engine constants
|
||||||
*
|
*
|
||||||
* (c) 2004, by the AMX Mod X Development Team
|
* by the AMX Mod X Development Team
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _engine_const_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _engine_const_included
|
||||||
|
|
||||||
#define SPEAK_NORMAL 0
|
#define SPEAK_NORMAL 0
|
||||||
#define SPEAK_MUTED 1
|
#define SPEAK_MUTED 1
|
||||||
#define SPEAK_ALL 2
|
#define SPEAK_ALL 2
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* Engine Stocks
|
/* Engine stocks
|
||||||
*
|
*
|
||||||
* (c) 2004, AssKicR, Freecode & T(+)rget
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* thanks to AssKicR, Freecode and T(+)rget
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _engine_stocks_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _engine_stocks_included
|
||||||
|
|
||||||
/* Changes an integer vec to a floating vec */
|
/* Changes an integer vec to a floating vec */
|
||||||
stock IVecFVec(IVec[3], Float:FVec[3])
|
stock IVecFVec(IVec[3], Float:FVec[3])
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* Files functions
|
/* Files functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* 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. */
|
||||||
native read_dir(const dirname[],pos,output[],len,&outlen);
|
native read_dir(const dirname[],pos,output[],len,&outlen);
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
/* Fun functions
|
/* Fun functions
|
||||||
*
|
*
|
||||||
* (c) 2004, the AMX Mod X Development Team
|
* by the AMX Mod X Development Team
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* This file is provided as is (no warranties).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined _fun_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _fun_included
|
||||||
|
|
||||||
/* (untested) Returns 1 if receiver hears sender via voice communication. */
|
/* (untested) Returns 1 if receiver hears sender via voice communication. */
|
||||||
native get_client_listen(receiver, sender);
|
native get_client_listen(receiver, sender);
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* MySQL functions
|
/* MySQL functions
|
||||||
*
|
*
|
||||||
* (c) Copyright 2002-2004, dJeyL
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* 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.
|
||||||
* Host can be plain ip or with port seperated with ':' char. */
|
* Host can be plain ip or with port seperated with ':' char. */
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* Strings manipulation
|
/* Strings manipulation
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* This file is provided as is (no warranties).
|
* 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. */
|
||||||
native contain(const source[],const string[]);
|
native contain(const source[],const string[]);
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
/* Vault
|
/* Vault functions
|
||||||
*
|
*
|
||||||
* (c) 2002-2004, OLO
|
* by the AMX Mod X Development Team
|
||||||
* modified by the AMX Mod X Development Team
|
* originally developed by OLO
|
||||||
*
|
*
|
||||||
* 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