Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    Mail

    Tonix si quieres que te hagan un script hay 2 opciones : 1. Que te lo haga un amigo 2. Pagarle a un scripter para que lo haga c:
  2. como hacer un Infestation system de zombies ? que debo de utilizar ?
  3. function crearElBlip() if getElementDimension(source) == TUDIMENSION then createBlipAttachedTo(source,IDBlip) end end proba con eso. c:
  4. como cambiar la imagen de cuando apunto con la sniper ?
  5. addEventHandler ( "onPlayerWasted", getRootElement( ), function ( ) if not ( jugadoresEnDM [ source ] ) then local azar = math.random ( #posiciones ) local interior = getElementInterior ( source ) local skin = getElementModel ( source ) local x, y, z = unpack ( posiciones [ azar ] ) setTimer( spawnPlayer, 2000, 1, source, x, y, z,0, skin, interior ) end end ) Prueba con eso e.e alexs me robo la respuesta OkNo.
  6. iFoReX

    outputChatBox

    pusiste el parentesis Plate ?
  7. muchas gracias c: solo que creo que no se guarda el time
  8. como hacer un time online para que aparezca en scoreboard ? o de donde lo puedo descargar ?
  9. iFoReX

    Minigun

    y luego para que dispare : bindKey createProjectile c:
  10. Si, pero hay comprueba si el marker existe
  11. o tambien... GUIEditor_Image[1] = guiCreateStaticImage(1,314,250,184,"zombies.png",false) amarker = createMarker ( 222.19999694824, 1855.5999755859, 12.399999809265, "cylinder", 4, 255, 0, 0, 255) function armagui () if isElement(amarker) then colmarker = getElementColShape ( amarker ) local detection = isElementWithinColShape ( localPlayer, colmarker ) if detection then guiSetInputEnabled ( true) GUIEditor_Window[1] = guiCreateWindow(201,81,383,503,"Tienda de Armas",false) GUIEditor_Button[1] = guiCreateButton(18,68,339,41,"Ak-47 -- $5000",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(19,121,338,42,"M4 -- $6000",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(19,176,335,39,"Desert Eagle -- $3000",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(22,227,332,45,"Escopeta -- $4000",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(21,282,334,38,"Escopeta cortada -- $3500",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(24,332,327,33,"Escopeta de Guerra -- $6000",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(355,479,19,15,"X",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(20,459,250,22,"Tu dinero: ",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") end end end addCommandHandler ("comprar", armagui)
  12. iFoReX

    que esta mal ?

    Gracias funciona c:
  13. iFoReX

    que esta mal ?

    Solid pero es seria lo mismo o no ?
  14. iFoReX

    que esta mal ?

    argumento dar ? no entiendo
  15. iFoReX

    que esta mal ?

    addEvent("lool",true) addEventHandler("lool",root,function(getMonto,elPlayer) monto = getMonto Jugador = elPlayer end )
  16. no puedo encontrar el error en este script asi que quiera ver si ustedes me ayudaban. cl-side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.21,0.09,0.55,0.815,"GUI Dar Dinero",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(11,22,165,456,false,GUIEditor_Window[1]) col = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) GUIEditor_Label[1] = guiCreateLabel(274,106,36,17,"Monto",false,GUIEditor_Window[1]) GUIEditor_Edit[1] = guiCreateEdit(213,123,162,31,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(215,160,156,34,"Enviar",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) function addPlayers() local limpiada = guiGridListClear(GUIEditor_Grid[1]) if limpiada then for troll,lol in ipairs(getElementsByType("player")) do row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,col,getPlayerName(lol),false,false) end end end addEventHandler("onClientResourceStart",resourceRoot,addPlayers) addEventHandler("onClientPlayerJoin",root,addPlayers) addEventHandler("onClientPlayerQuit",root,addPlayers) addEventHandler("onClientPlayerChangeNick",root,addPlayers) bindKey("F2","down",function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor_Button[1] then local elPlayer = guiGridListGetItemText(GUIEditor_Grid[1],row,col) local getMonto = guiGetText(GUIEditor_Edit[1]) triggerServerEvent("lool",getLocalPlayer(),getMonto,elPlayer) triggerServerEvent("dar",getLocalPlayer()) end end ) sv-side addEvent("lool",true) addEventHandler("lool",root,function(getMonto,elPlayer) monto = getMonto Jugador = elPlayer end ) addEvent("dar",true) addEventHandler("dar",root,function() local money = getPlayerMoney(source) if money >= tonumber(monto) then local succesfely = givePlayerMoney(getPlayerFromName(Jugador),monto) local myMoney = getPlayerMoney(source) local restar = setPlayerMoney(source,myMoney-tonumber(monto)) if succesfely then outputChatBox("Dinero Enviado con exito a "..Jugador,source,255,255,255,true) outputChatBox(source..",Te ha enviado $"..monto.."",Jugador,255,255,255,true) outputChatBox(source.."le ha enviado [$"..monto.."] a"..Jugador,getRootElement(),255,255,255,true) end end end ) c:
  17. iFoReX

    What is bad ?

    client-side zKills = "-" Rank = "-" function hideIt(Kills,Ranks) zKills = Kills Rank = Ranks end addEvent("lolEvent",true) addEventHandler("lolEvent",root,hideIt) function draw() local x,y,z = getElementPosition(getLocalPlayer()) local city = getZoneName(x,y,z,true) dxDrawText("Ciudad : "..city,0.0,420.0,171.0,449.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Vida : "..getElementHealth(getLocalPlayer()),595.0,548.0,642.0,566.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Rango : "..tostring(Rank),536.0,499.0,656.0,516.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Zombie Kills :"..tostring(zKills),537.0,517.0,657.0,534.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) end addEventHandler("onClientRender",root,draw) sv.side function onZombieWasted(_,killer) if (killer) then if (getElementType(killer) == "player") and (getElementType(source) == "ped") then if (getElementData(source, "zombie") == true) then local account = getPlayerAccount(killer) if account and not isGuestAccount(account) then local Kills = getAccountData(account,"Zombie kills") local Ranks = getAccountData(account,"Rango") triggerClientEvent("lolEvent",killer,Kills,Ranks) end end end end end addEventHandler("onPedWasted", root, onZombieWasted)
  18. iFoReX

    What is bad ?

    tapl when a player kill to zombie set to me ur rank and ur zombie kills
  19. iFoReX

    What is bad ?

    now Work I put a triggerClientEvent, thank you c: u are the better
  20. iFoReX

    What is bad ?

    mmm if I try with timer ? bad argument lines : 2,3,4,5,6 function lol() local account = getPlayerAccount(source) local zKills = getAccountData(account,"Zombie kills") local Rank = getAccountData(account,"Rango") setElementData(account,"zombieK",zKills) setElementData(account,"Rango",zKills) end setTimer(lol,1000,0)
  21. iFoReX

    What is bad ?

    onPlayerLogin Event ?
  22. iFoReX

    What is bad ?

    Ok, function lol(thePlayer) local account = getPlayerAccount(thePlayer) local zKills = getAccountData(account,"Zombie kills") local Rank = getAccountData(account,"Rango") setElementData(account,"zombieK",zKills) setElementData(account,"Rango",zKills) end addEventHandler("onPlayerJoin",root,lol) ?
  23. iFoReX

    What is bad ?

    function lol(thePlayer) local account = getPlayerAccount(thePlayer) local zKills = getAccountData(account,"Zombie kills") local Rank = getAccountData(account,"Rango") triggerClientEvent(thePlayer,"lolEvent",thePlayer,zKills,Rank) end addEventHandler("onResourceStart",resourceRoot,lol) ?
×
×
  • Create New...