Jump to content

PhantomDamn

Members
  • Posts

    381
  • Joined

  • Last visited

Everything posted by PhantomDamn

  1. Se ve bueno el proyecto, ojala te salga como esperas.
  2. Hahahaha Nice script and website
  3. Hola alguna ayuda.. esta bien esto? gang_Area = {} gang_Col = {} gang_Area["ESP"] = createRadarArea(2439.6716308594, -1719.4598388672, 200, 200, 0, 179, 4, 175) gang_Col["ESP"] = createColRectangle(2439.6716308594, -1719.4598388672, 200, 200) gang_Area["LPS"] = createRadarArea(2130.5749511719, -1832.2039794922, 200, 200, 211, 0, 174, 175) gang_Col["LPS"] = createColRectangle(2130.5749511719, -1832.2039794922, 200, 200) gang_Area["[sIDA]"] = createRadarArea(1827.0545654297, -1748.1649169922, 200, 200, 0, 219, 222, 175) gang_Col["[sIDA]"] = createColRectangle(1827.0545654297, -1748.1649169922, 200, 200) gang_Area["COD"] = createRadarArea(1379.3989257813, -1746.2264404297, 200, 200, 0, 100, 149, 237) gang_Col["COD"] = createColRectangle(1379.3989257813, -1746.2264404297, 200, 200) gangZone = {} gangZone["ESP"] = "ESP" gangZone["LPS"] = "LPS" gangZone["[sIDA]"] = "[sIDA]" gangZone["COD"] = "COD" WarsGangZone = {} WarsGangZone["ESP"] = {} WarsGangZone["ESP"]["LPS"] = 0 WarsGangZone["ESP"]["[sIDA]"] = 0 WarsGangZone["ESP"]["COD"] = 0 WarsGangZone["ESP"]["ESP"] = 0 WarsGangZone["LPS"] = {} WarsGangZone["LPS"]["ESP"] = 0 WarsGangZone["LPS"]["[sIDA]"] = 0 WarsGangZone["LPS"]["COD"] = 0 WarsGangZone["LPS"]["LPS"] = 0 WarsGangZone["[sIDA]"] = {} WarsGangZone["[sIDA]"]["ESP"] = 0 WarsGangZone["[sIDA]"]["LPS"] = 0 WarsGangZone["[sIDA]"]["COD"] = 0 WarsGangZone["[sIDA]"]["[sIDA]"] = 0 WarsGangZone["COD"] = {} WarsGangZone["COD"]["ESP"] = 0 WarsGangZone["COD"]["LPS"] = 0 WarsGangZone["COD"]["[sIDA]"] = 0 WarsGangZone["COD"]["COD"] = 0 function PlayerGangWasted(ammo, attacker, weapon, bodypart) local sourceTeam = getPlayerTeam(source) local sourceTeamName = getTeamName(sourceTeam) if attacker and (attacker ~= source) then if (getElementType(attacker) == "player") then attackerTeam = getPlayerTeam(attacker) attackerTeamName = getTeamName(attackerTeam) if attackerTeamName ~= sourceTeamName then if (isElementWithinColShape(attacker, gang_Col[sourceTeamName])) then if (WarsGangZone[attackerTeamName][sourceTeamName] < 3) then destroyWarsGangZoneStats(attackerTeamName, sourceTeamName) WarsGangZone[attackerTeamName][sourceTeamName] = WarsGangZone[attackerTeamName][sourceTeamName]+1 if (WarsGangZone[attackerTeamName][sourceTeamName] == 1) then outputChatBox("bla bla"..getPlayerName(attacker).." bla "..attackerTeamName.." bla bla bla "..sourceTeamName.."!", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[sourceTeamName], true) setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName) end elseif (WarsGangZone[attackerTeamName][sourceTeamName] == 3) then WarsGangZone[attackerTeamName][sourceTeamName] = 4 r, g, b = getTeamColor(attackerTeam) setRadarAreaColor(gang_Area[sourceTeamName], r, g, b, 175) outputChatBox(" "..attackerTeamName.." "..sourceTeamName.."", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[sourceTeamName], false) gangZone[sourceTeamName] = attackerTeamName end elseif (isElementWithinColShape(attacker, gang_Col[attackerTeamName])) then if gangZone[attackerTeamName] ~= attackerTeamName then if (WarsGangZone[attackerTeamName][attackerTeamName] < 3) then destroyWarsGangZoneStats(attackerTeamName, attackerTeamName) WarsGangZone[attackerTeamName][attackerTeamName] = WarsGangZone[attackerTeamName][attackerTeamName] + 1 if (WarsGangZone[attackerTeamName][attackerTeamName] == 1) then setRadarAreaFlashing(gang_Area[attackerTeamName], true) outputChatBox("#FF3300[Damn]: "..getPlayerName(attacker).." èç "..attackerTeamName.." Bla bla bla!", getRootElement(), 0, 0, 0,true) setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName) end elseif (WarsGangZone[attackerTeamName][attackerTeamName] == 3) then WarsGangZone[attackerTeamName][attackerTeamName] = 4 r, g, b = getTeamColor(attackerTeam) setRadarAreaColor(gang_Area[attackerTeamName], r, g, b, 175) outputChatBox("#FF3300[PDamn]: "..attackerTeamName.." bla bla bla!", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[attackerTeamName], false) gangZone[attackerTeamName] = attackerTeamName end end end end end end end addEventHandler("onPlayerWasted", getRootElement(), PlayerGangWasted)
  4. Gracias, esto es muy util. Gracias por los links, me serviran mucho.
  5. cuando creo un script desde 0 y como hago para saber el orden exacto ... por ejemplo que se escribe primero? la funcion? despues los argumentos? eventos? ....
  6. Gracias por la ayuda.. esto no lo sabia ----- En el caso del else y elseif no cuenta?
  7. siempre he tenido problema con los "end" a veces pongo uno de mas o uno de menos.
  8. ahora mismo lo tengo en server.. no me habia fijado en la meta y estaba antes en cliente pero en cliente el debug mostraba directamente error
  9. linea 3 mal argumento "setElementData"
  10. it not works... chatbox is ok, but no reset score...
  11. Que trae la nueva version ? He visto el nuevo boton en el panel admin "detail" pero no le veo nunguna funcion.
  12. Hola quiero hacer que las turf funcionen por numeros de kill para los clanes y no por setTimer... podria usar PlayerGangWasted para esto? EDITADO: encontre esto es mis archivos viejos: gang_Area = {} gang_Col = {} gang_Area["ESP"] = createRadarArea(2439.6716308594, -1719.4598388672, 200, 200, 0, 179, 4, 175) gang_Col["ESP"] = createColRectangle(2439.6716308594, -1719.4598388672, 200, 200) gang_Area["LPS"] = createRadarArea(2130.5749511719, -1832.2039794922, 200, 200, 211, 0, 174, 175) gang_Col["LPS"] = createColRectangle(2130.5749511719, -1832.2039794922, 200, 200) gang_Area["Aztec"] = createRadarArea(1827.0545654297, -1748.1649169922, 200, 200, 0, 219, 222, 175) gang_Col["Aztec"] = createColRectangle(1827.0545654297, -1748.1649169922, 200, 200) gang_Area["COD"] = createRadarArea(1379.3989257813, -1746.2264404297, 200, 200, 0, 100, 149, 237) gang_Col["COD"] = createColRectangle(1379.3989257813, -1746.2264404297, 200, 200) gangZone = {} gangZone["ESP"] = "ESP" gangZone["LPS"] = "LPS" gangZone["Aztec"] = "Aztec" gangZone["COD"] = "COD" WarsGangZone = {} WarsGangZone["ESP"] = {} WarsGangZone["ESP"]["LPS"] = 0 WarsGangZone["ESP"]["Aztec"] = 0 WarsGangZone["ESP"]["COD"] = 0 WarsGangZone["ESP"]["ESP"] = 0 WarsGangZone["LPS"] = {} WarsGangZone["LPS"]["ESP"] = 0 WarsGangZone["LPS"]["Aztec"] = 0 WarsGangZone["LPS"]["COD"] = 0 WarsGangZone["LPS"]["LPS"] = 0 WarsGangZone["Aztec"] = {} WarsGangZone["Aztec"]["ESP"] = 0 WarsGangZone["Aztec"]["LPS"] = 0 WarsGangZone["Aztec"]["COD"] = 0 WarsGangZone["Aztec"]["Aztec"] = 0 WarsGangZone["COD"] = {} WarsGangZone["COD"]["ESP"] = 0 WarsGangZone["COD"]["LPS"] = 0 WarsGangZone["COD"]["Aztec"] = 0 WarsGangZone["COD"]["COD"] = 0 function PlayerGangWasted(ammo, attacker, weapon, bodypart) local sourceTeam = getPlayerTeam(source) local sourceTeamName = getTeamName(sourceTeam) if attacker and (attacker ~= source) then if (getElementType(attacker) == "player") then attackerTeam = getPlayerTeam(attacker) attackerTeamName = getTeamName(attackerTeam) if attackerTeamName ~= sourceTeamName then if (isElementWithinColShape(attacker, gang_Col[sourceTeamName])) then if (WarsGangZone[attackerTeamName][sourceTeamName] < 3) then destroyWarsGangZoneStats(attackerTeamName, sourceTeamName) WarsGangZone[attackerTeamName][sourceTeamName] = WarsGangZone[attackerTeamName][sourceTeamName]+1 if (WarsGangZone[attackerTeamName][sourceTeamName] == 1) then outputChatBox("bla bla"..getPlayerName(attacker).." bla "..attackerTeamName.." bla bla bla "..sourceTeamName.."!", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[sourceTeamName], true) setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName) end elseif (WarsGangZone[attackerTeamName][sourceTeamName] == 3) then WarsGangZone[attackerTeamName][sourceTeamName] = 4 r, g, b = getTeamColor(attackerTeam) setRadarAreaColor(gang_Area[sourceTeamName], r, g, b, 175) outputChatBox(" "..attackerTeamName.." "..sourceTeamName.."", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[sourceTeamName], false) gangZone[sourceTeamName] = attackerTeamName end elseif (isElementWithinColShape(attacker, gang_Col[attackerTeamName])) then if gangZone[attackerTeamName] ~= attackerTeamName then if (WarsGangZone[attackerTeamName][attackerTeamName] < 3) then destroyWarsGangZoneStats(attackerTeamName, attackerTeamName) WarsGangZone[attackerTeamName][attackerTeamName] = WarsGangZone[attackerTeamName][attackerTeamName] + 1 if (WarsGangZone[attackerTeamName][attackerTeamName] == 1) then setRadarAreaFlashing(gang_Area[attackerTeamName], true) outputChatBox("#FF3300[Damn]: "..getPlayerName(attacker).." èç "..attackerTeamName.." Bla bla bla!", getRootElement(), 0, 0, 0,true) setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName) end elseif (WarsGangZone[attackerTeamName][attackerTeamName] == 3) then WarsGangZone[attackerTeamName][attackerTeamName] = 4 r, g, b = getTeamColor(attackerTeam) setRadarAreaColor(gang_Area[attackerTeamName], r, g, b, 175) outputChatBox("#FF3300[PDamn]: "..attackerTeamName.." bla bla bla!", getRootElement(), 0, 0, 0,true) setRadarAreaFlashing(gang_Area[attackerTeamName], false) gangZone[attackerTeamName] = attackerTeamName end end end end end end end addEventHandler("onPlayerWasted", getRootElement(), PlayerGangWasted) si esto funcionase, creo que me tocaria agregar a cada gang dentro del script.
  13. Si claro.. la posZ puedes calcularla.... si la pos del freeroam te da 11 metros simplemente pone 0 - 51 metros.. agregale 40 metros adicional a la posicion maxima de altura, es muy sencillo. o si quiere que se capturen las zonas a cualquier altura que le ponga 1.000 y listo asi se rompe menos la cabeza. ----- ahora entiendo a que te refieres.. las dos primeras son de la ubicacion y las otras dos de la anchura... si tienes razon es dificil que queden las Colshape bien ubicadas unas con las otras... concuerdo con lo del recurso.
  14. El panel freeroam tambn es util para esto... el freeroam en la opcion "map"tienes las 3 posiciones. saludos
  15. PhantomDamn

    Hola.

    Tienes dos preguntas en una; la primera es como hacer "scripts" bueno te recomiendo que visites la wiki y aprendas algunas funciones basicas Por la segunda pregunta sobre hacer misiones la resolveras cuando aprendas algo. Saludos.
  16. Jajajajaja AlvareZ puto The Gang Colombia Wars era mi server PD: lo de puto es en juego.
  17. http://www.multitheftauto.com/hosters/ ahi tienes muchas empresas... o si tienes limitaciones de pago te recomiendo sawhost.net como dice alexs.. son buenos hosting e incluso tengo un servidor ahi y estoy pensando en comprar dos meses el lunes ( son muy baratos ).
  18. Copialo el BBcode: http://www.game-state.eu/192.3.104.138:22364/banner/
  19. Se ve genial.. tengo rato que no juego racer pasare a verlo! PD: cambia tu barnner se ve feo -------------------- editado: te recomiendo un respawn fixed para los vehiculos!
×
×
  • Create New...