Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: force join team

  1. #21

    Default

    so i need a new scr or add the codes in our scr for force join team from spect to team the admin want

    and the the command to force join team is rcon switch **
    so what the command to force join team from spect to team without waiting "teamswitchdelay 120" and without auto balance ?

  2. #22

    Default

    thankx
    Last edited by Old Fox; March 25th, 2019 at 10:28 PM.

  3. #23

    Default

    Can't you just use Admin pro + Jims Punishment to switch players where you want without waiting?

  4. #24

    Default

    Quote Originally Posted by Old Fox View Post
    smithy ?
    Please in this post can i remove the auto join team and make it force join the team i want ?

  5. #25
    Junior Member Goober's Avatar
    Join Date
    Feb 2014
    Location
    United States
    Posts
    27

    Default

    I use Jim's punishments and this is the code I added to the global_listen.scr:

    Code:
    case "joinaxis":
    self stufftext "join_team axis"
    setcvar self.varname ""
    break 
    
    
    case "joinallies":
    self stufftext "join_team allies"
    setcvar self.varname ""
    break
    The commands would be :

    rcon !0 joinallies
    rcon !0 joinaxis
    Last edited by Goober; February 27th, 2019 at 05:41 PM.

  6. #26

    Default

    @Goober: Jims have already a command for that, if you use like this:

    Code:
    rcon !0 jointeam:allies

  7. #27

    Default

    Quote Originally Posted by Old Fox View Post
    smithy ?
    Please in this post can i remove the auto join team and make it force join the team i want ?
    I don't want to be mean, It's just small encouragement for reflection, but what about learning to code? After all you are server owner so basic scripting skills should be something to posses ASAP, you can become prodigy in Morpheus in something like 2-3 months, being noob in morpheus who can code something is matter of 2-4 weeks, after getting these basics you will receive much more help just because it's less exhausting to give tips than building whole mods for someones request.

    Also I suggested Jim's Punishment 2, guys do it now too, and it's because it suits your needs perfectly and reinventing the wheel is needles unless it can be done better/doesn't work fully. Give it a try.
    Github - Steam - .Crimewavez#5285

  8. #28

    Default

    Quote Originally Posted by Criminal View Post
    I don't want to be mean, It's just small encouragement for reflection, but what about learning to code? After all you are server owner so basic scripting skills should be something to posses ASAP, you can become prodigy in Morpheus in something like 2-3 months, being noob in morpheus who can code something is matter of 2-4 weeks, after getting these basics you will receive much more help just because it's less exhausting to give tips than building whole mods for someones request.

    Also I suggested Jim's Punishment 2, guys do it now too, and it's because it suits your needs perfectly and reinventing the wheel is needles unless it can be done better/doesn't work fully. Give it a try.
    Ah yes and thank you criminal for trying to make me learn but now i have a problem in my server and the server cant wait me to learn the HTML for one or two months so if u can help me in this problem its will be ok then ill learn the html
    Also i came here to fix the hard problems that i cant fix it
    thankx

  9. #29

    Default

    You won't need HTML unless you want to take up front-end, Morpheus is enough. You can move player to spectator, allies and axis without waiting the team delay with this script. It could be obviously possible to code it in more elegant ways, but it works.


    //=========================================================================
    main:
    //=========================================================================
    {
    setcvar "jspec" ""
    setcvar "jallies" ""
    setcvar "jaxis" ""
    local.originalSwitchDelay = getcvar("g_teamswitchdelay")

    while(1){
    if(getcvar("jspec") != ""){
    waitthread joinSpectators
    setcvar "jspec" ""
    }

    if(getcvar("jallies") != ""){
    setcvar g_teamswitchdelay 0
    waitthread joinAllies

    setcvar g_teamswitchdelay int(local.originalSwitchDelay)
    setcvar "jallies" ""
    }

    if(getcvar("jaxis") != ""){
    setcvar g_teamswitchdelay 0
    waitthread joinAxis

    setcvar g_teamswitchdelay int(local.originalSwitchDelay)
    setcvar "jaxis" ""
    }
    waitframe
    }
    }end

    //=========================================================================
    joinSpectators:
    //=========================================================================
    {
    local.entnum = int(getcvar("jspec"))

    for (local.i = 1; local.i <= $player.size; local.i++) {
    local.plrArray = $player[local.i]

    if(local.plrArray.entnum == local.entnum){
    local.plrArray spectator
    }
    }
    }end

    //=========================================================================
    joinAllies:
    //=========================================================================
    {
    local.entnum = int(getcvar("jallies"))

    for (local.i = 1; local.i <= $player.size; local.i++) {
    local.plrArray = $player[local.i]

    if(local.plrArray.entnum == local.entnum){
    local.plrArray join_team allies
    }
    }
    }end

    //=========================================================================
    joinAxis:
    //=========================================================================
    {
    local.entnum = int(getcvar("jaxis"))

    for (local.i = 1; local.i <= $player.size; local.i++) {
    local.plrArray = $player[local.i]

    if(local.plrArray.entnum == local.entnum){
    local.plrArray join_team axis
    }
    }
    }end
    Last edited by Criminal; March 2nd, 2019 at 07:25 AM.
    Github - Steam - .Crimewavez#5285

  10. #30

    Default

    No criminal u didn't got it
    Please take a look here

    https://www.x-null.net/forums/thread...orce-join-team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •