Gmx :D +Rep For Help -
FisherMan - 10.09.2014
Guys i make Gmx to my FS this but its bug

why idk i want make it when i load gamemods its restart server
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;
}
Help+Rep
Re: Gmx :D +Rep For Help -
Dangjai - 10.09.2014
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;
}
Re: Gmx :D +Rep For Help -
FisherMan - 10.09.2014
Quote:
Originally Posted by Kinglee
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;
}
|
lol what is new i want make gmx guys from this cmd
Re: Gmx :D +Rep For Help -
Leroytjuh - 10.09.2014
Use this: SendRconCommand("gmx");
Re: Gmx :D +Rep For Help -
Venice - 10.09.2014
PHP код:
CMD:gmx(playerid, params[])
{
SendRconCommand(gmx);
return 1;
}
Re: Gmx :D +Rep For Help -
FisherMan - 10.09.2014
Quote:
Originally Posted by Venice
PHP код:
CMD:gmx(playerid, params[])
{
SendRconCommand(gmx);
return 1;
}
|
lol

i want with commands in my fs not gmx alone and this not make any things its only
i can take SendRconCommand(gmx); to my fs and working when i type my load gamemods ?
Re: Gmx :D +Rep For Help -
Venice - 10.09.2014
You mean the load filterscript ?
PHP код:
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;
}
Re: Gmx :D +Rep For Help -
FisherMan - 10.09.2014
Quote:
Originally Posted by Venice
You mean the load filterscript ?
PHP код:
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;
}
|
i have load gamemods not fs and i want make when he is load gamemods fs restart server to i have all only restart not have
Re: Gmx :D +Rep For Help -
FisherMan - 10.09.2014
How To Make GMX on this ?
Quote:
#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;
}
|
Re : Gmx :D +Rep For Help -
FilesMAker - 10.09.2014
Just make all you gamemodes on your server.cfg then switch via SendRconCommand("GMX")