Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That's not required, remove it.
  2. function lasv ( ) setElementFrozen ( localPlayer, true ) setElementPosition ( localPlayer, 1943, 1424, 73 ) setTimer ( setElementFrozen, 4000, 0, localPlayer, false ) end addCommandHandler ( "lv", lasv )
  3. Castillo

    Bombas

    playSound3D es solo client side, usa triggerClientEvent.
  4. Well, here it only did the bad argument when I entered with a vehicle. It outputs: Welcome to the Staff Zone when I enter the zone, no errors.
  5. Castillo

    Bombas

    Tu script es server side?
  6. This only happens when you enter with a vehicle as well, right? Edit: You can use this: radar = createRadarArea(2418.4255371094, -1735,121.6306152344,100,0,150,0,153) setElementData(radar,"zombieProof",true) staffZone = createColRectangle (2418.4255371094, -1735,121.6306152344,100) addEventHandler("onColShapeHit", staffZone, function(h) if not isElement(h) then return end if getElementData(h,"zombie") then killPed(h) end end) function enterArea(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then local posX, posY = getElementPosition(thePlayer) local inArea = isInsideRadarArea(radar, posX, posY) if (inArea) then if hasObjectPermissionTo(thePlayer, "command.slap", false) then outputChatBox("Welcome to the Staff Zone", thePlayer, 0, 255, 0, true) else triggerClientEvent(thePlayer, "displayTimer", thePlayer) end end end end addEventHandler("onColShapeHit", staffZone, enterArea) function warp() local posX, posY = getElementPosition(source) local inArea = isInsideRadarArea(radar, posX, posY) if (inArea) then if hasObjectPermissionTo(source, "command.slap", false) then outputChatBox("Welcome to the Staff Zone", source, 0, 255, 0, true) else outputChatBox("You are not allowed in this area!", source, 255, 0, 0, true) if isPedInVehicle ( source ) then local playerVehicle = getPedOccupiedVehicle ( source ) setElementPosition(playerVehicle, 2341.2072753906, -1658.8668212891, 13.379216194153) else setElementPosition(source, 2341.2072753906, -1658.8668212891, 13.379216194153) end end end end addEvent("warp", true) addEventHandler("warp", root, warp)
  7. Show the full code.
  8. Topic moved to: "Resources" section.
  9. You can do: local x, y, z = unpack ( split ( kord, "," ) )
  10. Have you checked 50p's script?
  11. Castillo

    LEVEL SYSTEM

    Eso no te lo vamos a decir.
  12. Maybe you should consider moving to MySQL.
  13. Mind you guys stop with the off-topic?
  14. Castillo

    Bombas

    bombVehicles = { } function bomba11 ( ) local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle ) then bombVehicles [ vehicle ] = true end end addEvent ( "onBomba1", true ) addEventHandler ( "onBomba1", getRootElement(), bomba11 ) function blowVehicleEnter ( thePlayer, seat, jacked ) if ( seat == 0 and bombVehicles [ source ] ) then setTimer ( function ( ) blowVehicle ( source ) end ,6000, 1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), blowVehicleEnter ) function bomba22 ( ) local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle ) then bombVehicles [ vehicle ] = true end end addEvent ( "onBomba2", true ) addEventHandler ( "onBomba2", getRootElement(), bomba22 )
  15. As far as I know, is not required to "save" the database.
  16. You did not post anything helpful.
  17. To create a database go to phpMyAdmin and create it. Most of these 'gamemodes' includes a file which you can import on phpMyAdmin to create the tables.
  18. I don't see anything wrong, if the event can really be cancelled, then it should work. Maybe is just not possible, and the person who made the example at the wiki didn't know it.
  19. It'll work, just that 'source' is not required.
×
×
  • Create New...