
Plate
Members-
Posts
938 -
Joined
-
Last visited
Everything posted by Plate
-
Funciona de 10 gracias a todos solid cerra el tema
-
Asi? local colshape = createColCuboid ( 103.88594818115, 1302.0729980469, 10.5859375, 220, 200, 60 ) zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados >= 50 ) then if ( not isElement ( slothbot ) ) then slothbot = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) outputChatBox("Testing") onZomieWasted = 30 local myBlip = createBlipAttachedTo ( slothbot, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) PD:Mato 50 zombies y si mato 51/52/53 spawnean 4
-
Ah muchas gracias PD: Lo del bot funciona pero spawnean 2 PD2: Estoy de acuerdo en lo de posponerlo
-
Pero si vos ya me pasastes lo que tengo que poner o solamente es un ejemplo?
-
Si ya se no entiendo nada de variables u.u pero que hay sobre la asistencia?
-
Creo que esto me servira para todo lo que are futuramente con esto gracias a todos los que me ayudaron otra cosa como creo la tabla de asistencia que me habias dicho PD: sigue spawneando cuando matas 1 zombie
-
Pero con que empieso pasame algunas paginas para estudiar
-
Comienzo ustedes lo entenderan simplemente pero yo no
-
Perdon solid pero cosas muy basicas se pueden llegar a hacer muy dificiles y no voy a dejar por que me lo digan depende a las personas es muy basico o muy dificil depende a en que se sentren mas
-
Ya lo lei y todabia no la entiendo tenes algun link de algun script en la comunidad para tomar de ejemplo
-
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) outputChatBox("Prueva 1") local myBlip = createBlipAttachedTo ( slothbot, 23 ) local zk = Zombie kills -- asi? if zk >= 30 then end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona )
-
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) outputChatBox("Prueva 1") local myBlip = createBlipAttachedTo ( slothbot, 23 ) local zk = onZombieWasted if zk >= 30 then end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona )
-
Ya se arreglo era un `problema con la posicion z pero solid el bot aparece cuando mato un zombie yo quisiera que por lo menos matenn 30 y aparesca
-
entro a la zona mato zombies pero el bot no spawnea
-
si quieres para grupo (ACL) usa isObjectInACLGroup onVehicleStartEnter aclGetGroup createVehicle -- yo uso esto para crear los vehiculos
-
No estamos hablando de la base este topic es sobre una zona para spawnear un bot osea que el jugador entre a una zona y mate zombies hasta que spawnee un bot
-
NOD eso que me pasastes lo agrego o remplazo el if ( isElementWithinColShape ( source, colshape ) ) then y sirve para lo que yo pedi ? o tengo que agregar mas cosas
-
Solid pero se ahora como aria para que spawnee cuando el player entra a la zona y se ponga a matar zombies ejemplo Jugador_x entra a esa zona aparecen zombies empiesa a matar zombies y de la nada aparece el bot se puede?
-
function zona() createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) end addEventHandler("onZombieWasted",getRootElement(),zona)
-
solamente esos no tengo que usar getElementData?
-
Hola!!!!!! a todos como podria hacer para crear un area donde las personas maten zombies y spawnee un bot se puede?
-
por que no pones start playerblips
-
sisi pero no hace lo que yo quiero que haga por que cuando alguien agrega a el otro un ejemplo yo agrego a EL_X enves de Plate agrego a EL_X a S.T.A.R.S aparece EL_X agrego a EL_X a S.T.A.R.S