moved backwards compatibility to amxmod.inc
This commit is contained in:
parent
484d482b49
commit
75ac8fd494
|
@ -100,7 +100,3 @@ stock build_path( path[] , len , {Float,_}:... ) {
|
||||||
|
|
||||||
stock get_basedir( name[], len )
|
stock get_basedir( name[], len )
|
||||||
return get_localinfo( "amxx_basedir", name , len )
|
return get_localinfo( "amxx_basedir", name , len )
|
||||||
|
|
||||||
/* use log_amx() instead */
|
|
||||||
stock get_logfile( name[], len )
|
|
||||||
return get_time("admin%m%d.log",name,len)
|
|
|
@ -17,12 +17,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <file>
|
#include <file>
|
||||||
#include <vault>
|
#include <vault>
|
||||||
/* default modules */
|
|
||||||
#include <csstats>
|
|
||||||
#include <cstrike>
|
|
||||||
#include <engine>
|
|
||||||
#include <fun>
|
|
||||||
#include <mysql>
|
|
||||||
|
|
||||||
/* 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. */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* 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).
|
||||||
*/
|
*/
|
||||||
|
@ -51,17 +51,9 @@ native give_item(index, const item[]);
|
||||||
* 128 - right leg */
|
* 128 - right leg */
|
||||||
native set_hitzones(body = 255);
|
native set_hitzones(body = 255);
|
||||||
|
|
||||||
/* backwards compatibility */
|
|
||||||
stock set_user_hitzones(index=0,target=0,body=255)
|
|
||||||
return set_hitzones(body)
|
|
||||||
|
|
||||||
/* Get current hitzones. */
|
/* Get current hitzones. */
|
||||||
native get_hitzones();
|
native get_hitzones();
|
||||||
|
|
||||||
/* backwards compatibility */
|
|
||||||
stock get_user_hitzones(index,target)
|
|
||||||
return get_hitzones()
|
|
||||||
|
|
||||||
/* Sets users max. speed. */
|
/* Sets users max. speed. */
|
||||||
native set_user_maxspeed(index, Float:speed = -1.0);
|
native set_user_maxspeed(index, Float:speed = -1.0);
|
||||||
|
|
||||||
|
@ -77,10 +69,6 @@ native get_user_gravity(index);
|
||||||
/* Spawns entity. */
|
/* Spawns entity. */
|
||||||
native spawn(index);
|
native spawn(index);
|
||||||
|
|
||||||
/* backwards compatibility */
|
|
||||||
stock user_spawn(index)
|
|
||||||
return spawn(index)
|
|
||||||
|
|
||||||
/* Sets player noclip. If you want to disable noclip set only first parameter. */
|
/* Sets player noclip. If you want to disable noclip set only first parameter. */
|
||||||
native set_user_noclip(index, noclip = 0);
|
native set_user_noclip(index, noclip = 0);
|
||||||
|
|
||||||
|
|
|
@ -35,22 +35,10 @@ native format(output[] ,len ,const format[] , {Float,_}:...);
|
||||||
native format_args(output[] ,len ,pos = 0);
|
native format_args(output[] ,len ,pos = 0);
|
||||||
|
|
||||||
/* Converts number to string. */
|
/* Converts number to string. */
|
||||||
native num_to_str(num,string[],len);
|
native int_to_str(num,string[],len);
|
||||||
|
|
||||||
stock numtostr(num,string[],len)
|
|
||||||
return num_to_str(num,string,len)
|
|
||||||
|
|
||||||
stock int_to_str(num,string[],len)
|
|
||||||
return num_to_str(num,string,len)
|
|
||||||
|
|
||||||
/* Returns converted string to number. */
|
/* Returns converted string to number. */
|
||||||
native str_to_num(const string[]);
|
native str_to_int(const string[]);
|
||||||
|
|
||||||
stock strtonum(const string[])
|
|
||||||
return str_to_num(string)
|
|
||||||
|
|
||||||
stock str_to_int(const string[])
|
|
||||||
return str_to_num(string)
|
|
||||||
|
|
||||||
/* Checks if two strings equal. If len var is set
|
/* Checks if two strings equal. If len var is set
|
||||||
* then there are only c chars comapred. */
|
* then there are only c chars comapred. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user