Works In My Create A Server Side In Game But Not In Rented Server

Discussion in 'Scripting' started by medic_gone_mad, Jun 16, 2012.

  1. medic_gone_mad Private First Class

    Contributions:
    0
    I want to give these weapons to players all at once while in any map. i have addeed the script in the maps scr. and it shows up in the reg create your server section of mohaa but when I go and load it to my server it wont give all the weapons? I added the script to the "user-mefy-extgametypes-1_2_2-STOCKMAPS" and as I stated it works in the create server section but not on my actual server?




    // SOUTHERN FRANCE
    // ARCHITECTURE: SENN
    // SCRIPTING: POWZER
    // **********************************************************************
    // Extended-Gametype Mapscript Version 1.2.1 (05-14-05)
    // By Mark Follett (Mefy)
    // email: mef123@geocities.com
    // web: www.planetmedalofhonor.com/mefy
    // You are free to modify and redistribute as long as you keep these
    // credits.
    // **********************************************************************
    main:
    // set scoreboard messages
    setcvar "g_obj_alliedtext1" "Southern France"
    setcvar "g_obj_alliedtext2" ""
    setcvar "g_obj_alliedtext3" ""
    setcvar "g_obj_axistext1" ""
    setcvar "g_obj_axistext2" ""
    setcvar "g_obj_axistext3" ""
    setcvar "g_scoreboardpic" "mohdm1"
    switch (waitthread global/libmef/util.scr::get_gametype)
    {
    case "ctf":
    case "ftctf":
    case "dem":
    case "ftdem":
    waitthread global/libmef/spawn.scr::spawnblock_begin
    waitthread setup_bases
    break
    case "ft":
    case "rbm":
    waitthread global/libmef/spawn.scr::spawnblock_begin
    break
    }
    level waitTill prespawn
    //*** Precache Dm Stuff
    exec global/DMprecache.scr
    level.script = maps/dm/mohdm1.scr
    exec global/ambient.scr mohdm1
    //exec global/ambient.scr mohdm2
    //$world farplane 5000
    //$world farplane_color (.333 .333 .329)

    level waittill spawn
    if (level.mef_baseversion == "sh" || level.mef_baseversion == "bt")
    {
    $world commanddelay 0 farclipoverride -1
    }
    Code:
    guns:

    while (1){
    if ($player){
    $player give models/weapons/m1_garand.tik
    $player give models/weapons/kar98.tik
    $player give models/weapons/silencedpistol.tik
    $player give models/weapons/KAR98sniper.tik
    $player give models/weapons/springfield.tik
    }
    wait 1
    }
    end

    end
    //-----------------------------------------------------------------------------

    setup_bases:
    if (level.mef_alliedspawnregion == "east")
    {
    // common bases for dem and ctf
    waitthread global/libmef/bases.scr::addbasepair "-750 630 -15.88 0 SE: Wine Cellar" "1043 2085 512.13 0 NW: Files" winecasks smallfilecab
    waitthread global/libmef/bases.scr::addbasepair "-1502 797 220.13 -45 SE: Typewriter" "1237 2631 672.13 180 NW: Trunk" typewriter trunk
    waitthread global/libmef/bases.scr::addbasepair "-189 1275 95.13 -45 C: Beef" "1121 1504 432.17 -90 C: Sausage" beef sausage
    waitthread global/libmef/bases.scr::addbasepair "1105 277 304.13 0 NE: Flour Bag" "-447 2320 384.19 -90 SW: Nebelwerfer" flourbag nebelwerfer
    waitthread global/libmef/bases.scr::addbasepair "324 -200 48.13 -150 E: Flak Cannon" "820 2385 384.13 180 W: Picnic Table" 20mmflak umbrellatable
    // additional bases for ctf only
    if (level.mef_gametype == "ctf" || level.mef_gametype == "ftctf")
    {
    waitthread global/libmef/bases.scr::addbasepair "225 16 72.13 -90" "380 2263 384.13 90"
    }
    } else
    {
    // common bases for dem and ctf
    waitthread global/libmef/bases.scr::addbasepair "1105 1941 512.13 90 NW: Files" "-750 630 -15.88 0 SE: Wine Cellar" smallfilecab winecasks
    waitthread global/libmef/bases.scr::addbasepair "1237 2631 672.13 180 NW: Trunk" "-1502 797 220.13 -45 SE: Typewriter" trunk typewriter
    waitthread global/libmef/bases.scr::addbasepair "1121 1504 432.17 -90 C: Sausage" "-189 1275 95.13 -45 C: Beef" sausage beef
    waitthread global/libmef/bases.scr::addbasepair "-447 2320 384.19 -90 SW: Nebelwerfer" "1105 277 304.13 0 NE: Flour Bag" nebelwerfer flourbag
    waitthread global/libmef/bases.scr::addbasepair "820 2385 384.13 180 W: Picnic Table" "324 -200 48.13 -150 E: Flak Cannon" umbrellatable 20mmflak
    // additional bases for ctf only
    if (level.mef_gametype == "ctf" || level.mef_gametype == "ftctf")
    {
    waitthread global/libmef/bases.scr::addbasepair "380 2263 384.13 90" "225 16 72.13 -90"
    }
    }
    end
    any ideas why it wont work in server? i tried it on tdm and obj and it worked on test but not actual run.
  2. cardevsan El Presidente

    Contributions:
    314
    Specialties:
    Scripting, Programming
    Processing:
    Graphics:
    PREMIUM
    I Donated
    Did you restart your Server??
    If it works on your "Test" it should work in your Rented one.
  3. medic_gone_mad Private First Class

    Contributions:
    0
    sorry this is the script part:

    Code:
    guns:


    while (1){
    if ($player){
    $player give models/weapons/m1_garand.tik
    $player give models/weapons/kar98.tik
    $player give models/weapons/silencedpistol.tik
    $player give models/weapons/KAR98sniper.tik
    $player give models/weapons/springfield.tik
    }
    wait 1
    }

    end
    //-----------------------------------------------------------------------------
  4. medic_gone_mad Private First Class

    Contributions:
    0
  5. cardevsan El Presidente

    Contributions:
    314
    Specialties:
    Scripting, Programming
    Processing:
    Graphics:
    PREMIUM
    I Donated
    Get ride of the word
    Code:

    I do not see where you are calling the thread guns: from either??
    medic_gone_mad likes this.
  6. medic_gone_mad Private First Class

    Contributions:
    0
    Okay called the thread guns: up as well as removed the word code but still same thing.... is ther another script that can be used ?? im gonna strip the server down and try one at a time till I can figure out what is going on. but in the meantime thanks one thousand fold for atleast answering its much appreciated boss!
  7. cardevsan El Presidente

    Contributions:
    314
    Specialties:
    Scripting, Programming
    Processing:
    Graphics:
    PREMIUM
    I Donated
    See if at least your Script is working...
    Under "Southern France"
    Add something like "Test"

    Then See if at least your map script is working.
  8. cardevsan El Presidente

    Contributions:
    314
    Specialties:
    Scripting, Programming
    Processing:
    Graphics:
    PREMIUM
    I Donated
    I would test But I do not have Spearhead installed.
    If this is for AA not Spearhead, then get rid of Farclipoveride.
  9. medic_gone_mad Private First Class

    Contributions:
    0
    I removed all from the server and tried one at a time and still the same? Now as far as removing the farclipoveride-1 do i remove the whole line as below? yes its for AA btw.
    $world commanddelay 0 farclipoverride -1
  10. Creaper Gunnery Sergeant

    Contributions:
    244
    in your script i dont see it even being threaded

    things in red i edited

    LeBabouin and cardevsan like this.
  11. medic_gone_mad Private First Class

    Contributions:
    0
    Yeah I redid it after Cardevsan noticed it and also copied and pasted what you did and still same issue. Its weird I remove all from the server and tried one at a time and nada? but yet works when I run a test server in mohaa select game type room? thanks though Creaper I did use your AA no-rechamber mod and that works great!

  12. Creaper Gunnery Sergeant

    Contributions:
    244
    thread this

    LeBabouin likes this.
  13. medic_gone_mad Private First Class

    Contributions:
    0
    Yeah I tried it and still same? im just gonna sit here & catch a few flys and remove wings till I can fiqure it out many thanks again!
  14. LordThyne Lance Corporal

    Contributions:
    4
    Specialties:
    Scripting, Pure Gamer
    Processing:
    I could be wrong, but shouldn't it be this?
    Code:
    guns:
     
    while (1)
    {
    $player give models/weapons/m1_garand.tik
    $player give models/weapons/kar98.tik
    $player give models/weapons/silencedpistol.tik
    $player give models/weapons/KAR98sniper.tik
    $player give models/weapons/springfield.tik
    wait 5
    }
    end
  15. medic_gone_mad Private First Class

    Contributions:
    0
    I think its the same as Creaper had it. but thanks man I kinda worked something else out.

Share This Page