Gametypestring

Discussion in 'Spearhead' started by PUNISHER2202, Aug 12, 2012.

  1. PUNISHER2202 Sergeant

    Contributions:
    7
    Processing:
    Graphics:
    Hello i have this script and work good. OK now i want add to this script the mod countdown "EXTRA MAPS CD". Any help



    while(1)
    {
    if (int(getcvar(g_gametype)) == 1)
    setcvar "g_gametypestring" "EXTRA MAPS FFA"

    if (int(getcvar(g_gametype)) == 2)
    setcvar "g_gametypestring" "EXTRA MAPS TDM"

    if (int(getcvar(g_gametype)) == 3)
    setcvar "g_gametypestring" "EXTRA MAPS RB"

    if (int(getcvar(g_gametype)) == 4)
    setcvar "g_gametypestring" "EXTRA MAPS OBJ"
    wait 1

    }
  2. green54321 Corporal

    Contributions:
    61
    Specialties:
    Support
    Processing:
    Graphics:
    try this:
    while(1)
    {
    if (int(getcvar(g_gametype)) == 1)
    setcvar "g_gametypestring" "EXTRA MAPS FFA"

    if (int(getcvar(g_gametype)) == 2)
    setcvar "g_gametypestring" "EXTRA MAPS TDM"

    if (int(getcvar(g_gametype)) == 3)
    setcvar "g_gametypestring" "EXTRA MAPS RB"

    if (int(getcvar(g_gametype)) == 4)
    setcvar "g_gametypestring" "EXTRA MAPS OBJ"

    if (int(getcvar(countdown)) == 1)
    setcvar "g_gametypestring" "EXTRA MAPS CD"

    wait 1
    }
    ehhhh countdown have g_gametype 2 so maybe this have problem, u need test it.
    zlatko likes this.
  3. loeri loeri.tk

    Contributions:
    45
    Specialties:
    Mapper, Scripting, Programming, Support
    Processing:
    Graphics:
    PREMIUM
    I Donated
    What about making the countdown like getcvar(countdown)) == 1 && getcvar(g_gametype)) == 2 ? ;)
  4. zlatko Staff Sergeant

    Contributions:
    146
    Specialties:
    Mapper, Scripting, Pure Gamer
    Processing:
    Graphics:
    PREMIUM
    I Donated
    open setup.scr in countdown mod and see:D
  5. PUNISHER2202 Sergeant

    Contributions:
    7
    Processing:
    Graphics:
  6. green54321 Corporal

    Contributions:
    61
    Specialties:
    Support
    Processing:
    Graphics:
    PUNISHER2202 can u say who help u and if script work tell us for everyone who cant understand? :) Thank You
    zlatko likes this.

Share This Page