SA-MP Forums Archive
Gmx :D +Rep For Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gmx :D +Rep For Help (/showthread.php?tid=536600)



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(playeridparams[])
{
    new 
string[32],GM[32];
    if(
sscanf(params"s"GM))
    {
    
SendClientMessage(playerid,-1"Usage: /changemode (GM)");
    return 
1;
    }
    
format(stringsizeof (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(playeridparams[]) 

    new 
string[32],GM[32]; 
    if(
sscanf(params"s"GM)) 
    { 
    
SendClientMessage(playerid,-1"Usage: /changemode (GM)"); 
    return 
1
    } 
    
format(stringsizeof (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(playeridparams[]) 

    new 
string[32],GM[32]; 
    if(
sscanf(params"s"GM)) 
    { 
    
SendClientMessage(playerid,-1"Usage: /changemode (GM)"); 
    return 
1
    } 
    
format(stringsizeof (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(playeridparams[])  
{  
    
SendRconCommand(gmx);  
    return 
1;  




Re: Gmx :D +Rep For Help - FisherMan - 10.09.2014

Quote:
Originally Posted by Venice
Посмотреть сообщение
PHP код:
CMD:gmx(playeridparams[])  
{  
    
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(playeridparams[])  
{  
    new 
string[32],fs[32];  
    if(
sscanf(params"s"fs))  
    {  
    
SendClientMessage(playerid,-1"Usage: /loadfs (fs)");  
    return 
1;  
    }  
    
format(stringsizeof (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(playeridparams[])  
{  
    new 
string[32],fs[32];  
    if(
sscanf(params"s"fs))  
    {  
    
SendClientMessage(playerid,-1"Usage: /loadfs (fs)");  
    return 
1;  
    }  
    
format(stringsizeof (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")