Jump to content

MaRcell

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by MaRcell

  1. MaRcell

    VipSystem

    if (getElementData(v,"isVIP") then error : expected near then
  2. MaRcell

    VipSystem

    It gave error in the part of acl, I say that it has no value, do I have to put it separate?
  3. MaRcell

    VipSystem

    I have a vip system and I wanted to know how to put those nametag over the head of the player only to whom and vip, what functions do you need?
  4. Eu tenho um sistema de vip e eu queria saber como coloca aqueles nametag encima da cabeça do jogador so pra quem e vip , qual funçoes necessarias?
  5. MaRcell

    ACL BUG

    I already decided, thank you
  6. MaRcell

    ACL BUG

    I made a system to open the panel by acl but all players that enter the server have the right to open because? function showPanel(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then triggerClientEvent(thePlayer, "opencho", getRootElement()) end end function onResStart() for index, player in ipairs(getElementsByType("player")) do bindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStart) function onPlayerJoin() bindKey(source, "F4", "down", showPanel) end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll(player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAll) function displayServerMessage(source, message, type) triggerClientEvent(source, "msgclear", getRootElement(), message, type) end function uniforme() setPedSkin(source, 281) displayServerMessage(source, "Você vestiu o uniforme do CHOQUE", "warning") end addEvent("uniform",true) addEventHandler("uniform", root, uniforme) function arma() giveWeapon(source, 25, 1) giveWeapon(source, 3, 1) giveWeapon(source, 41, 1) setWeaponAmmo(source, 25, 100) setWeaponAmmo(source, 41, 500) displayServerMessage(source, "Você pegou armamento", "warning") end addEvent("arm",true) addEventHandler("arm", root, arma) Vtr = {} function viat() local x, y, z = getElementPosition(source) if Vtr[source] and isElement(Vtr[source]) then destroyElement(Vtr[source]) end Vtr[source] = createVehicle (598, x, y, z) displayServerMessage(source, "Você chamou uma Viatura", "warning") setElementRotation(Vtr[source],0,0,90) warpPedIntoVehicle (source, Vtr[source]) end addEvent("via", true) addEventHandler("via", root, viat) function DestroyVeiculo () destroyElement (Vtr[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo) function escu() escudo = createObject(3062,0,0,0) exports["bone_attach"]:attachElementToBone(escudo, source,3, -0, 0.8,-0.2,185,-344, 15) -- protect = createObject(1337,0,0,0) -- exports["bone_attach"]:attachElementToBone(protect, source,3, -0.7, 0.8,-0.2,185,-360, 100) --setElementAlpha(protect, 0) displayServerMessage(source, "Você pegou o escudo do CHOQUE", "warning") end addEvent("esc", true) addEventHandler("esc", root, escu) function vidac() setElementHealth(source, 100) setPedArmor(source, 100) displayServerMessage(source, "Você restaurou sua vida", "warning") displayServerMessage(source, "e vestiu um colete!", "warning") end addEvent("vc", true) addEventHandler("vc", root, vidac) function ds() destroyElement(escudo, source) displayServerMessage(source, "Você destruiu seu escudo", "warning") end addEvent("desc", true) addEventHandler("desc", root, ds)
  7. MaRcell

    ERROR

    http://imgur.com/a/csyE6 LINE 1 ERROr addEvent("liderShout", true) function liderShout(textox) if isTimer(TimerF) then killTimer(TimerF) end if texto then texto:destroy() end texto = Text.new(textox, screenWidth / 2, screenHeight - dxGetFontHeight(3, "bankgothic") / 2 - screenHeight / 2 + 225, false, "bankgothic", 3, "left") texto:color(106, 90, 205, 255) texto:scale(2) texto:type("border", 2, 0, 0, 0, 255) TimerF = setTimer(function() texto:destroy() end,5000,1) end addEventHandler("liderShout", root, liderShout)
  8. Type I want to create a system that the player that is in the acl group will be able to use the commands type / pull and tals
  9. I would like to know how to create a command for such a player to use
  10. MaRcell

    BUTTON IN DX

    I created a panel in dx wanted to know how to create a button in dx
  11. MaRcell

    TURF

    I created a turf system wit local TurfsTable = { [1] = {rx=2306.26440,ry= 551.96600 ,sx=150,sy=100,bx=2306.26440,by=551.96600,bz=10,bsx=197.5,bsy=92,bheight=30,red=255,green=255,blue=255} } function CriarTurf(rx,ry,sx,sy,bx,by,bz,bsx,bsy,bheight,red,green,blue) local turf = createRadarArea(rx,ry,sx,sy,red,green,blue) local cubo = createColCuboid(bx,by,bz,bsx,bsy,bheight) setElementData(cubo,"Turf-area",turf) setElementData(cubo,"Turf-team",false) setElementData(cubo,"Turf-inAttack",false) setElementData(cubo,"Turf-attackedPlayer",false) setElementData(cubo,"Turf-time",false) end function CriarTodasTurfs() for i=1,#TurfsTable do local rx,ry,sx,sy,bx,by,bz,bsx,bsy,bheight,red,green,blue = TurfsTable[i].rx,TurfsTable[i].ry,TurfsTable[i].sx,TurfsTable[i].sy,TurfsTable[i].bx,TurfsTable[i].by,TurfsTable[i].bz,TurfsTable[i].bsx,TurfsTable[i].bsy,TurfsTable[i].bheight,TurfsTable[i].red,TurfsTable[i].green,TurfsTable[i].blue CriarTurf(rx,ry,sx,sy,bx,by,bz,bsx,bsy,bheight,red,green,blue) end end CriarTodasTurfs() function onHit(player) local turfArea = getElementData(source,"Turf-area") or false if(turfArea==false)then return end if(getElementType(player)~="player")then return end local turfTeam = getElementData(source,"Turf-team") or "" local playerTeam = getPlayerTeam(player) or false if(playerTeam==false)then return outputChatBox("Voce nao tem time pra dominar turf",player) end if(turfTeam == "")then -- essa turn nao tem dono, o que fazer quando o player entrar nela? -- começa o atk e aparece o timer outputChatBox("Espere 5 segundos para dominar essa area vazia, nao sai dela") setTimer(timerTurfVazia,5000,1,source,player) else -- essa turf tem dono if(turfTeam == playerTeam)then -- time amigo outputChatBox("Bem vindo a sua turf",player) else -- inimigo local defensores = getPlayersTeamInArea(turfTeam) if(#defensores == 0)then-- nao tem nenhum player defensor na area e agora? setTurfInAtack(source,player) else -- tem 1 ou mais defensores os defensores e os palyers da gang que vai la defender kk setTurfInAtack(source,player) end end end end addEventHandler('onColShapeHit', root,onHit) function DominarTurf(turf,player) local team = getPlayerTeam(player) local area = getElementData(turf,"Turf-area") setElementData(turf,"Turf-team",team) local r,g,b = getTeamColor(team) setRadarAreaColor(area,r,g,b,255) outputChatBox("Area dominada pela gang: "..getTeamName(team).." Pelo Jogador: "..getPlayerName(player)) end function timerTurfVazia(t,p) if(isElementWithinColShape(p,t))then DominarTurf(t,p) else outputChatBox("Voce saiu da turf",p) end end function getPlayersTeamInArea(team) local t = {} local players = getElementsByType("player") for k,v in ipairs(players)do local te = getPlayerTeam(v) if(te and te == team)then table.insert(t,v) end end return t end function setTurfInAtack(turf,atackPlayer) local area = getElementData(turf,"Turf-area") local turfTeam = getElementData(turf,"Turf-team") setElementData(turf,"Turf-inAttack",true) setRadarAreaFlashing(area,true) local playersDefensores = getPlayersInTeam(turfTeam) for k,v in ipairs(playersDefensores)do outputChatBox("Sua area foi atacada pelo jogador: "..getPlayerName(atackPlayer),v) end local timer = setTimer(atacanteDominarArea,30*1000,1,turf,atackPlayer) setElementData(turf,"Turf-time",timer) end function atacanteDominarArea(turf,player) if(isElementWithinColShape(player,turf))then -- se o player atacante permaneceu 30 seg na turf DominarTurf(turf,player) end end function onPlayerWasted(_,killer) -- aki que o bixo pega local turfsAtacadas = getAllAtackedTurfs() -- aki tem uma tabela com todas as turfs atacadas if(#turfsAtacadas==0)then return end for k,v in ipairs(turfsAtacadas) do local jogadorAtacante = getElementData(v,"Turf-inAttack") local timerTurf = getElementData(v,"Turf-time") if(jogadorAtacante == source and timerTurf and isTimer(timerTurf))then -- jogador atacante morreu killTimer(timerTurf) setElementData(v,"Turf-inAttack",false) setElementData(v,"Turf-attackedPlayer",false) end end end addEventHandler("onPlayerWasted",root,onPlayerWasted) function getAllAtackedTurfs() local t = {} local cubos = getElementsByType("colshape") for k,v in ipairs(cubos)do local inAtack = getElementData(v,"Turf-inAttack") if(inAtack==true)then table.insert(t,v) end end end h a problem when the other gang dominates the turf keeps blinking and does not show that the gang dominated anyone could help me?
  12. MaRcell

    Help me

    It still did not work
  13. MaRcell

    Help me

    I'm having a problem with a script so when killing the player there is a gray effect on the screen but this does not happen. function player_Wasted ( ammo, attacker, weapon, bodypart ) if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then fadeCamera ( attacker, false, 3.0, 200, 230, 230 ) setTimer ( fadeCameraDelayed, 200, 1, attacker ) end end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) function fadeCameraDelayed(player) if (isElement(player)) then fadeCamera(player, true) end end
  14. https://uploaddeimagens.com.br/imagens/mta-screen_2016-09-08_17-30-15-png flooda even when I leave the vehicle / = print outputChatBox ('#FF5100* #ffffffVocê tem #FF510010 #ffffffsegundos parar voltar para o Carro.', source, 255, 255, 255, true) T11 = setTimer (destroyElement, 10000,1, blipxxx[source]) T22 = setTimer (destroyElement, 10000,1, cam[source]) T33 = setTimer (setElementData, 10000,1, source, "Trab", false) T44 = setTimer (function() Trabalho = false setPedSkin (source,0) outputChatBox ('#FF5100* #ffffffVocê ficou muito tempo fora do veiculo e fracasso a missao!.', source, 255, 255, 255, true) setElementData(source, "Trab", false) end, 10000, 1) end end addEventHandler ("onVehicleExit", root, NSPode) function SNPode (source) if (cam[source]) and isElement(cam[source]) then killTimer (T11) killTimer (T22) killTimer (T33) killTimer (T44) end end addEventHandler ("onVehicleEnter", root, SNPode)
  15. I have a problem in my script the mission at the time of outputchatbox flooda chat of other mission / = local MarkTrab = createMarker(1809.78833 ,-1433.85901 ,12.42969,"cylinder", 6, 255, 0, 0, 255) local MarkChego = createMarker(2476.71704, -1055.81750 ,65.56454, "cylinder", 6, 255, 0, 0, 255) local MyBlip = createBlip (1809.78833 ,-1433.85901 ,13.42969,26) cam = {} blipxxx = {} function TrabBus (source) local account = getAccountName (getPlayerAccount(source)) local x,y,z = getElementPosition(source) if (getElementData(source, "Trab", true)) then outputChatBox ("#FF0000Você já esta Em uma missao.", source, 255, 255, 255, true) return end cam[source] = createVehicle (587,1798.34216 ,-1430.41675 ,13.42272) setElementRotation(cam[source], 0,0,90) warpPedIntoVehicle (source, cam[source]) aclGroupAddObject (aclGetGroup("Truck"), "user."..account) blipxxx[source] = createBlip (2476.71704, -1055.81750 ,66.56454) setElementData(source, "Trab", true) outputChatBox(" ") outputChatBox(" ") outputChatBox("#ff00ff=========================MISSAO=============================", source, 255, 255, 255, true) outputChatBox("#00FF9E--Leve o carro até a bandeira vermelha.", source, 255, 255, 255, true) outputChatBox("#00FF9E--Voce ganhara 12.000 R$ pra fazer esta viagem.", source, 255, 255, 255, true) outputChatBox("#00FF9E--para sair da missao digite /sairmissao.",source, 255, 255, 255, true) outputChatBox("#FF0000--se sair do carro voce fracassara a missao :)",source, 255, 255, 255, true) outputChatBox("#ff00ff============================MISSAO===========================",source, 255, 255, 255, true) outputChatBox(" ") outputChatBox(" ") end addEventHandler ("onMarkerHit", MarkTrab, TrabBus) function rreem (source) local accounat = getAccountName (getPlayerAccount(source)) aclGroupRemoveObject (aclGetGroup("Truck"), "user."..accounat) outputChatBox ('#ffff00* Valter: #ffffffVoce desistiu da missao.',source,255,255,255,true) setPedSkin (source,0) destroyElement(cam[source]) setElementData(source, "Trab", false) end addCommandHandler("sairmissao",rreem) function TrabBusChego (source) if cam[source] and isElement(cam[source]) and getElementData (source, "Trab", true) then destroyElement (blipxxx[source]) destroyElement (cam[source]) local accounat = getAccountName (getPlayerAccount(source)) aclGroupRemoveObject (aclGetGroup("Truck"), "user."..accounat) setElementData(source, "Trab", false) givePlayerMoney (source, 12000) outputChatBox( '#ffffffMISSAO COMPLETA +12MIl.',source,255,255,255,true) setPedSkin (source,0) setElementData(source, "Trab", false) end end addEventHandler ("onMarkerHit", MarkChego, TrabBusChego) function NSPode (source) if (cam[source]) and isElement(cam[source]) then outputChatBox ('#FF5100* #ffffffVocê tem #FF510010 #ffffffsegundos parar voltar para o Carro.', source, 255, 255, 255, true) T11 = setTimer (destroyElement, 10000,1, blipxxx[source]) T22 = setTimer (destroyElement, 10000,1, cam[source]) T33 = setTimer (setElementData, 10000,1, source, "Trab", false) T44 = setTimer (function() Trabalho = false setPedSkin (source,0) outputChatBox ('#FF5100* #ffffffVocê ficou muito tempo fora do veiculo e fracasso a missao!.', source, 255, 255, 255, true) setElementData(source, "Trab", false) end, 10000, 1) end end addEventHandler ("onVehicleExit", root, NSPode) function SNPode (source) if (cam[source]) and isElement(cam[source]) then killTimer (T11) killTimer (T22) killTimer (T33) killTimer (T44) end end addEventHandler ("onVehicleEnter", root, SNPode)
  16. MaRcell

    bugs mission

    good my mission system appeared some bugs like the player makes the mission and not earn money and not the xp anyone help me? -- server local playerMission1 = nil -- jogador da missao local markerMission = createMarker(2500.74951, -1674.49402, 12.35166,"cylinder", 2, 255, 0, 0, 255) -- pode continuar kk local blipMission1 = createBlip (2500.74951 ,-1674.49402, 13.35166 ,15) local blipDestination1 = nil local botPrincipal1 = nil local botMissionTeam = createTeam("botMissionTeam",0,0,0) function onMarkerMissionHit(Element) local t = getElementType(Element) if(t == "player" and playerMission1 == nil)then playerMission = Element outputChatBox("#ffffff[MISSAO] mate o chefe dos ballas.",playerMission1,255,255,255,true) blipDestination1 = createBlip(2324.74756, -1532.23267, 25.34375)---pronto botPrincipal1 = exports [ "slothBot" ]:spawnBot(2289.10254 ,-1528.64917 ,26.87500,90,104,0,0,botMissionTeam,31,"guarding") addEventHandler("onPedWasted",botPrincipal1,onPedWasted) addEventHandler("onPlayerWasted",playerMission1,PlayerPrincipalPerde) addEventHandler("onPlayerQuit",playerMission1,PlayerPrincipalPerde) for i=1,4 do randomBot = exports [ "slothBot" ]:spawnBot(2289.10254+math.cos(math.rad(math.random(0,360)))*math.random(-3,3),-1528.64917+math.sin(math.rad(math.random(0,360)))*math.random(-3,3),29.87500,90,103,0,0,botMissionTeam,31,"hunting") setElementData(randomBot,"botMissionKill",true) end end end addEventHandler("onMarkerHit",markerMission,onMarkerMissionHit) -- n exatamente faltas coisa tanto no blips quanto o marker function onPedWasted() -- quando o bot principal morrer o que acontece? givePlayerMoney (playerMission1, 20000) exports.Manawydan_expSystem:addPlayerExp(playerMission,10)-- da 50 de exp outputChatBox('#ffffffMISSAO COMPLETA +20MIl.',playerMission1,255,255,255,true) destroyElement(blipDestination1) blipDestination1 = nil removeEventHandler("onPedWasted",botPrincipal1,onPedWasted) -- pode ser denecessario removeEventHandler("onPlayerWasted",playerMission1,PlayerPrincipalPerde) removeEventHandler("onPlayerQuit",playerMission1,PlayerPrincipalPerde) playerMission1 = nil MatarBotsVivos() end function PlayerPrincipalPerde() outputChatBox("missao fracassada voce morreu",playerMission1) removeEventHandler("onPedWasted",botPrincipal1,onPedWasted) removeEventHandler("onPlayerWasted",playerMission1,PlayerPrincipalPerde) removeEventHandler("onPlayerQuit",playerMission1,PlayerPrincipalPerde) destroyElement(blipDestination1) blipDestination1 = nil playerMission1 = nil MatarBotsVivos() end function MatarBotsVivos() if(botPrincipal1 and isElement(botPrincipal))then destroyElement(botPrincipal1) end -- destruir bot se exitir local allPeds = getElementsByType("ped") -- pega todos os peds for k,v in ipairs (allPeds) do if(getElementData(v,"botMissionKill"))then -- checa se tem a data da missao destroyElement(v) -- destroi eles end end botPrincipal1 = nil end
  17. MaRcell

    Mission time

    I have a mission system , to put a time so that the player can make the mission on 1 and 1 day -- server local playerMission = nil -- jogador da missao local markerMission = createMarker(2500.74951, -1674.49402, 12.35166,"cylinder", 2, 255, 0, 0, 255) -- pode continuar kk local blipMission = createBlip (2500.74951 ,-1674.49402, 13.35166 ,15) local blipDestination = nil local botPrincipal = nil local botMissionTeam = createTeam("botMissionTeam",0,0,0) function onMarkerMissionHit(Element) local t = getElementType(Element) if(t == "player" and playerMission == nil)then playerMission = Element outputChatBox("Va ate a bandeira vermelha mata uns bot") blipDestination = createBlip(2324.74756, -1532.23267, 25.34375)---pronto botPrincipal = exports [ "slothBot" ]:spawnBot(2289.10254 ,-1528.64917 ,26.87500,90,104,0,0,botMissionTeam,31,"guarding") addEventHandler("onPedWasted",botPrincipal,onPedWasted) addEventHandler("onPlayerWasted",playerMission,PlayerPrincipalPerde) addEventHandler("onPlayerQuit",playerMission,PlayerPrincipalPerde) for i=1,4 do randomBot = exports [ "slothBot" ]:spawnBot(2289.10254+math.cos(math.rad(math.random(0,360)))*math.random(-3,3),-1528.64917+math.sin(math.rad(math.random(0,360)))*math.random(-3,3),29.87500,90,103,0,0,botMissionTeam,31,"hunting") setElementData(randomBot,"botMissionKill",true) end end end addEventHandler("onMarkerHit",markerMission,onMarkerMissionHit) -- n exatamente faltas coisa tanto no blips quanto o marker function onPedWasted() -- quando o bot principal morrer o que acontece? givePlayerMoney (playerMission, 20000) exports.Manawydan_expSystem:addPlayerExp(playerMission,10)-- da 50 de exp outputChatBox( '#ffffffMISSAO COMPLETA +20MIl.',playerMission,255,255,255,true) destroyElement(blipDestination) blipDestination = nil removeEventHandler("onPedWasted",botPrincipal,onPedWasted) -- pode ser denecessario removeEventHandler("onPlayerWasted",playerMission,PlayerPrincipalPerde) removeEventHandler("onPlayerQuit",playerMission,PlayerPrincipalPerde) playerMission = nil MatarBotsVivos() end function PlayerPrincipalPerde() outputChatBox("missao fracassada voce morreu",playerMission) removeEventHandler("onPedWasted",botPrincipal,onPedWasted) removeEventHandler("onPlayerWasted",playerMission,PlayerPrincipalPerde) removeEventHandler("onPlayerQuit",playerMission,PlayerPrincipalPerde) destroyElement(blipDestination) blipDestination = nil playerMission = nil MatarBotsVivos() end function MatarBotsVivos() if(botPrincipal and isElement(botPrincipal))then destroyElement(botPrincipal) end -- destruir bot se exitir local allPeds = getElementsByType("ped") -- pega todos os peds for k,v in ipairs (allPeds) do if(getElementData(v,"botMissionKill"))then -- checa se tem a data da missao destroyElement(v) -- destroi eles end end botPrincipal = nil end
  18. MaRcell

    [HELP]

    not to anything error in / debugscript 3
  19. MaRcell

    [HELP]

    still dying and leaving the gang / =
  20. MaRcell

    [HELP]

    add in my gang system?
  21. MaRcell

    [HELP]

    the problem will be that you can ta in gamemode play ?
  22. MaRcell

    [HELP]

    I'm good with a problem with my gang system when the player dies he leaves the gang someone could help ? function criarGang ( source, commandName, teamName ) local getaMoney = getPlayerMoney (source) if teamName then if getaMoney <400000 then outputChatBox("#F4A460[sERVER]#F08080 Você não tem dinheiro suficiente para criar uma gang Valor 4.000$",source,255,255,255,true) else if ( getPlayerTeam(source) ~= false ) and ( countPlayersInTeam(getPlayerTeam(source)) == 1 ) then destroyElement(getPlayerTeam(source)) outputChatBox("#F4A460[sERVER]#F08080 Sua gang antiga foi deletada e foi criada uma nova!",source,255,255,255,true) end local newTeam = createTeam ( teamName) if newTeam then takePlayerMoney (source,400000 ) local getGang = getTeamName ( newTeam ) setTeamColor (newTeam,math.random(0,255), math.random(0,255), math.random(0,255)) setPlayerTeam ( source, newTeam ) local playerTeam = getPlayerTeam( source ) outputChatBox("#F4A460[sERVER]#F08080 Gang criada com sucesso!! Valor 4.000$",source, 255, 255, 255, true) end end else outputChatBox("#F4A460[sERVER]#F08080 Uso correto: /fundargang [nome]",source,255,255,255,true) end end addCommandHandler("fundargang",criarGang) addEventHandler("onPlayerLogin",root,function() local team = getAccountData (getPlayerAccount(source), "team") if (team==getTeamName(getTeamFromName(team))) then setPlayerTeam(source, getTeamFromName(team)) end end) addEventHandler("onPlayerLogin",root,function() local team = getAccountData (getPlayerAccount(source), "team") if (team==getTeamName(getTeamFromName(team))) then setPlayerTeam(source, getTeamFromName(team)) end end) function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if not isGuestAccount(account) then if(team)then setAccountData(account, "team", getTeamName(team)) end end end addEventHandler("onPlayerLogout", root, save) addEventHandler("onPlayerQuit", root, save) function sairDaGang(source) local playerTeam = getPlayerTeam (source) if (playerTeam) then setPlayerTeam (source, nil) outputChatBox("#F4A460[sERVER]#F08080 Você saiu da gang",source,255,255,255,true) else outputChatBox("#F4A460[sERVER]#F08080 Você não tem gang",source,255,255,255,true) end end addCommandHandler("abandonargang", sairDaGang) function desfazerGang (source) local playerVeri = getPlayerTeam (source) if (playerVeri) then destroyElement (playerVeri) outputChatBox("#F4A460[sERVER]#F08080 Você deletou sua gang",source,255,255,255,true) else outputChatBox("#F4A460[sERVER]#F08080 Você não tem gang",source,255,255,255,true) end end addCommandHandler("deletargang", desfazerGang) function enviarGang(source,cmd,targetPlayer) local target = getPlayerFromName (targetPlayer) local geta = getPlayerName (target) gang = getPlayerTeam (source) local getName = getTeamFromName(source) lala = getTeamName(source) local convidado = true setElementData(target, "gangConvite", gang, false) if gang == getName then outputChatBox("#F4A460[sERVER]#F08080 Você não pertence a nenhuma gang",source, 255, 255, 255, true) else outputChatBox("#F4A460[sERVER]#F08080 Convite de recrutamento enviado para "..targetPlayer,source, 255, 255, 255, true) outputChatBox("#F4A460[sERVER]#F08080 Você foi convidado para o recrutamento digite /aceitargang Gang: "..getTeamName(gang),target, 255, 255, 255, true) end end addCommandHandler("recrutargang", enviarGang) function Recrutamento(source) local gangConvite = getElementData(source, "gangConvite") if isElement(gangConvite) then outputChatBox("#F4A460[sERVER]#F08080 Você entrou na gang "..getTeamName(gang),source, 255, 255, 255, true) setPlayerTeam (source, gangConvite) else outputChatBox("#F4A460[sERVER]#F08080 Você não foi convidado para nenhuma gang",source, 255, 255, 255, true) end end addCommandHandler("aceitargang",Recrutamento)
×
×
  • Create New...