Raised This Month: $ Target: $400
 0% 

[CS:GO] How unload plugin on specific map ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m22b
Senior Member
Join Date: Jul 2013
Old 07-14-2015 , 03:55   [CS:GO] How unload plugin on specific map ?
Reply With Quote #1

Hellow all, anybody have example ? )

Like :

{
if(map dust2_night)
"sm plugins unload blabla.smx"
}

???
m22b is offline
Sprilo
Member
Join Date: Aug 2014
Old 07-14-2015 , 04:45   Re: [CS:GO] How unload plugin on specific map ?
Reply With Quote #2

Code:
    decl String:MapName[100];
    GetCurrentMap(MapName, 100);
    
    if(StrEqual(MapName, "dust2_night", false))
    {
        ServerCommand("sm plugins unload blabla.smx");
    }
Something like this should work
Sprilo is offline
m22b
Senior Member
Join Date: Jul 2013
Old 07-14-2015 , 07:25   Re: [CS:GO] How unload plugin on specific map ?
Reply With Quote #3

Quote:
Originally Posted by Sprilo View Post
Code:
    decl String:MapName[100];
    GetCurrentMap(MapName, 100);
    
    if(StrEqual(MapName, "dust2_night", false))
    {
        ServerCommand("sm plugins unload blabla.smx");
    }
Something like this should work
thx i test it
m22b is offline
Darkness_
Veteran Member
Join Date: Nov 2014
Old 07-14-2015 , 11:58   Re: [CS:GO] How unload plugin on specific map ?
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=69506
Darkness_ is offline
m22b
Senior Member
Join Date: Jul 2013
Old 07-15-2015 , 21:32   Re: [CS:GO] How unload plugin on specific map ?
Reply With Quote #5

Quote:
Originally Posted by Darkness_ View Post
thx
m22b is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode