Gmx :D +Rep For Help
#1

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
Reply
#2

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

Reply
#3

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
Reply
#4

Use this: SendRconCommand("gmx");
Reply
#5

PHP код:
CMD:gmx(playeridparams[])  
{  
    
SendRconCommand(gmx);  
    return 
1;  

Reply
#6

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 ?
Reply
#7

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;  

Reply
#8

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
Reply
#9

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;
}

Reply
#10

Just make all you gamemodes on your server.cfg then switch via SendRconCommand("GMX")
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)