Commit Graph
100 Commits
Author SHA1 Message Date
Johnny Bergström 8220cc4c01 is_in_viewcone from in_view_cone 2005-08-30 23:22:27 +00:00
Johnny Bergström ca1544564c Upped to 3.2.5. 2005-08-27 21:27:35 +00:00
Johnny Bergström 96c4d33da4 - Updated to Sqlite 3.2.3. See sqlite.org for details about new stuff.
- Base dir for db files is now changed to the game mod dir. Update your config files!
2005-08-22 10:12:22 +00:00
Johnny Bergström bad4c02647 This file copied from mysql module... I assume this was forgotten during the last commit of amxxmodule.cpp... 2005-08-22 09:18:55 +00:00
Johnny Bergström 70140ffc8f Fixed team menu. Should now work 100% to switch players between teams. However when client uses VGUI menus I haven't been able to close the class selecting window. It is (should be) only a cosmetic flaw though. 2005-08-22 08:01:01 +00:00
Johnny Bergström 53e6bb6b50 No default sql 2005-08-22 01:04:41 +00:00
Johnny Bergström 4cb7986426 admin.sma was "slightly" incompatible for people using sqlite. This version is courtesy of Lazarus Long who fixed this. Thanks. 2005-08-22 00:26:18 +00:00
Johnny Bergström 18ba13be84 Removed the admin_sql.amxx line. It's all in admin.sma now, isn't it??? 2005-08-22 00:21:49 +00:00
Johnny Bergström 94e19aae0c Removed newdllfunc() and related NEWDLLFunc_* stuff. :-P (yes I finally read Alfred's post through) 2005-08-18 20:51:41 +00:00
Johnny Bergström 7d51404aeb What!!! 2005-08-18 15:47:28 +00:00
Johnny Bergström 1cdb12c4e4 Added NEW_DLL_FUNCTIONS to FM_* and a newdllfunc() native to call these... Although I'm not sure there is a reason to call those?
Anyway it will be needed later when client cvar query function is implemented.
2005-08-18 09:33:51 +00:00
Johnny Bergström bf092b4f95 Updated to Sqlite 3.2.2. 2005-08-11 19:06:54 +00:00
Johnny Bergström d0b5886d7d Added cs_get_armoury_type and cs_set_armoury_type 2005-08-07 20:43:29 +00:00
Johnny Bergström aa75a143fc This should fix the problem where bots can't hit players using weapons other than the knife. 2005-08-07 13:38:34 +00:00
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