08.10.2015, 21:24
Can someone tell me why this GMChange public doesn't show the random game that has been changed in a message?
Код:
public GMChange() { switch(random(4)) { case 0: SendRconCommand("changemode gmone"); case 1: SendRconCommand("changemode gmtwo"); case 2: SendRconCommand("changemode gmthree"); case 3: SendRconCommand("changemode gmfour"); } new modestring[128], ircs[128]; format(modestring,sizeof(modestring),">> Your next mission will be: {F2C80C}%s {FFFFFF}...please wait.",random(4)); SendClientMessageToAll(-1,modestring); format(ircs,sizeof(ircs),">> Changing mission, next will be: %s", random(4)); IRC_GroupSay(groupID, IRC_CHANNEL, ircs); return 1; }