Mode Changes Automatically in Sequence
#4

It should be like this?

Код:
public switchmode()
{
    new
        modestring[50]
    ;

if(randmode < sizeof(ModeInfo)) {
   randmode++;
}
else {
   randmode = 0;
}

    format(modestring, sizeof(modestring), "The Next mode will be %s!", ModeInfo[currentmode][Mode]);
    SendClientMessageToAll(0x32CD32FF, modestring);
    format(modestring,sizeof(modestring), "changemode %s", ModeInfo[currentmode][Mode]);
    SendRconCommand(modestring);

    currentmode = randmode;
    changemodetimer = SetTimer("switchmode", ModeInfo[currentmode][Time], false);

    return 1;
}
Reply


Messages In This Thread
Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 11:46
Re: Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 12:30
Re: Mode Changes Automatically in Sequence - by Krokett - 04.08.2015, 12:43
Re: Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 12:46
Re: Mode Changes Automatically in Sequence - by Crayder - 04.08.2015, 12:49
Re: Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 13:01
Re: Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 15:27
Re: Mode Changes Automatically in Sequence - by goldspy98 - 04.08.2015, 17:25
Re: Mode Changes Automatically in Sequence - by Inn0cent - 04.08.2015, 17:36
Re: Mode Changes Automatically in Sequence - by SpikY_ - 04.08.2015, 17:52

Forum Jump:


Users browsing this thread: 2 Guest(s)