Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- #define PLUGIN_VERSION "1.0"
- public Plugin:myinfo =
- {
- name = "tryb dm na komende",
- author = "timor",
- description = "zmiana trybu na dm",
- version = PLUGIN_VERSION,
- url = "http://cs-placzabaw.pl"
- };
- public OnPluginStart()
- {
- RegAdminCmd("sm_dm", Command_NB, ADMFLAG_KICK);
- }
- public Action:Command_NB(client, args)
- {
- new Handle:convar = FindConVar("dm_enabled");
- new Handle:convar1 = FindConVar("mp_restartgame");
- if(GetConVarInt(convar) == 1)
- {
- SetConVarInt(convar, 0);
- SetConVarInt(convar1, 1);
- ServerCommand("exec esl5on5.cfg");
- }
- else if(GetConVarInt(convar) == 0)
- {
- SetConVarInt(convar, 1);
- SetConVarInt(convar1, 1);
- ServerCommand("exec dm.cfg");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement