Commit Graph
100 Commits
Author SHA1 Message Date
Johnny Bergström 48749382fb amx_addadmin added 2005-06-21 22:04:44 +00:00
Johnny Bergström 51ff0a2c49 Added stock file_copy to file.inc.
Also fixed fopen to return 0 on files that can't be opened.
Fixed native fopen to take const filename.
2005-05-29 16:36:35 +00:00
Johnny Bergström 9d200888ff Initial import 2005-04-29 22:47:00 +00:00
Johnny Bergström ebf0945c6e Added numtostr and strtonum mappings... not adding this to string.inc ... but it's there now. :-P 2005-04-19 15:40:21 +00:00
Johnny Bergström 7c6d869cb4 Moved
/* Sets player frags. */
native set_user_frags(index, frags);

from amxmodx.inc to fun.inc...
2005-04-19 14:49:16 +00:00
Johnny Bergström 85f5604d43 *** empty log message *** 2005-03-30 18:43:43 +00:00
Johnny Bergström fa42dbf011 Added stock admin_print(access, const DESTINATION, const MSG[]); 2005-03-30 11:37:41 +00:00
Johnny Bergström d1c27a7534 Goodbye pev. You've been great. Miss you. 2005-03-27 00:42:00 +00:00
Johnny Bergström 8675d6a4a8 Pev -> Engine wrapper for backwards compatibility 2005-03-26 15:59:58 +00:00
Johnny Bergström 1d770fd400 Removed pev 2005-03-25 22:05:41 +00:00
Johnny Bergström d6b704e74c Updated from http://www.amxmodx.org/forums/viewtopic.php?p=99878
To ban LAN:ers by IP and not authid.
2005-03-25 09:40:04 +00:00
Johnny Bergström eeee302722 Removed pev.cpp from build. These are excluded in vcproj from Windows builds. 2005-03-25 09:33:40 +00:00
Johnny Bergström 81f4a505c1 Added FM_KeyValue and get_kv/set_kv natives.
Removed pev natives.

Probably fixed something in DLLFunc_ClientUserInfoChanged.
2005-03-25 09:30:45 +00:00
Johnny Bergström 560f50eda7 *** empty log message *** 2005-03-24 11:37:00 +00:00
Johnny Bergström 73f1e4d77e *** empty log message *** 2005-03-24 11:03:09 +00:00
Johnny Bergström 87fd5e2b4e Added in-game cmd "amx_addadmin <playername> <flags> [password] - automatically add specified player as an admin to users.ini" 2005-03-24 10:59:46 +00:00
Johnny Bergström 01cc4a1bad Fixed cs_set_user_armor() 2005-03-20 15:44:32 +00:00
Johnny Bergström ad732d7286 *** empty log message *** 2005-03-16 21:00:16 +00:00
Johnny Bergström 5e46f64d75 Updated hitzones.
Now allows setting individual hitzones between player A <-> player B.
2005-03-11 09:21:03 +00:00
Johnny Bergström 3074ca0756 Removed some... odd thing. 2005-02-25 18:05:50 +00:00
Johnny Bergström 7b8165fe6f Removing task waiting to call dispInfo if client disconnects before the task is executed. This fixes run time errors. 2005-02-21 00:31:52 +00:00
Johnny Bergström 3774575160 Fixed a bug in dispInfo: if client disconnected fast enough we got a native error in client_print :-D 2005-02-21 00:23:16 +00:00
Johnny Bergström b2eb9df894 Updated dbi_type() (added "sqlite") and added stock sqlite_table_exists(). 2005-02-15 20:50:15 +00:00
Johnny Bergström 00e9f2bbea Removed some mysql stuff 2005-02-15 20:46:58 +00:00
Johnny Bergström adf12ab745 Fixed makefiles 2005-02-15 17:27:00 +00:00
Johnny Bergström 9d4e5b18ee Makefiles for Linux. Not tested. 2005-02-15 14:39:36 +00:00
Johnny Bergström 8a40ed8cd6 Stupid Tortoise. 2005-02-15 14:19:07 +00:00
Johnny Bergström c79909eb80 Initial import of Sqlite 2005-02-15 14:11:01 +00:00
Johnny Bergström a2c2dc88fc Yes! 2005-02-06 11:59:41 +00:00
Johnny Bergström a085cef0d6 Updated to allow compiling with unmodified statsx.sma, and other plugins using the old csx api... hopefully. :-9 2005-02-05 11:06:34 +00:00
Johnny Bergström 3f2a8ccfc5 0.4 = added delete button 2005-01-27 08:58:01 +00:00
Johnny Bergström e097932ac9 0.2 file not found -> exits 2005-01-22 13:27:57 +00:00
Johnny Bergström 27e4174be6 0.2: Edit stats, clear stats features added 2005-01-22 13:24:26 +00:00
Johnny Bergström 7f47d2de56 My god... 2005-01-21 16:27:44 +00:00
Johnny Bergström 6200ee6977 Fixed about box :-P 2005-01-21 16:23:55 +00:00
Johnny Bergström e98fb7d6e4 Included WinCSX project 2005-01-21 16:09:25 +00:00
Johnny Bergström 4e6233b898 WinCSX 0.2 initial commitment 2005-01-21 16:08:36 +00:00
Johnny Bergström 544b74f839 Crashes after hitzones "fix".
This should fix that. Hopefully.
2005-01-17 07:45:20 +00:00
Johnny Bergström 4a823a0894 Updated for amx_menu... 2005-01-16 22:24:36 +00:00
Johnny Bergström 53188ab941 New natives: cs_set_user_armor(), cs_get_user_armor()
cs_set_user_armor() should be used instead of fun's set_user_armor().
2005-01-16 16:30:18 +00:00
Johnny Bergström 5f7dabf9b6 *cough* 2005-01-15 12:24:14 +00:00
Johnny Bergström e343d224ce amx_menu: A new menu also reachable by non-admin clients. Scripters can add their plugin menus as an item in this menu (Wc3 menu, Superhero info, etc...) so that a client don't have to bind/know a million different menu commands. This could become a one-stop-shop for all of the clients menu needs. Let's hope it catches on. :-)
For this menufront.sma adds: "amx_addclientmenuitem" where server admins can add menu items from plugins that don't support this yet.
amxmisc.inc is also updated to support this.
2005-01-15 09:58:51 +00:00
Johnny Bergström 188023b5ac Fixed get_stats in csx and get_stats2 in csx_sql
csx and csx_sql now have exact same functionality, apart from csx_sql can also export stats to sql database if activated with cvar...
2005-01-14 12:21:12 +00:00
Johnny Bergström f18adbf9d6 Updated get_stats and get_stats2 to also retrieve authid 2005-01-14 12:14:34 +00:00
Johnny Bergström 9959ef52b3 Possibly fix the hitzones problem. 2005-01-13 11:02:14 +00:00
Johnny Bergström 8e58484fc5 get_stats now looks like this:
native get_stats(index,stats[8],bodyhits[8],name[],len,authid[],authidlen=0);
(authid + authidlen are new)
+ fixes
2005-01-12 01:24:40 +00:00
Johnny Bergström a58ab24b0c Added cvar csx_sqlstats_exportstats 2005-01-11 15:31:47 +00:00
Johnny Bergström a67085217f Fixes 2005-01-11 13:02:06 +00:00
Johnny Bergström f08f16c20d Adds cvars:
cvar_t *csx_sqlstats_host;
cvar_t *csx_sqlstats_username;
cvar_t *csx_sqlstats_password;
cvar_t *csx_sqlstats_db;
cvar_t *csx_sqlstats_table;

Exports players' statistics at map change to SQL db right after it saved those to the dat file.
2005-01-11 12:23:57 +00:00
Johnny Bergström 21ceae3c9e Replaced in files: /amxx/ with /amxmodx/
This fixes lines looking like
; File location: $moddir/addons/amxx/configs/cmds.ini

to look like

; File location: $moddir/addons/amxmodx/configs/cmds.ini

.
2004-12-22 10:27:30 +00:00
Johnny Bergström 7aa31c764d Fixed some mistakes and typos. 2004-11-17 07:33:29 +00:00
Johnny Bergström 08fea0eea1 Removed some unneeded stuff from class. 2004-11-15 00:20:28 +00:00
Johnny Bergström fb29cbff16 Added some description for require_module etc 2004-11-13 19:55:11 +00:00
Johnny Bergström 11fa330f10 Renamed to CStrike :-D gyar!! 2004-11-13 19:49:25 +00:00
Johnny Bergström 456d7b69a2 fixed returning float parameters in read_data():s second parameter (by ref) 2004-11-13 08:56:11 +00:00
Johnny Bergström a86cb11fd7 Umm... 2004-11-13 08:47:12 +00:00
Johnny Bergström c940a0b621 Umm... 2004-11-11 10:57:50 +00:00
Johnny Bergström 46861ff5b4 Added dllfuncs 2004-11-11 10:39:37 +00:00
Johnny Bergström 820fedca22 First version 2004-11-09 20:30:17 +00:00
Johnny Bergström 28a1182cd2 Updated EngFunc_SetKeyValue :-) 2004-11-09 16:47:33 +00:00
Johnny Bergström 16444a713a Updated EngFunc_SetKeyValue 2004-11-09 16:47:06 +00:00
Johnny Bergström 850557df5a Updated get_user_hitzones 2004-11-02 16:51:42 +00:00
Johnny Bergström ee8e30417c Confirmed all offsets for all platforms. (fixed backpack ammo offsets for players which was off, and also fixed offsets for 32 bit linux concerning weapons and the cs_?et_weapon_* natives should now work) 2004-10-29 14:44:48 +00:00
Johnny Bergström 8f18856e91 Fixed SetView (by always hooking Spawn and precaching the needed dummy model rpgrocket.mdl) 2004-10-27 19:06:43 +00:00
Johnny Bergström 5eb095b514 Added native get_user_msgname(msgid, name[], len); 2004-10-25 23:00:16 +00:00
Johnny Bergström 66386cca59 Fixed entity_set_byte 2004-10-24 15:41:25 +00:00
Johnny Bergström 3efa25a5fb Fixed entity_set_edict 2004-10-14 08:15:41 +00:00
Johnny Bergström c29a7d34e5 Renamed cs_get_weapon_type -> cs_get_weapon_id 2004-10-14 06:09:01 +00:00
Johnny Bergström 3a8e103faf Added custommenuitems.cfg to standard cfg files.
menufront.sma executes this file on plugin loa, adding the specified menu items to amxmodmenu.
2004-10-09 10:13:16 +00:00
Johnny Bergström f4b1c9f78a Added server command "amx_addmenuitem <menu text> <menu command> <access flags> <plugin name>":
Server admins can add menu items to amxmodmenu from plugins that do not (yet) do this on their own.
2004-10-09 09:50:33 +00:00
Johnny Bergström 618759f390 Menu items boundary checking... 2004-10-09 09:32:56 +00:00
Johnny Bergström 940b0be4b9 Don't ask 2 2004-10-08 08:59:04 +00:00
Johnny Bergström 75f49e78b0 Don't ask 2004-10-08 08:53:27 +00:00
Johnny Bergström f06359e38f Reworked to add AddMenuItem() 2004-10-08 08:37:27 +00:00
Johnny Bergström 2733adbb49 Added AddMenuItem 2004-10-08 08:36:54 +00:00
Johnny Bergström fc4d8f183b const parameter in callfunc_push_str 2004-10-08 08:29:53 +00:00
Johnny Bergström 3b670333de Fixed result always refused even if admin accepted vote result. 2004-10-05 11:16:27 +00:00
Johnny Bergström eb36757ef1 Fixed menu not displaying on/off status for scout, mp5, ak47. 2004-10-05 10:01:04 +00:00
Johnny Bergström 5a5ff6d8ea Fixed parameter type in FN_PvAllocEntPrivateData (from long to int32) 2004-10-01 08:52:25 +00:00
Johnny Bergström df43d897df Fioxed call_think:
if (!is_ent_valid(iEnt)) {
		EngineError(amx, "Invalid Entity %d", iEnt);
		return 0;
	}

was

	if (is_ent_valid(iEnt)) {
		EngineError(amx, "Invalid Entity %d", iEnt);
		return 0;
	}
2004-09-29 06:17:44 +00:00
Johnny Bergström ecc07d4b45 Fixed some small mistakes. 2004-09-27 13:45:13 +00:00
Johnny Bergström 8da965552b TK offset for AMD64 added. 2004-09-27 13:28:51 +00:00
Johnny Bergström cfe36dea52 Added 2 of 3 new offsets for amd64 2004-09-27 10:54:41 +00:00
Johnny Bergström c16eab09ec Fixed a typo 2004-09-27 09:53:56 +00:00
Johnny Bergström d07cc0424d Fixed a typo 2004-09-27 06:09:59 +00:00
Johnny Bergström c669efd609 New stuff in cstrike module:
cs_get_user_driving()
cs_set_user_tked()
cs_get_user_tked

Also cs_?et_user_deaths() offset updated.

Thanks to Damaged Soul for these.
2004-09-26 13:02:22 +00:00
Johnny Bergström 3fc3ece5b0 Added cs_get_weapon_type(index) 2004-09-25 23:24:34 +00:00
Johnny Bergström 6887dfef16 CS: buyzone offset update to 235 2004-09-24 21:13:07 +00:00
Johnny Bergström 5157be6e3d Updated offset for VIP: to 209 2004-09-24 05:21:39 +00:00
Johnny Bergström 768ea7519f get_info_keybuffer() now works in client_authorized 2004-09-18 13:14:20 +00:00
Johnny Bergström d43807a248 Added get_string() to engine:
/* Converts a string offset into a real string. Some of the forwards in fakemeta
   uses string offsets. (FM_CreateNamedEntity) */
native get_string(_string, _returnString[], _len);
2004-09-16 11:02:51 +00:00
Johnny Bergström 26465afbf7 Fixed cs_set_hostage_follow for amd64 2004-09-14 17:57:34 +00:00
Johnny Bergström 60940512e2 Fixed amd64 offsets... cs_get_hostage_follow works, cs_set_hostage_follow doesn't yet :-( 2004-09-14 09:58:45 +00:00
Johnny Bergström d4e69d97e0 Added amd64 offsets. They aren't 100% tested to work (but should work...) 2004-09-14 09:35:52 +00:00
Johnny Bergström 1a2ef38588 Renamed anglevector to angle_vector because that's its name in module... 2004-09-12 17:00:33 +00:00
Johnny Bergström b040f4474b Fixed sending 0 to find_ent_by_owner. 2004-09-06 08:21:13 +00:00
Johnny Bergström 6122364a24 catched -> caught 2004-09-05 17:28:48 +00:00
Johnny Bergström dd5c75888a Added forwardmacros.h to project 2004-09-02 18:24:48 +00:00
Johnny Bergström 745c595fc8 Now uses fakemeta for pdata stocks 2004-09-01 08:39:30 +00:00
Johnny Bergström 8575c9a637 Added some description. hopefully they are right :-) 2004-08-31 16:43:58 +00:00