Skip to content

Commit

Permalink
Add SJD_IsCurrentMapConfigured stock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailo97 committed Aug 20, 2015
1 parent 2d4ce31 commit c579f6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions addons/sourcemod/scripting/include/smartjaildoors.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ native void SJD_ToggleExDoors();
*/
native bool SJD_IsMapConfigured(const char[] mapName);

/**
* Check if exist doors config for current map.
*/
stock bool SJD_IsCurrentMapConfigured()
{
char mapName[64];
GetCurrentMap(mapName, sizeof(mapName));

return SJD_IsMapConfigured(mapName);
}

public SharedPlugin:__pl_smartjaildoors =
{
name = "smartjaildoors",
Expand Down

0 comments on commit c579f6a

Please sign in to comment.