-
Posts
2,869 -
Joined
-
Last visited
Everything posted by Alexs
-
Hola a Todos, acababa el spawn de Paintball y queria saber si esto deberia funcionar: function getDefinitions( startedMap ) local mapRoot = getResourceRootElement( startedMap ) local spawnred = getElementsByType ( "spawnred" , mapRoot ) local spawnblue = getElementsByType ( "spawnblue" , mapRoot ) for key, rojo in pairs( spawnred ) do posr = getElementData ( rojo, "position" ) rotred = getElementData ( rojo, "rotation" ) insert.table(posred, posr) end for key, azul in pairs( spawnblue ) do posb = getElementData ( azul, "position" ) rotblue = getElementData ( azul, "rotation" ) insert.table(posblue, posb) end for teamr, rojos in pairs ( getPlayersInTeam ( Rojos )) do spawnPlayer(rojos,math.random(#posred),rotred,170) end for teamb, azules in pairs ( getPlayersInTeam ( Blue )) do spawnPlayer(azules,math.random(#posblue),rotblue,188) end end addEventHandler("onGamemodeMapStart", getRootElement(), getDefinitions) El caso es que hay muchos elementos de "spawnred" y "spawnblue" y quiero que al comenzar el mapa spawneen aleatoriamente entre ellos ya que si no quedarian congelados uno en el otro, esto serviria para eso?
-
Tambien podes bindear todas las keys o algunas para que cuando las pulse se le retire el AFK
-
Hola a Todos, queria saber que funcion existe para contar el tiempo pasado entre el toque de un marcador y el toque de otro?
-
How many slots can this handle? mmm... you can use the domKVM 256, is faster and stable, and you can use 50+ slots
-
Son cobardes o es un bug del script?
-
Requesting a Board - Slovenian / Slovenski
Alexs replied to scratcher911's topic in General Multi Language discussion
Like a Rapper say: "El avance no es quitar avance es ofrecer opciones" i think the Subforum is a good idea -
function hunter() local hunter = createVehicle ( 425, 337.258790625, 1953.8022460938, 17.066425) moveObject(hunter, 1, 337.258790625, 1953.8022460938, 17.066428) -- no se nada del move object haci que si lo pueden acomodar end addEventHandler("onPlayerSpawn",getRootElement(),hunter) function destroy() if isElement ( hunter ) then destroyElement ( hunter ) end end addEventHandler("onResourceStart",getRootElement(),destroy) -- creo que hay funcionaria con el evento por que sin evento no creo que funke mucho setTimer(destroy, 1500, 1) Con lo del evento, si pusiste un temporizador no necesitas el evento, explicame que buscas y te ayudo mejor
-
Is true, the important is not the Max Players, is the Players Connected
-
getElementType y revisar si el tipo es "player" y tambien ponerlo en client evitara trolleos
-
Listo, usare getResourceInfo Problema terminado
-
KVM is good with MTA and the best OS is Windows Server, but this Host dont provide Windows License Source: [bOSS]-Samt2497
-
Quieres que el hunter se mueva al spawnear el jugador y que cuando el recurso se inicie (server) o el jugador se una (client) se congele y se destruya el hunter?
-
con ID, getElementID y setElementID
-
Ok, tus errores: el getElementdata esta de mas si no lo usas, la funcion esta mal usada, esto no tiene q ver con lo que quieres, Siga participando....
-
Como es normal en ti, genial mapa
-
No hay evento de cambio de dimension, aunq si toca un marcador o clickea un boton puedes agregar la funcion a eso
-
en la key del element data estas poniendo una function y no tienes nada q guardar ahi, no comprendo q deseas hacer
-
Agregame al Skype, si estoy en el PC estoy conectado y perdon era "bestial" no bestila
-
Perfecto, me encanta ver errores simples por que que vengan con un script de 200 lineas y me dicen "tengo error en un array" sin nada mas los mandare a la verga de manera bestila De Nada por lo del .map, igual me pasaba
-
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 ) si el PD es un error eso lo resuelve
-
Ok, dejemos el Off Topic, si no aceptas nuestra recomendacion de volver a comenzar para retomar conocimientos olvidados, no te ayudare con cosas mas complejas
-
Esto es bastante simple, Solid tiene razon, si no podes con algo tan basico vuelve al comienzo
-
Borrala del .map con el Map Editor
-
No, llegue y dije hare un post para joder a los users sin investigar antes si esto es posible o no, obvio q ya revise todo
