nothing important

This commit is contained in:
Felix Geyer 2004-03-05 19:30:29 +00:00
parent b217f4d0c7
commit 79e0d80d4d
4 changed files with 73 additions and 58 deletions

View File

@ -93,13 +93,14 @@ stock is_running(const arg[]) {
stock build_path( path[] , len , {Float,_}:... ) { stock build_path( path[] , len , {Float,_}:... ) {
new basedir[32] new basedir[32]
get_localinfo( "amx_basedir", basedir , 31 ) get_localinfo( "amxx_basedir", basedir , 31 )
format_args( path , len , 2 ) format_args( path , len , 2 )
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( "amxx_basedir", name , len )
/* use log_amx() instead */
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)

View File

@ -34,17 +34,16 @@ native cs_get_hostage_id(index);
* glock, mp5, tmp, elites * glock, mp5, tmp, elites
* flash * flash
* he * he
* smoke * smoke */
*/
native cs_get_user_backpackammo(index, weapon); native cs_get_user_backpackammo(index, weapon);
/* Restock/remove ammo in a user's backpack. */ /* Restock/remove ammo in a user's backpack. */
native cs_set_user_backpackammo(index, weapon, amount); native cs_set_user_backpackammo(index, weapon, amount);
/* Get deaths. */ /* Returns player deaths. */
native cs_get_user_deaths(index); native cs_get_user_deaths(index);
/* Set deaths. (Doesn't update scoreboard right away? fix later?) */ /* Sets deaths. (Doesn't update scoreboard right away? fix later?) */
native cs_set_user_deaths(index, newdeaths); native cs_set_user_deaths(index, newdeaths);
/* Returns 1 if user has a defuse kit. */ /* Returns 1 if user has a defuse kit. */

View File

@ -5,16 +5,17 @@
* This file is provided as is (no warranties). * This file is provided as is (no warranties).
*/ */
/* (untested) Returns 1 if receiver hears sender via voice communication. */ /* Returns 1 if receiver hears sender via voice communication. */
native get_client_listen(receiver, sender); native get_client_listen(receiver, sender);
/* (untested) Sets who can listen who. Function returns 0 if for some reasons this setting can't be done. */ /* Sets who can listen who. Function returns 0
* if for some reasons this setting can't be done. */
native set_client_listen(receiver, sender, listen); native set_client_listen(receiver, sender, listen);
/* Sets player godmode. If you want to disable godmode set only first parameter. */ /* Sets player godmode. If you want to disable godmode set only first parameter. */
native set_user_godmode(index, godmode = 0); native set_user_godmode(index, godmode = 0);
/* (untested) Returns 1 if godmode is set. */ /* Returns 1 if godmode is set. */
native get_user_godmode(index); native get_user_godmode(index);
/* Sets player frags. Doesn't autoupdate scoreboard, as Olo's version didn't. Fix? */ /* Sets player frags. Doesn't autoupdate scoreboard, as Olo's version didn't. Fix? */

View File

@ -1,6 +1,8 @@
/* Strings manipulation /* Strings manipulation
* *
* (c) 2002-2003, OLO * 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).
*/ */
@ -35,9 +37,21 @@ native format_args(output[] ,len ,pos = 0);
/* Converts number to string. */ /* Converts number to string. */
native num_to_str(num,string[],len); native num_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_num(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. */
native equal(const a[],const b[],c=0); native equal(const a[],const b[],c=0);