Renkon
Members-
Posts
876 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Renkon
-
Prueba suprimiendo eso momentáneamente y sacando la muestra de la variable en el outputChatBox. Y dime si funciona así. me quedaría tranquilo
-
Revisa el DebugScript. Si nada sale quiere decir que el error se halla aquí: local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID Además, claro que no funcionará. Te retorna únicamente los vehicles. No creas que los vehicles a su vez son tablas con distintos atributos!. Hazme caso y bórralo al menos por ahora o dejalo en comentarios
-
Revisa que edité para que modifiques algo local vehicleID = vehicles[ vehicle ] and vehicles[ vehicle ].vehicleID a local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID
-
Puedes optar por local vehicleID = vehicles[ vehicle ] and vehicles[ vehicle ].vehicleID a local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID o simplemente... outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", player, 255, 255, 0 ) por... outputChatBox( " Coche " .. getElementModel(value) .. ".", getRootElement(), 255, 255, 0 ) ¿Para qué quieres el vehicle ID?
-
outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", player, 255, 255, 0 ) por outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", getRootElement(), 255, 255, 0 )
-
outputChatBox( " Coche " .. value .. " - Type: " .. tostring( vehicles ) .. ".", player, 255, 255, 0 ) por outputChatBox( " Coche " .. getElementModel(value) .. ".", player, 255, 255, 0 )
-
outputChatBox( " Coche " .. value .. " - Type: " .. tostring( vehicles ) .. ".", player, 255, 255, 0 ) cambia por outputChatBox( " Coche " .. value .. " - Type: " .. tostring( getElementModel (value) ) .. ".", player, 255, 255, 0 ) y tambien, getElementVehicle no existe... es getElementsByType("vehicle")
-
Revisa esto if isElement( key ) and getElementDimension( key ) == dimension and getElementVehicle( key ) == interior then local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( key ) ) y pon if isElement( value ) and getElementDimension( value ) == dimension and getElementVehicle( value ) == interior then local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( value ) )
-
local vehicles = getElementInterior( player ) local vehicles = getElementsByType("vehicle")
-
Hello fellas. I am having an issue right now at the moment. As you can see, DEATHMATCHIN position is fine above the radar. However, when resolution is different, it isn't!. I have tried many different ways such as using absolute and relative, using many other mathematical ecuations, but couldn't make it work correctly in all resolutions. Mine is 800x600, but at 1400x900, position's quite different.... Here's the code I have. local LabelInf1 = guiCreateLabel(sW/13, sH/1.4, 200, 50, "deathmatchin", false) guiLabelSetColor ( LabelInf1, 255, 255, 255 ) guiSetFont ( LabelInf1, Chino ) Would you mind explaining me how to make it exactly in the same position (or almost the same position) above the radar, centered? Thank you. In advance.
-
El evento correcto es OnClientResourceStart. Con este, se ejecutará cada vez que el usuario se conecta.
-
Maybe I do need. However, I don't get what you want 2 do by telling me that Spanish servers aren't successful. I can tell you that there are servers in lots of languages, such as arabic, polish, romanian, russian, that are famous. Spanish is one of the languages that doesn't have 'famous' servers. Why don't we try? lol
-
And? I know that, there are almost no spanish players. However, this is my project..
-
svrside addEvent ( "onSavePos", true ) addEventHandler ( "onSavePos", root, function ( localPlayer, x, y, z ) local newFile = fileCreate ( "poss.txt" ) if ( newFile ) then fileWrite ( newFile, "Tus Posicion es: ".. x ..", ".. y ..", ".. z ) fileClose ( newFile ) end end )
-
agregá en el function (x, y, z) que quede: function ( localPlayer, x, y,z )
-
lo habia escrito rapidamente. seria asi addEventHandler ( "onPlayerCommand", root, function( cd ) if ( cd == 'login' ) or ( cd == 'logout' ) then cancelEvent() end end ) verdad?
-
ahhhhhhh listo muchas gracias solid. eso no lo sabia seria un handler onPlayercommand y la funcion seria if cmd == login o logout entonces cancelamos el evento ok muchas gracias!
-
(perdon Solid pero agrego algo mas) Además, si esa es tu idea. Debes agregar primero dos removeCommandHandler con estos, login y logout. Y luego, con un if, como hiciste vos, que aparezca el mensaje. PEEERO!!!!, borras el cancelEvent.
-
No sería MUCHIIIIIIIIISIMO mas facil crear una string llamada estrellitaspolice Y usar clientsided el Wanted LEVEL? y segun el nivel estrellitaspolice seria igual a "*" o "**", etc?. Segundo, luego de eso si lo necesitas serverside lo puedes triggear Tercero.. Mota, te falta bastante lógica, y ser mas "limpio" y "organizado" con tus scripts.
-
If that's true, then.. some moderator.. please
-
aham. en vez de local autocupado = getVehicleOccupant (thePlayer) y pon local autocupado = getVehicleOccupant (thePlayer, 0)
-
puedes hacer entonces que cuando el chabon quiere entrar al auto revisas si ya hay uno, y entonces cancelas el evento. Si es posible usarlo
-
nono.. debes hacer entonces if jacker ~= dueño del auto y luego if antihack then cancelas el evento esto hara que si hay uno en el auto, y es distinto, pero hay conductor lo cancele. entiendes? Ese script hara que no puedas salir
-
Si. Detecta, porque devuelve el nombre del ocupante, y si no devuelva 'FALSE' por eso
