ausirosiris
New Member
- Joined
- May 23, 2020
- Messages
- 57
- Reaction score
- 2
Guys, i have this script for team war but, i only need to change the COLORS because i'm using another script to set the outfit per vocation.
can't figure how to make it... (maybe i'm stupid)
can't figure how to make it... (maybe i'm stupid)
Code:
local t = {
red = {x = 1035, y = 1077, z = 6},
blue = {x = 1102, y = 1036, z = 6}
}
local outfit = {
red = {lookType = 135, lookHead = 132, lookBody = 132, lookLegs = 132, lookFeet = 132},
blue = {lookType = 135, lookHead = 126, lookBody = 126, lookLegs = 126, lookFeet = 126}
}
function onLogin(cid)
local R = math.random(1,2)
if R <= 1 then
doTeleportThing(cid, t.red)
doCreatureChangeOutfit(cid, outfit.red)
doPlayerFeed(cid, 100000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You were sent to fight for the Red Team!")
elseif R <= 2 then
doTeleportThing(cid, t.blue)
doCreatureChangeOutfit(cid, outfit.blue)
doPlayerFeed(cid, 100000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You were sent to fight for the Blue Team!")
end
return true
end