Merge branch 'master' of ssh://github.com/alliedmodders/amxmodx into inc-doc

Conflicts:
	plugins/include/amxmodx.inc
	plugins/include/message_const.inc
	plugins/include/sockets.inc
This commit is contained in:
Valentin Grünbacher 2014-08-07 01:44:04 +02:00
commit 1fb91dc02e
560 changed files with 14923 additions and 10253 deletions

View File

@ -94,6 +94,8 @@ binary.sources = [
'CDataPack.cpp', 'CDataPack.cpp',
'datapacks.cpp', 'datapacks.cpp',
'stackstructs.cpp', 'stackstructs.cpp',
'CTextParsers.cpp',
'textparse.cpp',
] ]
if builder.target_platform == 'windows': if builder.target_platform == 'windows':

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CCmd.h" #include "CCmd.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef COMMANDS_H #ifndef COMMANDS_H
#define COMMANDS_H #define COMMANDS_H

View File

@ -25,8 +25,6 @@
* this exception to all derivative works. AlliedModders LLC defines further * this exception to all derivative works. AlliedModders LLC defines further
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>. * or <http://www.sourcemod.net/license.php>.
*
* Version: $Id$
*/ */
#include <stdlib.h> #include <stdlib.h>

View File

@ -25,8 +25,6 @@
* this exception to all derivative works. AlliedModders LLC defines further * this exception to all derivative works. AlliedModders LLC defines further
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>. * or <http://www.sourcemod.net/license.php>.
*
* Version: $Id$
*/ */
#ifndef _INCLUDE_SOURCEMOD_CDATAPACK_H_ #ifndef _INCLUDE_SOURCEMOD_CDATAPACK_H_

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CEvent.h" #include "CEvent.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __CEVENTS_H__ #ifndef __CEVENTS_H__
#define __CEVENTS_H__ #define __CEVENTS_H__

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <ctype.h> #include <ctype.h>
#include "amxmodx.h" #include "amxmodx.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <stdio.h> #include <stdio.h>
#include "CString.h" #include "CString.h"

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef CFLAGMANAGER_H #ifndef CFLAGMANAGER_H
#define CFLAGMANAGER_H #define CFLAGMANAGER_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "debugger.h" #include "debugger.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
/* /*
CForward.h CForward.h

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <stdarg.h> #include <stdarg.h>
#include "amxmodx.h" #include "amxmodx.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_CLANG_H #ifndef _INCLUDE_CLANG_H
#define _INCLUDE_CLANG_H #define _INCLUDE_CLANG_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef CLIST_H #ifndef CLIST_H
#define CLIST_H #define CLIST_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CLogEvent.h" #include "CLogEvent.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef LOGEVENTS_H #ifndef LOGEVENTS_H
#define LOGEVENTS_H #define LOGEVENTS_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CMenu.h" #include "CMenu.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef MENUS_H #ifndef MENUS_H
#define MENUS_H #define MENUS_H

View File

@ -1,33 +1,12 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "newmenus.h" #include "newmenus.h"
// ***************************************************** // *****************************************************

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef CMISC_H #ifndef CMISC_H
#define CMISC_H #define CMISC_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "libraries.h" #include "libraries.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
// ***************************************************** // *****************************************************
// class CModule // class CModule

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CPlugin.h" #include "CPlugin.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef PLUGIN_H #ifndef PLUGIN_H
#define PLUGIN_H #define PLUGIN_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
//by David "BAILOPAN" Anderson //by David "BAILOPAN" Anderson
#ifndef _INCLUDE_CQUEUE_H #ifndef _INCLUDE_CQUEUE_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_CSTRING_H #ifndef _INCLUDE_CSTRING_H
#define _INCLUDE_CSTRING_H #define _INCLUDE_CSTRING_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CTask.h" #include "CTask.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef CTASK_H #ifndef CTASK_H
#define CTASK_H #define CTASK_H

1130
amxmodx/CTextParsers.cpp Normal file

File diff suppressed because it is too large Load Diff

90
amxmodx/CTextParsers.h Normal file
View File

@ -0,0 +1,90 @@
/**
* vim: set ts=4 :
* =============================================================================
* SourceMod
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
* =============================================================================
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, AlliedModders LLC gives you permission to link the
* code of this program (as well as its derivative works) to "Half-Life 2," the
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
* by the Valve Corporation. You must obey the GNU General Public License in
* all respects for all other code used. Additionally, AlliedModders LLC grants
* this exception to all derivative works. AlliedModders LLC defines further
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>.
*
* Version: $Id$
*/
#ifndef _INCLUDE_SOURCEMOD_TEXTPARSERS_H_
#define _INCLUDE_SOURCEMOD_TEXTPARSERS_H_
#include <ITextParsers.h>
#include <am-vector.h>
using namespace SourceMod;
/**
* @param void * IN: Stream pointer
* @param char * IN/OUT: Stream buffer
* @param size_t IN: Maximum size of buffer
* @param unsigned int * OUT: Number of bytes read (0 = end of stream)
* @return True on success, false on failure
*/
typedef bool(*STREAMREADER)(void *, char *, size_t, unsigned int *);
class TextParsers : public ITextParsers
{
public:
TextParsers();
public:
bool ParseFile_INI(const char *file,
ITextListener_INI *ini_listener,
unsigned int *line,
unsigned int *col);
SMCError ParseFile_SMC(const char *file,
ITextListener_SMC *smc_listener,
SMCStates *states);
SMCError ParseSMCFile(const char *file,
ITextListener_SMC *smc_listener,
SMCStates *states,
char *buffer,
size_t maxsize);
SMCError ParseSMCStream(const char *stream,
size_t length,
ITextListener_SMC *smc_listener,
SMCStates *states,
char *buffer,
size_t maxsize);
unsigned int GetUTF8CharBytes(const char *stream);
const char *GetSMCErrorString(SMCError err);
bool IsWhitespace(const char *stream);
private:
SMCError ParseStream_SMC(void *stream,
STREAMREADER srdr,
ITextListener_SMC *smc,
SMCStates *states);
};
extern TextParsers g_TextParser;
#endif //_INCLUDE_SOURCEMOD_TEXTPARSERS_H_

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef VAULT_CUSTOM_H #ifndef VAULT_CUSTOM_H
#define VAULT_CUSTOM_H #define VAULT_CUSTOM_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __CVECTOR_H__ #ifndef __CVECTOR_H__
#define __CVECTOR_H__ #define __CVECTOR_H__

View File

@ -21,7 +21,8 @@ OBJECTS = meta_api.cpp CFile.cpp CVault.cpp vault.cpp float.cpp file.cpp modules
CMenu.cpp util.cpp amx.cpp amxdbg.cpp natives.cpp newmenus.cpp debugger.cpp \ CMenu.cpp util.cpp amx.cpp amxdbg.cpp natives.cpp newmenus.cpp debugger.cpp \
optimizer.cpp format.cpp messages.cpp libraries.cpp vector.cpp sorting.cpp \ optimizer.cpp format.cpp messages.cpp libraries.cpp vector.cpp sorting.cpp \
nongpl_matches.cpp CFlagManager.cpp datastructs.cpp \ nongpl_matches.cpp CFlagManager.cpp datastructs.cpp \
trie_natives.cpp CDataPack.cpp datapacks.cpp stackstructs.cpp trie_natives.cpp CDataPack.cpp datapacks.cpp stackstructs.cpp \
CTextParsers.cpp textparse.cpp \
############################################## ##############################################
### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ### ### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ###

View File

@ -17,8 +17,6 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amx.cpp 3707 2008-04-14 19:56:31Z sawce $
*/ */
#define AMX_NODYNALOAD #define AMX_NODYNALOAD

View File

@ -17,8 +17,6 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amx.h 3006 2006-08-28 11:08:18Z dvander $
*/ */
#if defined FREEBSD && !defined __FreeBSD__ #if defined FREEBSD && !defined __FreeBSD__

View File

@ -17,9 +17,8 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amxcore.cpp 1733 2005-07-25 06:03:43Z dvander $
*/ */
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE #if defined _UNICODE || defined __UNICODE__ || defined UNICODE
# if !defined UNICODE /* for Windows */ # if !defined UNICODE /* for Windows */
# define UNICODE # define UNICODE

View File

@ -19,9 +19,8 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amxdbg.cpp 2345 2006-02-10 19:47:09Z faluco $
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -20,8 +20,6 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amxdbg.h 2977 2006-08-27 02:17:18Z damagedsoul $
*/ */
#ifndef AMXDBG_H_INCLUDED #ifndef AMXDBG_H_INCLUDED

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <time.h> #include <time.h>
#include "amxmodx.h" #include "amxmodx.h"
@ -2574,6 +2552,18 @@ static cell AMX_NATIVE_CALL change_task(AMX *amx, cell *params)
return g_tasksMngr.changeTasks(params[1], params[3] ? 0 : amx, flNewTime); return g_tasksMngr.changeTasks(params[1], params[3] ? 0 : amx, flNewTime);
} }
static cell AMX_NATIVE_CALL change_level(AMX *amx, cell *params)
{
int length;
const char* new_map = get_amxstring(amx, params[1], 0, length);
// Same as calling "changelevel" command but will trigger "server_changelevel" AMXX forward as well.
// Filling second param will call "changelevel2" command, but this is not usable in multiplayer game.
g_pEngTable->pfnChangeLevel(new_map, NULL);
return 1;
}
static cell AMX_NATIVE_CALL task_exists(AMX *amx, cell *params) /* 1 param */ static cell AMX_NATIVE_CALL task_exists(AMX *amx, cell *params) /* 1 param */
{ {
return g_tasksMngr.taskExists(params[1], params[2] ? 0 : amx); return g_tasksMngr.taskExists(params[1], params[2] ? 0 : amx);
@ -4838,6 +4828,7 @@ AMX_NATIVE_INFO amxmodx_Natives[] =
{"callfunc_push_str", callfunc_push_str}, {"callfunc_push_str", callfunc_push_str},
{"callfunc_push_array", callfunc_push_array}, {"callfunc_push_array", callfunc_push_array},
{"change_task", change_task}, {"change_task", change_task},
{"change_level", change_level},
{"client_cmd", client_cmd}, {"client_cmd", client_cmd},
{"client_print", client_print}, {"client_print", client_print},
{"client_print_color", client_print_color}, {"client_print_color", client_print_color},

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef AMXMODX_H #ifndef AMXMODX_H
#define AMXMODX_H #define AMXMODX_H
@ -86,6 +64,7 @@ extern AMX_NATIVE_INFO vector_Natives[];
extern AMX_NATIVE_INFO g_SortNatives[]; extern AMX_NATIVE_INFO g_SortNatives[];
extern AMX_NATIVE_INFO g_DataStructNatives[]; extern AMX_NATIVE_INFO g_DataStructNatives[];
extern AMX_NATIVE_INFO g_StackNatives[]; extern AMX_NATIVE_INFO g_StackNatives[];
extern AMX_NATIVE_INFO g_TextParserNatives[];
#if defined(_WIN32) #if defined(_WIN32)
#define DLLOAD(path) (DLHANDLE)LoadLibrary(path) #define DLLOAD(path) (DLHANDLE)LoadLibrary(path)

View File

@ -2,8 +2,6 @@
* *
* Copyright (c) ITB CompuPhase, 2001-2002 * Copyright (c) ITB CompuPhase, 2001-2002
* This file may be freely used. No warranties of any kind. * This file may be freely used. No warranties of any kind.
*
* Version: $Id: amxtime.cpp 2511 2006-04-06 12:56:45Z damagedsoul $
*/ */
#include <time.h> #include <time.h>
#include <assert.h> #include <assert.h>

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "amxxfile.h" #include "amxxfile.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __AMXXFILE_H__ #ifndef __AMXXFILE_H__
#define __AMXXFILE_H__ #define __AMXXFILE_H__

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
// amxx_logging localinfo: // amxx_logging localinfo:
// 0 = no logging // 0 = no logging

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __AMXXLOG_H__ #ifndef __AMXXLOG_H__
#define __AMXXLOG_H__ #define __AMXXLOG_H__

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#if defined BINLOG_ENABLED #if defined BINLOG_ENABLED
#include <time.h> #include <time.h>

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _INCLUDE_BINLOG_H #ifndef _INCLUDE_BINLOG_H
#define _INCLUDE_BINLOG_H #define _INCLUDE_BINLOG_H

View File

@ -25,8 +25,6 @@
* this exception to all derivative works. AlliedModders LLC defines further * this exception to all derivative works. AlliedModders LLC defines further
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>. * or <http://www.sourcemod.net/license.php>.
*
* Version: $Id$
*/ */
#include "CDataPack.h" #include "CDataPack.h"

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "datastructs.h" #include "datastructs.h"

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef DATASTRUCTS_H #ifndef DATASTRUCTS_H
#define DATASTRUCTS_H #define DATASTRUCTS_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "debugger.h" #include "debugger.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_DEBUGGER_H_ #ifndef _INCLUDE_DEBUGGER_H_
#define _INCLUDE_DEBUGGER_H_ #define _INCLUDE_DEBUGGER_H_

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CMenu.h" #include "CMenu.h"

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "fakemeta.h" #include "fakemeta.h"

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __FAKEMETA_H__ #ifndef __FAKEMETA_H__
#define __FAKEMETA_H__ #define __FAKEMETA_H__

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
// intptr_t // intptr_t
#ifdef _MSC_VER #ifdef _MSC_VER

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include "amxmodx.h" #include "amxmodx.h"
#include "format.h" #include "format.h"
#include "datastructs.h" #include "datastructs.h"

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _INCLUDE_FORMATTING_H #ifndef _INCLUDE_FORMATTING_H
#define _INCLUDE_FORMATTING_H #define _INCLUDE_FORMATTING_H

View File

@ -1,10 +1,11 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; vim: set ts=4 sw=4 tw=99 noet ft=nasm:
; (C)2006 by David "BAILOPAN" Anderson ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
; Copyright (C) The AMX Mod X Development Team.
;;Licensed under the GNU General Public License, version 2 ;
;;This is a portion of AMX Mod X ; This software is licensed under the GNU General Public License, version 3 or higher.
;; and is maintained by the AMX Mod X development team. ; Additional exceptions apply. For full license details, see LICENSE.txt or visit:
; https://alliedmods.net/amxmodx-license
section .text section .text

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include "libraries.h" #include "libraries.h"
#include "sh_list.h" #include "sh_list.h"

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _INCLUDE_LIBRARIES_H #ifndef _INCLUDE_LIBRARIES_H
#define _INCLUDE_LIBRARIES_H #define _INCLUDE_LIBRARIES_H

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include "amxmodx.h" #include "amxmodx.h"
#include "messages.h" #include "messages.h"

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _MSGS_INCLUDE_H #ifndef _MSGS_INCLUDE_H
#define _MSGS_INCLUDE_H #define _MSGS_INCLUDE_H

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <time.h> #include <time.h>
@ -52,6 +30,7 @@
#include <amxmodx_version.h> #include <amxmodx_version.h>
#include "trie_natives.h" #include "trie_natives.h"
#include "CDataPack.h" #include "CDataPack.h"
#include "textparse.h"
plugin_info_t Plugin_info = plugin_info_t Plugin_info =
{ {
@ -417,6 +396,7 @@ int C_Spawn(edict_t *pent)
g_TrieHandles.clear(); g_TrieHandles.clear();
g_TrieSnapshotHandles.clear(); g_TrieSnapshotHandles.clear();
g_DataPackHandles.clear(); g_DataPackHandles.clear();
g_TextParsersHandles.clear();
char map_pluginsfile_path[256]; char map_pluginsfile_path[256];
char prefixed_map_pluginsfile[256]; char prefixed_map_pluginsfile[256];

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#if defined(__linux__) || defined(__APPLE__) #if defined(__linux__) || defined(__APPLE__)
#if defined(__linux__) #if defined(__linux__)
@ -574,6 +552,7 @@ int set_amxnatives(AMX* amx, char error[128])
amx_Register(amx, trie_Natives, -1); amx_Register(amx, trie_Natives, -1);
amx_Register(amx, g_DatapackNatives, -1); amx_Register(amx, g_DatapackNatives, -1);
amx_Register(amx, g_StackNatives, -1); amx_Register(amx, g_StackNatives, -1);
amx_Register(amx, g_TextParserNatives, -1);
//we're not actually gonna check these here anymore //we're not actually gonna check these here anymore
amx->flags |= AMX_FLAG_PRENIT; amx->flags |= AMX_FLAG_PRENIT;

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef __MODULES_H__ #ifndef __MODULES_H__
#define __MODULES_H__ #define __MODULES_H__

View File

@ -306,6 +306,7 @@
<ClCompile Include="..\CModule.cpp" /> <ClCompile Include="..\CModule.cpp" />
<ClCompile Include="..\CPlugin.cpp" /> <ClCompile Include="..\CPlugin.cpp" />
<ClCompile Include="..\CTask.cpp" /> <ClCompile Include="..\CTask.cpp" />
<ClCompile Include="..\CTextParsers.cpp" />
<ClCompile Include="..\CVault.cpp" /> <ClCompile Include="..\CVault.cpp" />
<ClCompile Include="..\datapacks.cpp" /> <ClCompile Include="..\datapacks.cpp" />
<ClCompile Include="..\debugger.cpp" /> <ClCompile Include="..\debugger.cpp" />
@ -335,6 +336,7 @@
<AssemblerOutput Condition="'$(Configuration)|$(Platform)'=='JITRelease|Win32'">All</AssemblerOutput> <AssemblerOutput Condition="'$(Configuration)|$(Platform)'=='JITRelease|Win32'">All</AssemblerOutput>
</ClCompile> </ClCompile>
<ClCompile Include="..\strptime.cpp" /> <ClCompile Include="..\strptime.cpp" />
<ClCompile Include="..\textparse.cpp" />
<ClCompile Include="..\trie_natives.cpp" /> <ClCompile Include="..\trie_natives.cpp" />
<ClCompile Include="..\util.cpp" /> <ClCompile Include="..\util.cpp" />
<ClCompile Include="..\vault.cpp" /> <ClCompile Include="..\vault.cpp" />
@ -370,6 +372,7 @@
<ClInclude Include="..\CQueue.h" /> <ClInclude Include="..\CQueue.h" />
<ClInclude Include="..\CString.h" /> <ClInclude Include="..\CString.h" />
<ClInclude Include="..\CTask.h" /> <ClInclude Include="..\CTask.h" />
<ClInclude Include="..\CTextParsers.h" />
<ClInclude Include="..\CVault.h" /> <ClInclude Include="..\CVault.h" />
<ClInclude Include="..\CVector.h" /> <ClInclude Include="..\CVector.h" />
<ClInclude Include="..\datastructs.h" /> <ClInclude Include="..\datastructs.h" />
@ -389,6 +392,7 @@
<ClInclude Include="..\sh_stack.h" /> <ClInclude Include="..\sh_stack.h" />
<ClInclude Include="..\sh_tinyhash.h" /> <ClInclude Include="..\sh_tinyhash.h" />
<ClInclude Include="..\svn_version.h" /> <ClInclude Include="..\svn_version.h" />
<ClInclude Include="..\textparse.h" />
<ClInclude Include="..\trie_natives.h" /> <ClInclude Include="..\trie_natives.h" />
<ClInclude Include="..\zlib\zconf.h" /> <ClInclude Include="..\zlib\zconf.h" />
<ClInclude Include="..\zlib\zlib.h" /> <ClInclude Include="..\zlib\zlib.h" />
@ -401,6 +405,8 @@
<ItemGroup> <ItemGroup>
<None Include="..\..\plugins\include\cellstack.inc" /> <None Include="..\..\plugins\include\cellstack.inc" />
<None Include="..\..\plugins\include\datapack.inc" /> <None Include="..\..\plugins\include\datapack.inc" />
<None Include="..\..\plugins\include\textparse_ini.inc" />
<None Include="..\..\plugins\include\textparse_smc.inc" />
<None Include="..\amxdefn.asm" /> <None Include="..\amxdefn.asm" />
<None Include="..\amxexecn.asm" /> <None Include="..\amxexecn.asm" />
<None Include="..\amxjitsn.asm" /> <None Include="..\amxjitsn.asm" />

View File

@ -177,6 +177,12 @@
<ClCompile Include="..\stackstructs.cpp"> <ClCompile Include="..\stackstructs.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\CTextParsers.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\textparse.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\amx.h"> <ClInclude Include="..\amx.h">
@ -317,6 +323,12 @@
<ClInclude Include="..\CDataPack.h"> <ClInclude Include="..\CDataPack.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\CTextParsers.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\textparse.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="..\version.rc"> <ResourceCompile Include="..\version.rc">
@ -405,6 +417,12 @@
<None Include="..\..\plugins\include\cellstack.inc"> <None Include="..\..\plugins\include\cellstack.inc">
<Filter>Pawn Includes</Filter> <Filter>Pawn Includes</Filter>
</None> </None>
<None Include="..\..\plugins\include\textparse_ini.inc">
<Filter>Pawn Includes</Filter>
</None>
<None Include="..\..\plugins\include\textparse_smc.inc">
<Filter>Pawn Includes</Filter>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Object Include="..\Jit\helpers-x86.obj"> <Object Include="..\Jit\helpers-x86.obj">

View File

@ -1,13 +1,17 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; vim: set ts=4 sw=4 tw=99 noet ft=nasm:
; (C)2005 by David "BAILOPAN" Anderson ; ;
; register_native functions for amd64 ;;;;;; ; AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
; Based on the concept by Julien "dJeyL" Laurent ; ; Copyright (C) The AMX Mod X Development Team.
; Thanks to T(+)rget for pushing me to implement this ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This software is licensed under the GNU General Public License, version 3 or higher.
; Additional exceptions apply. For full license details, see LICENSE.txt or visit:
; https://alliedmods.net/amxmodx-license
;;Licensed under the GNU General Public License, version 2 ;
;;This is a portion of AMX Mod X ; register_native functions for amd64
;; and is maintained by the AMX Mod X development team. ; Based on the concept by Julien "dJeyL" Laurent
; Thanks to T(+)rget for pushing to implement this
;
;;Initializes the global variable ;;Initializes the global variable

View File

@ -1,13 +1,17 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; vim: set ts=4 sw=4 tw=99 noet ft=nasm:
; (C)2005 by David "BAILOPAN" Anderson ; ;
; register_native functions for x86 ;;;;;; ; AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
; Based on the concept by Julien "dJeyL" Laurent ; ; Copyright (C) The AMX Mod X Development Team.
; Thanks to T(+)rget for pushing me to implement this ; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This software is licensed under the GNU General Public License, version 3 or higher.
; Additional exceptions apply. For full license details, see LICENSE.txt or visit:
; https://alliedmods.net/amxmodx-license
;;Licensed under the GNU General Public License, version 2 ;
;;This is a portion of AMX Mod X ; register_native functions for x86
;; and is maintained by the AMX Mod X development team. ; Based on the concept by Julien "dJeyL" Laurent
; Thanks to T(+)rget for pushing to implement this
;
;;Initializes the global variable ;;Initializes the global variable

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "sh_stack.h" #include "sh_stack.h"

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_NATIVES_H #ifndef _INCLUDE_NATIVES_H
#define _INCLUDE_NATIVES_H #define _INCLUDE_NATIVES_H

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CMenu.h" #include "CMenu.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_NEWMENUS_H #ifndef _INCLUDE_NEWMENUS_H
#define _INCLUDE_NEWMENUS_H #define _INCLUDE_NEWMENUS_H

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include <string.h> #include <string.h>
#include "nongpl_matches.h" #include "nongpl_matches.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#ifndef _INCLUDE_AMXMODX_NONGPL_MATCHES_H_ #ifndef _INCLUDE_AMXMODX_NONGPL_MATCHES_H_
#define _INCLUDE_AMXMODX_NONGPL_MATCHES_H_ #define _INCLUDE_AMXMODX_NONGPL_MATCHES_H_

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include <string.h> #include <string.h>
#include "optimizer.h" #include "optimizer.h"

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _INCLUDE_AMXMODX_OPTIMIZER_H #ifndef _INCLUDE_AMXMODX_OPTIMIZER_H
#define _INCLUDE_AMXMODX_OPTIMIZER_H #define _INCLUDE_AMXMODX_OPTIMIZER_H

View File

@ -1,36 +1,16 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* // Parts Copyright (C) 2001-2003 Will Day <willday@hpgx.net>
* Parts Copyright (C) 2001-2003 Will Day <willday@hpgx.net> //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version. //
* // Module SDK
* This program is distributed in the hope that it will be useful, but //
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
* Description: AMX Mod X Module Interface Functions
*/
#include <string.h> #include <string.h>
#include <new> #include <new>

View File

@ -1,7 +1,16 @@
/* // vim: set ts=4 sw=4 tw=99 noet:
* AMX Mod X Module Interface Functions //
* This file may be freely used // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
*/ // Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
//
//
// Module SDK
//
// prevent double include // prevent double include
#ifndef __AMXXMODULE_H__ #ifndef __AMXXMODULE_H__

View File

@ -1,4 +1,15 @@
// Configuration // vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
//
// Module Config
//
#ifndef __MODULECONFIG_H__ #ifndef __MODULECONFIG_H__
#define __MODULECONFIG_H__ #define __MODULECONFIG_H__

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include "amxmodx.h" #include "amxmodx.h"
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include <amxmodx_version.h> #include <amxmodx_version.h>
@ -240,33 +218,13 @@ void amx_command()
{ {
print_srvconsole("AMX Mod X\n"); print_srvconsole("AMX Mod X\n");
print_srvconsole("\n"); print_srvconsole("\n");
print_srvconsole(" by the AMX Mod X Development Team\n"); print_srvconsole(" Based on AMX Mod by Aleksander Naszko (\"OLO\").\n");
print_srvconsole(" originally developed by OLO\n"); print_srvconsole(" Copyright (C) The AMX Mod X Development Team.\n");
print_srvconsole("\n"); print_srvconsole("\n");
print_srvconsole("\n"); print_srvconsole(" This software is licensed under the GNU General Public License, version 3 or\n");
print_srvconsole(" This program is free software; you can redistribute it and/or modify it\n"); print_srvconsole(" higher. Additional exceptions apply. For full license details, see LICENSE.txt\n");
print_srvconsole(" under the terms of the GNU General Public License as published by the\n"); print_srvconsole(" or visit:\n");
print_srvconsole(" Free Software Foundation; either version 2 of the License, or (at\n"); print_srvconsole(" https://alliedmods.net/amxmodx-license\n");
print_srvconsole(" your option) any later version.\n");
print_srvconsole("\n");
print_srvconsole(" This program is distributed in the hope that it will be useful, but\n");
print_srvconsole(" WITHOUT ANY WARRANTY; without even the implied warranty of\n");
print_srvconsole(" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n");
print_srvconsole(" General Public License for more details.\n");
print_srvconsole("\n");
print_srvconsole(" You should have received a copy of the GNU General Public License\n");
print_srvconsole(" along with this program; if not, write to the Free Software Foundation,\n");
print_srvconsole(" Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n");
print_srvconsole("\n");
print_srvconsole(" In addition, as a special exception, the author gives permission to\n");
print_srvconsole(" link the code of this program with the Half-Life Game Engine (\"HL\n");
print_srvconsole(" Engine\") and Modified Game Libraries (\"MODs\") developed by Valve,\n");
print_srvconsole(" L.L.C (\"Valve\"). You must obey the GNU General Public License in all\n");
print_srvconsole(" respects for all of the code used other than the HL Engine and MODs\n");
print_srvconsole(" from Valve. If you modify this file, you may extend this exception\n");
print_srvconsole(" to your version of the file, but you are not obligated to do so. If\n");
print_srvconsole(" you do not wish to do so, delete this exception statement from your\n");
print_srvconsole(" version.\n");
print_srvconsole("\n"); print_srvconsole("\n");
} }
else if (!strcmp(cmd, "\x74\x75\x72\x74\x6C\x65")) // !! Hidden Command :D !! else if (!strcmp(cmd, "\x74\x75\x72\x74\x6C\x65")) // !! Hidden Command :D !!

View File

@ -1,32 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* This program is free software; you can redistribute it and/or modify it // This software is licensed under the GNU General Public License, version 3 or higher.
* under the terms of the GNU General Public License as published by the // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* Free Software Foundation; either version 2 of the License, or (at // https://alliedmods.net/amxmodx-license
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "datastructs.h" #include "datastructs.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <ctype.h> #include <ctype.h>
#include "amxmodx.h" #include "amxmodx.h"

394
amxmodx/textparse.cpp Normal file
View File

@ -0,0 +1,394 @@
/**
* vim: set ts=4 sw=4 tw=99 noet:
*
* AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* Copyright (C) The AMX Mod X Development Team.
*
* This software is licensed under the GNU General Public License, version 3 or higher.
* Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* https://alliedmods.net/amxmodx-license
*/
#include "amxmodx.h"
#include <textparse.h>
#include <am-vector.h>
TextParserHandles<ParseInfo> g_TextParsersHandles;
cell createParser()
{
return g_TextParsersHandles.create();
}
cell destroyParser(cell *handle)
{
ParseInfo *p = g_TextParsersHandles.lookup(*handle);
if (p == NULL)
{
return 0;
}
if (g_TextParsersHandles.destroy(*handle))
{
*handle = 0;
return 1;
}
return 0;
}
/**
* SMC CONFIG.
*/
// native SMCParser:SMC_CreateParser();
static cell AMX_NATIVE_CALL SMC_CreateParser(AMX *amx, cell *params)
{
return createParser();
}
// native SMC_SetParseStart(SMCParser:handle, const func[]);
static cell AMX_NATIVE_CALL SMC_SetParseStart(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid SMC parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)) && length)
{
p->parse_start = registerSPForwardByName(amx, funcName, FP_CELL, FP_DONE);
}
if (p->parse_start == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native SMC_SetParseEnd(SMCParser:handle, const func[]);
static cell AMX_NATIVE_CALL SMC_SetParseEnd(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid SMC parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)) && length)
{
p->parse_end = registerSPForwardByName(amx, funcName, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
}
if (p->parse_end == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native SMC_SetReaders(SMCParser:smc, const kvFunc[], const nsFunc[] = "", const esFunc[] = "");
static cell AMX_NATIVE_CALL SMC_SetReaders(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid SMC parse handle (%d)", params[1]);
return 0;
}
int kvLength = 0, nsLength = 0, esLength = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, kvLength)) && kvLength)
{
p->key_value = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_STRING, FP_DONE);
}
if (kvLength && (funcName = get_amxstring(amx, params[3], 1, nsLength)) && nsLength)
{
p->new_section = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_DONE);
}
if (kvLength && (funcName = get_amxstring(amx, params[4], 2, esLength)) && esLength)
{
p->end_section = registerSPForwardByName(amx, funcName, FP_CELL, FP_DONE);
}
if (p->key_value == -1 || (nsLength && p->new_section == -1) || (esLength && p->end_section == -1))
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native SMC_SetRawLine(SMCParser:handle, const func[]);
static cell AMX_NATIVE_CALL SMC_SetRawLine(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid SMC parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)) && length)
{
p->raw_line = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_CELL, FP_DONE);
}
if (p->raw_line == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native SMCError:SMC_ParseFile(SMCParser:handle, const file[], &line = 0, &col = 0);
static cell AMX_NATIVE_CALL SMC_ParseFile(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid SMC parse handle (%d)", params[1]);
return 0;
}
int length;
const char *file = build_pathname("%s", get_amxstring(amx, params[2], 0, length));
SMCStates states;
SMCError p_err = textparsers->ParseFile_SMC(file, p, &states);
*get_amxaddr(amx, params[3]) = states.line;
*get_amxaddr(amx, params[4]) = states.col;
return static_cast<cell>(p_err);
}
// native bool:SMC_GetErrorString(SMCError:error, buffer[], buf_max);
static cell AMX_NATIVE_CALL SMC_GetErrorString(AMX *amx, cell *params)
{
const char *str = textparsers->GetSMCErrorString((SMCError)params[1]);
if (!str)
{
return 0;
}
return set_amxstring(amx, params[2], str, params[3]);
}
// native SMC_DestroyParser(&SMCParser:handle);
static cell AMX_NATIVE_CALL SMC_DestroyParser(AMX *amx, cell *params)
{
return destroyParser(get_amxaddr(amx, params[1]));
}
/**
* INI CONFIG
*/
// native INIParser:INI_CreateParser();
static cell AMX_NATIVE_CALL INI_CreateParser(AMX *amx, cell *params)
{
return createParser();
}
// native bool:INI_ParseFile(INIParser:handle, const file[], &line = 0, &col = 0);
static cell AMX_NATIVE_CALL INI_ParseFile(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid INI parse handle (%d)", params[1]);
return 0;
}
int length;
const char *file = build_pathname("%s", get_amxstring(amx, params[2], 0, length));
unsigned int line, col;
bool result = textparsers->ParseFile_INI(file, p, &line, &col);
*get_amxaddr(amx, params[3]) = line;
*get_amxaddr(amx, params[4]) = col;
return result;
}
// native INI_SetParseStart(INIParser:handle, const func[]);
static cell AMX_NATIVE_CALL INI_SetParseStart(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid INI parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)) && length)
{
p->parse_start = registerSPForwardByName(amx, funcName, FP_CELL, FP_DONE);
}
if (p->parse_start == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native INI_SetParseEnd(INIParser:handle, const func[]);
static cell AMX_NATIVE_CALL INI_SetParseEnd(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid INI parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)))
{
p->parse_end = registerSPForwardByName(amx, funcName, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
}
if (p->parse_end == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native INI_SetReaders(INIParser:smc, const kvFunc[], const nsFunc[] = "" );
static cell AMX_NATIVE_CALL INI_SetReaders(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid INI parse handle (%d)", params[1]);
return 0;
}
int kvLength = 0, nsLength = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, kvLength)) && kvLength)
{
p->key_value = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_STRING, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
}
if (kvLength && (funcName = get_amxstring(amx, params[3], 1, nsLength)) && nsLength)
{
p->new_section = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
}
if (p->key_value == -1 || (nsLength && p->new_section == -1))
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native INI_SetRawLine(INIParser:handle, const func[]);
static cell AMX_NATIVE_CALL INI_SetRawLine(AMX *amx, cell *params)
{
ParseInfo *p = g_TextParsersHandles.lookup(params[1]);
if (p == NULL)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid INI parse handle (%d)", params[1]);
return 0;
}
int length = 0;
const char *funcName = NULL;
if ((funcName = get_amxstring(amx, params[2], 0, length)) && length)
{
p->raw_line = registerSPForwardByName(amx, funcName, FP_CELL, FP_STRING, FP_CELL, FP_CELL, FP_DONE);
}
if (p->raw_line == -1)
{
LogError(amx, AMX_ERR_NATIVE, "Function is not present (function \"%s\") (plugin \"%s\")", funcName, g_plugins.findPluginFast(amx)->getName());
return 0;
}
return 1;
}
// native INI_DestroyParser(&INIParser:handle);
static cell AMX_NATIVE_CALL INI_DestroyParser(AMX *amx, cell *params)
{
return destroyParser(get_amxaddr(amx, params[1]));
}
AMX_NATIVE_INFO g_TextParserNatives[] =
{
{ "SMC_CreateParser" , SMC_CreateParser },
{ "SMC_ParseFile" , SMC_ParseFile },
{ "SMC_GetErrorString", SMC_GetErrorString },
{ "SMC_SetParseStart" , SMC_SetParseStart },
{ "SMC_SetParseEnd" , SMC_SetParseEnd },
{ "SMC_SetReaders" , SMC_SetReaders },
{ "SMC_SetRawLine" , SMC_SetRawLine },
{ "SMC_DestroyParser" , SMC_DestroyParser },
{ "INI_CreateParser" , INI_CreateParser },
{ "INI_ParseFile" , INI_ParseFile },
{ "INI_SetParseStart" , INI_SetParseStart },
{ "INI_SetParseEnd" , INI_SetParseEnd },
{ "INI_SetReaders" , INI_SetReaders },
{ "INI_SetRawLine" , INI_SetRawLine },
{ "INI_DestroyParser" , INI_DestroyParser },
{ NULL, NULL },
};

207
amxmodx/textparse.h Normal file
View File

@ -0,0 +1,207 @@
/**
* vim: set ts=4 sw=4 tw=99 noet:
*
* AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* Copyright (C) The AMX Mod X Development Team.
*
* This software is licensed under the GNU General Public License, version 3 or higher.
* Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* https://alliedmods.net/amxmodx-license
*/
#ifndef _INCLUDE_TEXTPARSE_H_
#define _INCLUDE_TEXTPARSE_H_
#include "amxmodx.h"
#include "CTextParsers.h"
class ParseInfo :
public ITextListener_SMC,
public ITextListener_INI
{
public:
ParseInfo()
{
parse_start = -1;
parse_end = -1;
new_section = -1;
key_value = -1;
end_section = -1;
raw_line = -1;
handle = -1;
}
public:
/**
* SMC CONFIG.
*/
void ReadSMC_ParseStart()
{
if (parse_start != -1)
executeForwards(parse_start, handle);
}
void ReadSMC_ParseEnd(bool halted, bool failed)
{
if (parse_end != -1)
executeForwards(parse_end, handle, halted ? 1 : 0, failed ? 1 : 0);
}
SMCResult ReadSMC_NewSection(const SMCStates *states, const char *name)
{
if (new_section != -1)
return (SMCResult)executeForwards(new_section, handle, name);
return SMCResult_Continue;
}
SMCResult ReadSMC_KeyValue(const SMCStates *states, const char *key, const char *value)
{
if (key_value != -1)
return (SMCResult)executeForwards(key_value, handle, key, value);
return SMCResult_Continue;
}
SMCResult ReadSMC_LeavingSection(const SMCStates *states)
{
if (end_section != -1)
return (SMCResult)executeForwards(end_section, handle);
return SMCResult_Continue;
}
SMCResult ReadSMC_RawLine(const SMCStates *states, const char *line)
{
if (raw_line != -1)
return (SMCResult)executeForwards(raw_line, handle, line, states->line);
return SMCResult_Continue;
}
/**
* INI CONFIG.
*/
void ReadINI_ParseStart()
{
if (parse_start != -1)
executeForwards(parse_start, handle);
}
void ReadINI_ParseEnd(bool halted)
{
if (parse_end != -1)
executeForwards(parse_end, handle, halted ? 1 : 0);
}
bool ReadINI_NewSection(const char *section, bool invalid_tokens, bool close_bracket, bool extra_tokens, unsigned int *curtok)
{
if (new_section != -1)
return executeForwards(new_section, handle, section, invalid_tokens, close_bracket, extra_tokens, *curtok) > 0 ? true : false;
return true;
}
bool ReadINI_KeyValue(const char *key, const char *value, bool invalid_tokens, bool equal_token, bool quotes, unsigned int *curtok)
{
if (key_value != -1)
return executeForwards(key_value, handle, key, value, invalid_tokens, equal_token, quotes, *curtok) > 0 ? true : false;
return true;
}
bool ReadINI_RawLine(const char *line, unsigned int *curtok)
{
if (raw_line != -1)
return executeForwards(raw_line, handle, line, *curtok) > 0 ? true : false;
return true;
}
public:
int parse_start;
int parse_end;
int new_section;
int key_value;
int end_section;
int raw_line;
int handle;
};
template <typename T>
class TextParserHandles
{
private:
ke::Vector<T *> m_textparsers;
public:
TextParserHandles() { }
~TextParserHandles()
{
this->clear();
}
void clear()
{
for (size_t i = 0; i < m_textparsers.length(); i++)
{
if (m_textparsers[i] != NULL)
{
delete m_textparsers[i];
}
}
m_textparsers.clear();
}
T *lookup(int handle)
{
handle--;
if (handle < 0 || handle >= static_cast<int>(m_textparsers.length()))
{
return NULL;
}
return m_textparsers[handle];
}
int create()
{
for (size_t i = 0; i < m_textparsers.length(); i++)
{
if (m_textparsers[i] == NULL)
{
// reuse handle
m_textparsers[i] = new T;
return static_cast<int>(i)+1;
}
}
m_textparsers.append(new T);
return m_textparsers.length();
}
bool destroy(int handle)
{
handle--;
if (handle < 0 || handle >= static_cast<int>(m_textparsers.length()))
{
return false;
}
if (m_textparsers[handle] == NULL)
{
return false;
}
delete m_textparsers[handle];
m_textparsers[handle] = NULL;
return true;
}
};
extern TextParserHandles<ParseInfo> g_TextParsersHandles;
#endif // _INCLUDE_TEXTPARSE_H_

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _TRIE_NATIVES_H_ #ifndef _TRIE_NATIVES_H_
#define _TRIE_NATIVES_H_ #define _TRIE_NATIVES_H_

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include <time.h> #include <time.h>
#include "amxmodx.h" #include "amxmodx.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"
#include "CVault.h" #include "CVault.h"

View File

@ -1,33 +1,11 @@
/* AMX Mod X // vim: set ts=4 sw=4 tw=99 noet:
* //
* by the AMX Mod X Development Team // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
* originally developed by OLO // Copyright (C) The AMX Mod X Development Team.
* //
* // This software is licensed under the GNU General Public License, version 3 or higher.
* This program is free software; you can redistribute it and/or modify it // Additional exceptions apply. For full license details, see LICENSE.txt or visit:
* under the terms of the GNU General Public License as published by the // https://alliedmods.net/amxmodx-license
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/
#include "amxmodx.h" #include "amxmodx.h"

View File

@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h * For conditions of distribution and use, see copyright notice in zlib.h
*/ */
/* @(#) $Id: zconf.h 3734 2008-08-16 09:48:39Z damagedsoul $ */
#ifndef ZCONF_H #ifndef ZCONF_H
#define ZCONF_H #define ZCONF_H

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#include "Binary.h" #include "Binary.h"
BinaryWriter::BinaryWriter(FILE *fp) BinaryWriter::BinaryWriter(FILE *fp)

View File

@ -1,3 +1,12 @@
// vim: set ts=4 sw=4 tw=99 noet:
//
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
// Copyright (C) The AMX Mod X Development Team.
//
// This software is licensed under the GNU General Public License, version 3 or higher.
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _INCLUDE_BINARY_H #ifndef _INCLUDE_BINARY_H
#define _INCLUDE_BINARY_H #define _INCLUDE_BINARY_H

View File

@ -17,8 +17,6 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amx.cpp 1728 2005-07-25 00:01:54Z dvander $
*/ */
#if BUILD_PLATFORM == WINDOWS && BUILD_TYPE == RELEASE && BUILD_COMPILER == MSVC && PAWN_CELL_SIZE == 64 #if BUILD_PLATFORM == WINDOWS && BUILD_TYPE == RELEASE && BUILD_COMPILER == MSVC && PAWN_CELL_SIZE == 64

View File

@ -17,8 +17,6 @@
* 2. Altered source versions must be plainly marked as such, and must not be * 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software. * misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution. * 3. This notice may not be removed or altered from any source distribution.
*
* Version: $Id: amx.h 3736 2008-08-16 20:13:12Z damagedsoul $
*/ */
#if defined FREEBSD && !defined __FreeBSD__ #if defined FREEBSD && !defined __FreeBSD__

Some files were not shown because too many files have changed in this diff Show More