tony adamantium
Tony!
- Joined
- May 5, 2010
- Messages
- 62
- Reaction score
- 1
i have this script
and its about a TEAM WAR..
and i want it to be like.. two teams.. if u say !pvp u got to blue team or red.. and only like 5 people can go to each team and when its full then no more people can go in.. and each team to be in red outfit and blue outfit.. and blue team goes to a different place and red another.. can yall understand? xd well i hope u can help me.. i know it sounds difficult..
thank you!
Code:
function onSay(cid, words, param)
local posx = getGlobalStorageValue(75314)
local posy = getGlobalStorageValue(75315)
local posz = getGlobalStorageValue(75316)
local evtpos = {x=1076, y=1006, z=7}
if words == '!pvp' then
if getGlobalStorageValue(75310) ~= 10 then
doPlayerSendCancel(cid,'NO hay eventos en este momento.')
else
doTeleportThing(cid,evtpos)
end
elseif words == '/eventx' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75314, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/eventy' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75315, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/eventz' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75316, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/eventopvp' then
if param == 'on' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75310, 10)
doTeleportThing(cid,evtpos)
doBroadcastMessage(' '.. getCreatureName(cid) ..' Ha ACTivado el concurso de: Matar para entrar di: !pvp', MESSAGE_EVENT_ADVANCE)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif param == 'off' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75310, 0)
doBroadcastMessage(' '.. getCreatureName(cid) ..' Ha DESactivado el concurso de: Team PvP', MESSAGE_EVENT_ADVANCE)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
end
end
end
and its about a TEAM WAR..
and i want it to be like.. two teams.. if u say !pvp u got to blue team or red.. and only like 5 people can go to each team and when its full then no more people can go in.. and each team to be in red outfit and blue outfit.. and blue team goes to a different place and red another.. can yall understand? xd well i hope u can help me.. i know it sounds difficult..
thank you!