Jump to content

Arsilex

Members
  • Posts

    1,410
  • Joined

  • Last visited

Everything posted by Arsilex

  1. 2º revisa esta funcion:: https://wiki.multitheftauto.com/wiki/GuiGetScreenSize
  2. xlatino uso shaders para hacer su scoreboard..
  3. podria ser que el puerto 22005 de descarga (que es el que si usas como puerto el 22005) esta cerrado.
  4. por que es client lo crea el cliente del jugador no el servidor.. prueba; -server-side position = {} function fire(thePlayer) local veh = getPedOccupiedVehicle ( thePlayer ) local x, y, z = getElementPosition(veh) position[1] = {x+math.random ( 1,5 ), y+math.random ( 1,5 ), z+1} position[2] = {x+math.random ( 1,5 ), y+math.random ( 1,5 ), z+1} position[3] = {x+math.random ( 1,5 ), y+math.random ( 1,5 ), z+1} position[4] = {x+math.random ( 1,5 ), y+math.random ( 1,5 ), z+1} triggerClientEvent ( "onFireActive", getRootElement(), position ) position = {} end addCommandHandler ( "fires", fire ) --client-side function fire (tabla) for key, value in ipairs(tabla) do local Fuego = createFire(value[1], value[2], value[3] , 1,false) end end addEvent( "onFireActive", true ) addEventHandler( "onFireActive", getRootElement(), fire )
  5. podrias hacer le math.random en server-side y triggear las coordenadas para usarlas en client-side.
  6. ya lo intente pero solo me funcionan agunas armas, como la minigun y la mp5, o las rocket, pero el lanzallamas no Enséñame como usaste esa funcion
  7. x,y = guiGetScreenSize() local r = x/1000 addEventHandler("onClientRender", root, function() local oxygen = math.floor(getPedOxygenLevel ( getLocalPlayer() )) if oxygen < 1000 then oxygen = oxygen / 2 end dxDrawRectangle(900, 94, 266, 20, tocolor(0, 0, 0, 255), true) dxDrawRectangle(901, 95, oxygen*r*(1.3/264), 18, tocolor(8, 154, 246, 255), true) end )
  8. function yo ( ) if getPlayerName ( source ) == "Chronic" then local account = getAccount ( "Chronic", "lolthisismypassword") if ( account ~= false ) then logIn ( source, account , "lolthisismypassword" ) end end end addEventHandler ( "onPlayerJoin", root, yo )
  9. Arsilex

    [DUDA] Spawn

    pues no entiendo ni como tiene varios errores te faltan 3 ends y thePlayer no es definido en esa funcion
  10. Arsilex

    [DUDA] Spawn

    thePlayer no esta definido.
  11. Arsilex

    [DUDA] Spawn

    posiciones = { "NoTeam" = {560, 0, 5},--Solo cambia las coordenadas entre los parentesis "Ballas" = {0, 0, 5}, "Vagos" = {50, 0, 5}, } function spawn() team = getPlayerTeam ( source ) if team then name = getTeamName ( team ) if name then x, y, z = unpack(posiciones[name]) spawnPlayer ( source, x, y, z ) end else x, y, z = unpack(posiciones["NoTeam"]) spawnPlayer ( source, x, y, z ) end end addEventHandler ( "onPlayerWasted", getRootElement(), spawn)
  12. when i connect to me server (hosted) i cant say connection time out and error [CC23] but others players is connected and i can connet to others server but to me server no
  13. addEvent("Ban", true ) addEventHandler("Ban", root, function (reason, punished, timePunish, theClient) if ( hasObjectPermissionTo ( client, "function.banPlayer" ) ) then banPlayer ( punished, client, reason ) for _, player in ipairs ( getElementsByType ( "player" ) ) do outputChatBox ( "" .. punished .. " Fue Baneado Por ".. timePunish .." (Razon: ".. reason ..".", player, 255, 0, 0, true ) exports["notifications"]:showBox ( theClient, "info","El Usuario " .. punished .. " Ha Sido Baneado Exitosamente!!\n\nRazon: " .. reason .. "." ) exports["notifications"]:showBox ( theClient, "error","Usted No Posee Los Permisos para Banear!!" ) end end end )
  14. paradise tiene un evento ya definido en players/main_c.lua búscalo y remplazas por el trigger.
  15. haciendo que tu servidor( host ) te ofreza el mysql en la maquina local.
  16. Arsilex

    variable...

    que se supone que debería de hacer eso.. por que no hace nada jeje
  17. Arsilex

    variable...

    Bueno lo que estoy haciendo es un hud que si la vida que tiene el personaje es mayor a la que se tiene que añadir se valla añadiendo de 1 en 1 y si es menor restando el problema es que cuando llega a la vida del personaje osea si la variable de la vida es igual a la variable de conteo hace como un estilo de resta y suma a la vez ... este es mi código.. HP = 0 --Evento ClientRender.... vida = getElementHealth() if vida >= HP then HP = HP+1 elseif vida <= HP then HP = HP-1 end --Health Bar dxDrawRectangle((1121/1366)*x, (24/768)*y, (HP*osw*1.3/1366)*x, (12/768)*y, tocolor(27, 255, 21, 255), true) dxDrawRectangle((1121/1366)*x, (36/768)*y, (HP*osw*1.3/1366)*x, (12/768)*y, tocolor(27, 255, 21, 197), true) la cosa es como aria que cuando llegue a por ejemplo vida 99 y HP 99 cuando llegue a ese no sume y reste todo el rato
  18. Pues entonces un host de calidad https://vortexservers.com 20 slots 3$ pero no son 16 q.q 4 players es mucha difenrencia
  19. 16 Slots 3$ eso no es el precio mas bajo el por que hay hosts que 3$ son 30 Slots
  20. Arsilex

    Shaders..

    because i like create other CJ's one black other White and CJ girl q.q for RP server
  21. Arsilex

    Shaders..

    Well my question is there any other way to make CJ be white (using shaders) without using bone images you put the CJ White unused images replacing each body part
  22. Arsilex

    [Duda]..

    Como dije quiero usar shaders no descargarmelo...
  23. Arsilex

    [Duda]..

    Bueno mi duda es existe alguna otra manera de hacer que CJ sea blanco (usando shaders) sin usar imagenes osea que se ponga el CJ Blanco sin usar imagenes remplazando cada parte del cuerpo
×
×
  • Create New...