AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] SM Command in SM Command? (https://forums.alliedmods.net/showthread.php?t=278354)

Trippp 01-30-2016 04:59

[HELP] SM Command in SM Command?
 
Hello everyone,

Trippp here, im kinda new to coding so apologies for the noob questions.
I'm trying to code some SM Commands in a new SM Command.
I tried searching on how to do this unfortunately I couldn't find it anywhere.
Things I'd like in my !reload command:
sm plugins unload_all
sm plugins refresh
sm_reloadadmins

The code i already have.
Code:

#include <sourcemod>

public void OnPluginStart()
{
    RegAdminCmd("sm_ezreload", Command_EZReload, ADMFLAG_ROOT);
}

public Action Command_EZReload(int client,int args)
{
        PrintToChatAll("Reloading Plugin!")
        return Plugin_Handled;
}

If this is a noob question, I'm sorry, I'm new to coding.

Regards,

TripppW0W

Chihuahuax 01-30-2016 05:00

Re: [HELP] SM Command in SM Command?
 
wrong section


All times are GMT -4. The time now is 09:21.

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