Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
|
| 07 Feb 2015 02:16 PM |
Due to H.A.U allowing pre-flooding, I need a script that only allows 24 Raiders to be in a server at a time. Our outpost requires 6 HAU and sometimes clans will pre-flood with over 30 people leaving no room in for defenders. Need anymore details? Contact me, this shouldn't be a very complicated script so I'll give maybe 500R$ for the first person to create a working one?
Next, since H.A.U will be engaging a swords-only war with Ice Legion I will need a script (Not Free-Modeled) that only allows HAU-IL into the outpost. I'm expecting Ice Legion to bring in a load of members due to their constant VIP recruitment so it will be hard to keep track of who is in IL or not without it. I'll pay 350R$ for this script.
Thanks, Rainway |
|
|
| Report Abuse |
|
|
Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
|
| 07 Feb 2015 02:17 PM |
| Hopefully these are not too complicated. |
|
|
| Report Abuse |
|
|
yelm
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 4898 |
|
| |
|
Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
| |
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:19 PM |
for loops. game.Players.PlayerAdded:connect(function(p)
local limit = 24 local c = 0 local p = game.Players:GetChildren() for i=1,#p do if p[i].TeamColor == BrickColor.new("RAIDERCOLOR") then c = c+1 end if c > 24 then p[i]:kick() c=c-1 end end)
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:19 PM |
| mbstf looks cool with blizzard beast O_O |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:20 PM |
oh there's money involved?
http://www.roblox.com/plz-ser-item?id=180029049
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
|
| 07 Feb 2015 02:21 PM |
"game.Players.PlayerAdded:connect(function(p)
local limit = 24 local c = 0 local p = game.Players:GetChildren() for i=1,#p do if p[i].TeamColor == BrickColor.new("RAIDERCOLOR") then c = c+1 end if c > 24 then p[i]:kick() c=c-1 end end)"
Is there anyway we could test that to see if it works? |
|
|
| Report Abuse |
|
|
yelm
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 4898 |
|
|
| 07 Feb 2015 02:21 PM |
| mbstf looks cool with blizzard beast O_O[2] |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:22 PM |
Free
local teams = game:GetService("Teams")
local defenderTeamName = "HAU" local groupId = 476946
local raiderTeamName = "Raiders" local maximumRaiders = 24
function getNumPlayersInTeam(teamName) local numInTeam = 0 for _, v in next, game.Players:GetPlayers() do if v.TeamColor == teams[teamName].TeamColor then numInTeam = numInTeam + 1 end end return numInTeam end
game.Players.PlayerAdded:connect(function(player) if player:IsInGroup(groupId) then player.TeamColor = teams[defenderTeamName].TeamColor else if getNumPlayersInTeam(raiderTeamName) > maximumRaiders then player:Kick() end end end)
This doesn't work with allies, if you have an allies team. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:22 PM |
game.Players.PlayerAdded:connect(function(p) if p:IsInGroup(HauGroupId) or p:IsInGroup(ILGroupId) then else p:kick() end
k pay up for this too
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:23 PM |
"I'll give maybe 500R$ for the first person to create a working one?"
"500R$ for the first person to create a working one"
"first person to create a working one"
"first person"
http://www.roblox.com/plz-ser-item?id=180029049
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
| |
|
|
| 07 Feb 2015 02:24 PM |
lol i think prag just did that so no one pays ruinable
chicken nuggets | i'm afraid i've got some bad news |
|
|
| Report Abuse |
|
|
are31
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 13767 |
|
| |
|
Rainway
|
  |
| Joined: 20 Jul 2014 |
| Total Posts: 15572 |
|
| |
|
ice180
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 12382 |
|
|
| 07 Feb 2015 02:26 PM |
Accept me into HAU, please. |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:26 PM |
It's a simple script. It took me two minutes tops.
And mine is readable. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:26 PM |
Who care's if it's readable if it works
>Pay me my 500 or riot
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:27 PM |
This is also why I decided to not develop for HAU. :)
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|
ice180
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 12382 |
|
|
| 07 Feb 2015 02:27 PM |
Nevermind, anyone is able to join. |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:28 PM |
| You're mad because you don't have the ability to rip people off anymore. |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:30 PM |
| Use Prag's code, Ruinable is a scammer and terrible scripter. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 07 Feb 2015 02:37 PM |
@Prag, what do you mean, "I can't rip people off anymore"? lol |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 02:52 PM |
| You scammed people for tech. |
|
|
| Report Abuse |
|
|