|
dvander@2168
|
1 |
/** |
|
dvander@2168
|
2 |
* vim: set ts=4 : |
|
dvander@2168
|
3 |
* ============================================================================= |
|
dvander@2168
|
4 |
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. |
|
dvander@2168
|
5 |
* ============================================================================= |
|
dvander@2168
|
6 |
* |
|
dvander@2168
|
7 |
* This file is part of the SourceMod/SourcePawn SDK. |
|
dvander@2168
|
8 |
* |
|
dvander@2168
|
9 |
* This program is free software; you can redistribute it and/or modify it under |
|
dvander@2168
|
10 |
* the terms of the GNU General Public License, version 3.0, as published by the |
|
dvander@2168
|
11 |
* Free Software Foundation. |
|
dvander@2168
|
12 |
* |
|
dvander@2168
|
13 |
* This program is distributed in the hope that it will be useful, but WITHOUT |
|
dvander@2168
|
14 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
dvander@2168
|
15 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
|
dvander@2168
|
16 |
* details. |
|
dvander@2168
|
17 |
* |
|
dvander@2168
|
18 |
* You should have received a copy of the GNU General Public License along with |
|
dvander@2168
|
19 |
* this program. If not, see <http://www.gnu.org/licenses/>. |
|
dvander@2168
|
20 |
* |
|
dvander@2168
|
21 |
* As a special exception, AlliedModders LLC gives you permission to link the |
|
dvander@2168
|
22 |
* code of this program (as well as its derivative works) to "Half-Life 2," the |
|
dvander@2168
|
23 |
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software |
|
dvander@2168
|
24 |
* by the Valve Corporation. You must obey the GNU General Public License in |
|
dvander@2168
|
25 |
* all respects for all other code used. Additionally, AlliedModders LLC grants |
|
dvander@2168
|
26 |
* this exception to all derivative works. AlliedModders LLC defines further |
|
dvander@2168
|
27 |
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), |
|
dvander@2168
|
28 |
* or <http://www.sourcemod.net/license.php>. |
|
dvander@2168
|
29 |
* |
|
dvander@2168
|
30 |
* Version: $Id$ |
|
dvander@2168
|
31 |
*/ |
|
dvander@2168
|
32 |
|
|
dvander@2168
|
33 |
#if defined _nextmap_included_ |
|
dvander@2168
|
34 |
#endinput |
|
dvander@2168
|
35 |
#endif |
|
dvander@2168
|
36 |
#define _nextmap_included_ |
|
dvander@2168
|
37 |
|
|
dvander@2168
|
38 |
/** |
|
dvander@2168
|
39 |
* Sets SourceMod's internal nextmap. |
|
dvander@2168
|
40 |
* Equivalent to changing sm_nextmap but with an added validity check. |
|
dvander@2168
|
41 |
* |
|
dvander@2168
|
42 |
* @param map Next map to set. |
|
dvander@2168
|
43 |
* @return True if the nextmap was set, false if map was invalid. |
|
dvander@2168
|
44 |
*/ |
|
dvander@2168
|
45 |
native bool:SetNextMap(const String:map[]); |
|
dvander@2168
|
46 |
|
|
dvander@2168
|
47 |
/** |
|
dvander@2168
|
48 |
* Returns SourceMod's internal nextmap. |
|
dvander@2168
|
49 |
* |
|
dvander@2168
|
50 |
* @param map Buffer to store the nextmap name. |
|
dvander@2168
|
51 |
* @param maxlen Maximum length of the map buffer. |
|
dvander@2168
|
52 |
* @return True if a Map was found and copied, false if no nextmap is set (map will be unchanged). |
|
dvander@2168
|
53 |
*/ |
|
dvander@2168
|
54 |
native bool:GetNextMap(String:map[], maxlen); |