why idk i want make it when i load gamemods its restart server 
#include <a_samp>
#include <zcmd>
#include <sscanf>
CMD:changemode(playerid, params[])
{
new string[32],GM[32];
if(sscanf(params, "s", GM))
{
SendClientMessage(playerid,-1, "Usage: /changemode (GM)");
return 1;
}
format(string, sizeof (string), "changemode %s", GM);
SendRconCommand(string);
return 1;
}
#include <a_samp>
#include <zcmd>
#include <sscanf>
CMD:changemode(playerid, params[])
{
new string[32],GM[32];
if(sscanf(params, "s", GM))
{
SendClientMessage(playerid,-1, "Usage: /changemode (GM)");
return 1;
}
format(string, sizeof (string), "changemode %s", GM);
SendRconCommand(string);
return 1;
}
|
PHP код:
|
CMD:gmx(playerid, params[])
{
SendRconCommand(gmx);
return 1;
}
|
PHP код:
|
i want with commands in my fs not gmx alone and this not make any things its only
CMD:loadfs(playerid, params[])
{
new string[32],fs[32];
if(sscanf(params, "s", fs))
{
SendClientMessage(playerid,-1, "Usage: /loadfs (fs)");
return 1;
}
format(string, sizeof (string), "loadfs %s", fs);
SendRconCommand(string);
return 1;
}
|
You mean the load filterscript ?
PHP код:
|
|
#include <a_samp> #include <zcmd> #include <sscanf> CMD:changemode(playerid, params[]) { new string[32],GM[32]; if(sscanf(params, "s", GM)) { SendClientMessage(playerid,-1, "Usage: /changemode (GM)"); return 1; } format(string, sizeof (string), "changemode %s", GM); SendRconCommand(string); return 1; } |