nothing important
This commit is contained in:
parent
b217f4d0c7
commit
79e0d80d4d
|
@ -93,13 +93,14 @@ stock is_running(const arg[]) {
|
|||
|
||||
stock build_path( path[] , len , {Float,_}:... ) {
|
||||
new basedir[32]
|
||||
get_localinfo( "amx_basedir", basedir , 31 )
|
||||
get_localinfo( "amxx_basedir", basedir , 31 )
|
||||
format_args( path , len , 2 )
|
||||
return replace( path , len , "$basedir", basedir )
|
||||
}
|
||||
|
||||
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 )
|
||||
return get_time("admin%m%d.log",name,len)
|
|
@ -34,17 +34,16 @@ native cs_get_hostage_id(index);
|
|||
* glock, mp5, tmp, elites
|
||||
* flash
|
||||
* he
|
||||
* smoke
|
||||
*/
|
||||
* smoke */
|
||||
native cs_get_user_backpackammo(index, weapon);
|
||||
|
||||
/* Restock/remove ammo in a user's backpack. */
|
||||
native cs_set_user_backpackammo(index, weapon, amount);
|
||||
|
||||
/* Get deaths. */
|
||||
/* Returns player deaths. */
|
||||
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);
|
||||
|
||||
/* Returns 1 if user has a defuse kit. */
|
||||
|
|
|
@ -5,16 +5,17 @@
|
|||
* 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);
|
||||
|
||||
/* (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);
|
||||
|
||||
/* Sets player godmode. If you want to disable godmode set only first parameter. */
|
||||
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);
|
||||
|
||||
/* Sets player frags. Doesn't autoupdate scoreboard, as Olo's version didn't. Fix? */
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* 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).
|
||||
*/
|
||||
|
||||
|
@ -35,9 +37,21 @@ native format_args(output[] ,len ,pos = 0);
|
|||
/* Converts number to string. */
|
||||
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. */
|
||||
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
|
||||
* then there are only c chars comapred. */
|
||||
native equal(const a[],const b[],c=0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user