Public() help
#7

PHP код:
public GMChange(){
    
    new 
rand random(4), buffer[128];
    
format(buffer,sizeof(buffer),">> Your next mission will be: {F2C80C}%d {FFFFFF}...please wait.",rand);
    
SendClientMessageToAll(-1,buffer);
    
format(buffer,sizeof(buffer),">> Changing mission, next will be: %d"rand);
    
IRC_GroupSay(groupIDIRC_CHANNELbuffer);
    
    switch(
rand)
    {
        case 
0SendRconCommand("changemode gmone");
        case 
1SendRconCommand("changemode gmtwo");
        case 
2SendRconCommand("changemode gmthree");
        case 
3SendRconCommand("changemode gmfour");
    }
    
    return 
1;

Reply


Messages In This Thread
Public() help - by Face9000 - 08.10.2015, 21:24
Re: Public() help - by Jefff - 08.10.2015, 21:57
Re: Public() help - by Face9000 - 09.10.2015, 09:44
Re: Public() help - by Hessu - 09.10.2015, 10:02
Re: Public() help - by Evocator - 09.10.2015, 10:09
Re: Public() help - by jlalt - 09.10.2015, 10:10
Re: Public() help - by AbyssMorgan - 09.10.2015, 10:28
Re: Public() help - by Sew_Sumi - 09.10.2015, 13:30
Re: Public() help - by Face9000 - 09.10.2015, 20:14
Re: Public() help - by AbyssMorgan - 09.10.2015, 20:20

Forum Jump:


Users browsing this thread: 2 Guest(s)