|
| 01 Jul 2016 05:43 PM |
it is supposed to kick raiders when they reach maximum raiding time but doesnt work
for i=1, 10 do wait(1) UpdateTimerText('Maximum raiding time reached! Imperial Armada has won the defense! Hostiles will be kicked in 10 seconds...') end for i,v in pairs(GetPlayersOnTeam(raidersteam)) do v:kick('You lost the raid!') end end
config:
local defendersteam = 'Imperial Armada' local mindefenders=10 -- minimun defenders local raidersteam = 'Hostiles' local minraiders=6 -- minimun raiders local maxraidtime=3600 -- raid time in seconds
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
Vuyy
|
  |
| Joined: 15 Sep 2013 |
| Total Posts: 1222 |
|
|
| 01 Jul 2016 05:53 PM |
| Thats just a small piece of the code |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 05:55 PM |
yes, thats where the problem is
|
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 06:05 PM |
| Keep adding "end" until it works. |
|
|
| Report Abuse |
|
|