Jump to content

Angel Carvajal

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Angel Carvajal's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Hola oye como se instala el mod de estadisctica

    1. AndyGot

      AndyGot

      Hola, tenes que editar el archivo s_server y editar los datos de conexión a la base de datos.

      Tu server lo corres en tu PC o utilizar un VPS?

  2. Bueno pues tengo un script que lo que hace es que si estas en el team de policia te tira al suelo con una sola bala yo quiero que cuando tengas poca vida ocurra la animacion crack y sin ser policia que todos puedan usarla trate de usar root para que todos puedan pero aun asi solo los policias pueden clientside addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon, bodypart, loss) team = getPlayerTeam(attacker) if (attacker and getElementType(attacker) == "player" and weapon == 30 and team and getTeamName(team) == "Police") then -- Policia triggerServerEvent("police:crim", localPlayer, attacker) -- Manda el Evento hacia el serverside end end) serverside addEvent("police:crim", true) addEventHandler("police:crim", root, function (police) if ( getPlayerWantedLevel (source) >= 2) then --- mayor de 2 wanted tiene que tener el jugador para usar el arma setPedAnimation ( source, "CRACK", "crckidle2") else outputChatBox ( "No es muy buscado", police, 0, 0, 255, true ) -- Dee lo contrario si no tiene 2 wanted end end)
  3. Quisiera saber como agregar otra ruta --------------------------------------- Configuration --------------------------------------- jobs = { {name = "Los Santos Delivery",reward = 2330,truck = 403,trailer = 435,x = 2104.6611328125,y = -2086.919921875,z = 13.546875} } --------------------------------------------------------------------------------------------- local root = getRootElement() local localPlayer = getLocalPlayer() player = getLocalPlayer() waypointBlip = waypointBlip marker = createMarker(2806.314453125,903.01171875,10.757797241211-1.2,"cylinder",1,255,0,40,170) truckingBlip = createBlip(2806.314453125,903.01171875,10.757797241211,51,1) window = guiCreateWindow(435,218,528,462,"Trucking Job",false) guiWindowSetSizable(window,false) gridlist = guiCreateGridList(9,24,509,428,false,window) column1 = guiGridListAddColumn(gridlist,"Job Name",0.6) column2 = guiGridListAddColumn(gridlist,"Reward",0.3) function startJob() local selectedRow,selectedCol = guiGridListGetSelectedItem(gridlist) local name = guiGridListGetItemText(gridlist,selectedRow,selectedCol) for i,job in pairs(jobs) do if job.name == name then triggerServerEvent("createJobVeh",root,player,job.name,job.truck,job.trailer,job.x,job.y,job.z,job.reward) end end end addEventHandler("onClientResourceStart",root,function() guiSetVisible(window,false) addEventHandler("onClientGUIDoubleClick",gridlist,startJob,false) end) addEventHandler("onClientMarkerHit",marker,function(element,dimension) if (getElementType(element) == "player") then if (element == localPlayer) then guiSetVisible(window,true) showCursor(true) outputChatBox("Press BackSpace to exit or double click on a job to start!",0,255,255) player = element for i,j in pairs(jobs) do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist,row,column1,j.name,false,false) guiGridListSetItemText(gridlist,row,column2,"$"..tostring(j.reward),false,false) end bindKey("backspace","down",killWindow) end end end) addEventHandler("onClientMarkerLeave",marker,function(element,dimension) if (getElementType(element) == "player") then if (element == localPlayer) then guiSetVisible(window,false) showCursor(false) guiGridListClear(gridlist) unbindKey("backspace","down",killWindow) end end end) addEvent("addBlip",true) addEventHandler("addBlip",root,function(x,y,z) waypointBlip = createBlip(x,y,z,41,1) end) addEvent("killBlip",true) addEventHandler("killBlip",root,function() destroyElement(waypointBlip) end) function killWindow() guiSetVisible(window,false) showCursor(false) end
  4. Quisiera saber como hacer que cuando el jugador muera el panel de spawn le salga tengo esto de codigo x,y = guiGetScreenSize() JobsWin = guiCreateWindow(x/3 - 170,y/3 - 20,200,320,"Selecciona Tu Equipo",false) teamsList = guiCreateGridList(0,22,186,255,false,JobsWin) column = guiGridListAddColumn( teamsList, "Teams", 0.85 ) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamsList ) guiGridListSetItemText ( teamsList, row, 1, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamsList, row, 1, getTeamColor ( team ) ) end guiWindowSetMovable ( teamsList, false ) guiWindowSetMovable ( JobsWin, false ) guiWindowSetSizable ( teamsList, false ) guiWindowSetSizable ( JobsWin, false ) send = guiCreateButton(0,285,90,25,"Seleccionar",false,JobsWin) CloseButton = guiCreateButton(105,285,90,25,"Cerrar",false,JobsWin) guiSetVisible(JobsWin, true) showCursor(true) setTimer ( showingTeams, 1000, 1) function close() if source == CloseButton then guiSetVisible(JobsWin, false) showCursor(false) end end addEventHandler ( "onClientGUIClick", root, function ( button ) if button == "left" then if source == send then local row, col = guiGridListGetSelectedItem ( teamsList ) local teamName = guiGridListGetItemText ( teamsList, row, col ) triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(), teamName ) end end end) addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), close)
  5. Quisiera como pudiera hacer que mi panel cuando muera alguien se abra automaticamente ya que solo abre cuando entras al sv x,y = guiGetScreenSize() JobsWin = guiCreateWindow(x/3 - 170,y/3 - 20,200,320,"Selecciona Tu Equipo",false) teamsList = guiCreateGridList(0,22,186,255,false,JobsWin) column = guiGridListAddColumn( teamsList, "Teams", 0.85 ) for id, team in ipairs(getElementsByType("team")) do local row = guiGridListAddRow ( teamsList ) guiGridListSetItemText ( teamsList, row, 1, getTeamName ( team ), false, false ) guiGridListSetItemColor ( teamsList, row, 1, getTeamColor ( team ) ) end guiWindowSetMovable ( teamsList, false ) guiWindowSetMovable ( JobsWin, false ) guiWindowSetSizable ( teamsList, false ) guiWindowSetSizable ( JobsWin, false ) send = guiCreateButton(0,285,90,25,"Seleccionar",false,JobsWin) CloseButton = guiCreateButton(105,285,90,25,"Cerrar",false,JobsWin) guiSetVisible(JobsWin, true) showCursor(true) setTimer ( showingTeams, 1000, 1) function close() if source == CloseButton then guiSetVisible(JobsWin, false) showCursor(false) end end addEventHandler ( "onClientGUIClick", root, function ( button ) if button == "left" then if source == send then local row, col = guiGridListGetSelectedItem ( teamsList ) local teamName = guiGridListGetItemText ( teamsList, row, col ) triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(), teamName ) end end end) addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), close)
×
×
  • Create New...