• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Script War auto team balance

Stewie

Family Guy # ;3
Joined
May 3, 2010
Messages
786
Reaction score
12
Location
TV
i would like a script to auto team balance for Server War

Thx

Im rep +
 
Code:
local t = {
	red = {x = 1077, y = 952, z = 7},
	blue = {x = 1035, y = 1023, z = 7},
	green = {x = 977, y = 956, z = 6}
}

local outfit = {
re = {lookType = 133, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94},
blu = {lookType = 133, lookHead = 87, lookBody = 87, lookLegs = 87, lookFeet = 87},
gre = {lookType = 133, lookHead = 81, lookBody = 114, lookLegs = 114, lookFeet = 81}
}

function onLogin(cid)
local R = math.random(1,3)
 if R <=  1 then
  doTeleportThing(cid, t.red)
   doCreatureChangeOutfit(cid, outfit.re)

 elseif R <= 2 then
  doTeleportThing(cid, t.blue)
   doCreatureChangeOutfit(cid, outfit.blu)

 elseif R <= 3 then
  doTeleportThing(cid, t.green)
   doCreatureChangeOutfit(cid, outfit.gre)
end
        return true
end

Xml
Code:
	<event type="login" name="OnLogin" event="script" value="onlogin.lua"/>

login.lua
Code:
      registerCreatureEvent(cid, "onLogin")

Config.lua
Code:
	noDamageToSameLookfeet = False
 
Back
Top