View Single Post
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 06-22-2010 , 09:19   Re: [CS:S] Deathrun Manager (CS 1.6 port)
Reply With Quote #4

If anyone wants the map prefix check for dr_ or deathrun_ map names, here it is.

Code I added:
Code:
public OnMapStart(){
    
    new String:currentMap[64];
    GetCurrentMap(currentMap,sizeof(currentMap));
    
    if((StrContains(currentMap,"deathrun_",false) != 0) && (StrContains(currentMap,"dr_",false) != 0)){
        
        SetConVarInt(deathrun_enabled,0);
    }
    else {
        
        SetConVarInt(deathrun_enabled,1);
    }
}
Download:
Attached Files
File Type: sp Get Plugin or Get Source (deathrun_manager.sp - 2032 views - 5.5 KB)
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline