Author Topic: HL league fix  (Read 905 times)

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
HL league fix
« on: December 15, 2008, 12:47:24 PM »
Mike, why didn't you notice this? I suggest updating it right away. Or I will.

Code: [Select]
  pleft = HL_VS - hlLeague.GetPlayerCount(Selected)
  Dsp dspID, Username & " (" & hlLeague.GetStats(Username, "exp") & ") signed in; " & pleft & " slots left.", Username, vbLB
  If pleft = 0 Then
    Call hl_FULLGAME(dspID)
  End If

TO:

Code: [Select]
  pleft = HL_VS - hlLeague.GetPlayerCount(Selected)
  If pleft = 0 Then
    Call hl_FULLGAME(dspID)
  Else
    Dsp dspID, Username & " (" & hlLeague.GetStats(Username, "exp") & ") signed in; " & pleft & " slots left.", Username, vbLB
  End If

When a host uses "out", it will abort the game.

Code: [Select]
  host = hlLeague.GameInfo(Selected, "host")

  If host = Username Then
    Dsp dspID, "The host has left the game.", "", True
    Call hl_CancelGame_cmd("abort", Username, dspID)
  Else
    hlLeague.SignOutPlayer Selected, Username
    pleft = HL_VS - hlLeague.GetPlayerCount(Selected)
    Dsp dspID, Username & "(" & hlLeague.GetStats(Username, "exp") & ") signed out; " & pleft & " slots left.", Username, vbLB
  End If

Also, if a player/host leaves they will be signed out/game cancelled.

Code: [Select]
Sub hl_Event_UserLeaves(Username, Flags)
  Selected = hlLeague.GetSelectedGame
  If Not hlLeague.InSpecificGame(Username, Selected) Then Exit Sub

  host = hlLeague.GameInfo(Selected, "host")

  If host = Username Then
    Dsp 2, "The host has left the game. Aborted.", "", True
    Call hl_CancelGame_cmd("abort", Username, dspID)
  Else
    hlLeague.SignOutPlayer Selected, Username
    Dsp 2, Username & "(" & hlLeague.GetStats(Username, "exp") & ") signed out; " & pleft & " slots left.", Username, vbLB
  End If
End Sub

It'd be nice if you could update this asap.

Also versioning doesnot work.
« Last Edit: December 15, 2008, 01:16:14 PM by Vector »
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
HL league fix
« Reply #1 on: December 16, 2008, 05:09:51 AM »
I  disabled updating because the paths were incorrect, that's  what the "fix" was. If you want you can add those in, I am very busy atm.
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
HL league fix
« Reply #2 on: December 16, 2008, 08:32:49 AM »
ok. I will then.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
HL league fix
« Reply #3 on: December 16, 2008, 09:19:53 AM »
Updated, and placed on plugin server.

/r77 get hl

[size=]EDIT: 300TH POST!!!!!!!!!!!!!!!!!![/size]
« Last Edit: December 16, 2008, 10:26:27 AM by Vector »
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector