-
Posts
503 -
Joined
-
Last visited
Everything posted by TorNix~|nR
-
hello everyone I need to ask, I have a VPS CentOS 6 when I start server, it starts successfully but I do not know how to open the Console in Putty program please anyone help me?
-
Work CodyL, thanks very much
-
Not work:/ anyone can help me?
-
local aSavePlaces = { Circle = { -- x, y, radius }, Cuboid = { -- x, y, z, Width, Depth, Height }, Rectangle = { -- X, Y, Width, Height { 108.46, -1977.84, 85, 58 }, -- Hospitals + Spawn Base { 1994.38, -1453.32, 110, 75 }, { 1155.28, -1350.23, 65, 58 }, { 1234.93, 302.44, 40, 58 }, { 191.56, -83.96, 40, 58 }, { 1589.75, 1800.18, 40, 58 }, { -339.67, 1029.49, 40, 58 }, { -1536.27, 2504.90, 40, 58 }, { -2681.42, 582.40, 40, 58 }, { -2224, -2326.97, 40, 58 }, { 1560, -1137.41, 165, 158 }, -- Boss { 2372.29, 1823.58, 135, 158 }, { -2145.80, 118.67, 158, 200 }, { 436.91, 767.93, 450, 280 }, -- Trabajos { -413.28, -1570.95, 270, 328 }, }, Sphere = { -- X, Y, Z, Radius }, Tube = { -- X, Y, Z, Radius, Height }, Polygon = { -- X, Y, X1, Y1, X2, Y2, X3, Y3, ... -- You can add like X4, Y4 .. } } local aRadarAreaPlaces = { { 108.46, -1977.84, 85, 58, 0, 255, 0, 0 }, -- Hospitals + Spawn Base { 1994.38, -1453.32, 110, 75, 0, 255, 0, 0 }, { 1155.28, -1350.23, 65, 58, 0, 255, 0, 0 }, { 1234.93, 302.44, 40, 58, 0, 255, 0, 0 }, { 191.56, -83.96, 40, 58, 0, 255, 0, 0 }, { 1589.75, 1800.18, 40, 58, 0, 255, 0, 0 }, { -339.67, 1029.49, 40, 58, 0, 255, 0, 0 }, { -1536.27, 2504.90, 40, 58, 0, 255, 0, 0 }, { -2681.42, 582.40, 40, 58, 0, 255, 0, 0 }, { -2224, -2326.97, 40, 58, 0, 255, 0, 0 }, { 1560, -1137.41, 165, 158, 0, 255, 0, 0 }, -- Boss { 2372.29, 1823.58, 135, 158, 0, 255, 0, 0 }, { -2145.80, 118.67, 158, 200, 0, 255, 0, 0 }, { 436.91, 767.93, 450, 280, 0, 255, 0, 0 }, -- Trabajos { -413.28, -1570.95, 270, 328, 0, 255, 0, 0 }, } local sResourceName = getResourceName ( resource ) local bUseGunsInSavePlace = get( sResourceName .. '.UseGunsInSaveZone' ) local bUseRadarArea = get( sResourceName .. '.UseRadarArea' ) local pColshape, pRadarArea local bUseRunInSaveZone = get( sResourceName .. '.UseRunInSaveZone' ) local bUseJumpInSaveZone = get( sResourceName .. '.UseJumpInSaveZone' ) local bUseWeaponHudInSaveZone = get( sResourceName .. '.UseWeaponHudInSaveZone' ) local bUseAmmoHudInSaveZone = get( sResourceName .. '.UseAmmoHudInSaveZone' ) local bUseDamageInSaveZone = get( sResourceName .. '.UseDamageInSaveZone' ) addEventHandler ( 'onResourceStart', resourceRoot, function ( ) local display = textCreateDisplay () local text = textCreateTextItem("Estas en Zona Segura !", 0.9, 0.7, "high", 0, 255, 0, 255, 2, "right", "bottom") textDisplayAddText(display, text) for s, _ in pairs( aSavePlaces ) do for _, a in pairs( aSavePlaces[ s ] ) do pColshape = _G[ 'createCol' .. s ]( unpack( a ) ) --setElementData( pColshape, 'zombieProof', true ) addEventHandler ( 'onColShapeHit', pColshape, function ( pHitElement ) if getElementType( pHitElement ) == 'player' then textDisplayAddObserver(display, pHitElement) if not bUseGunsInSavePlace then end if not bUseDamageInSaveZone then setElementData( pHitElement, 'damage', 'no' ) end elseif getElementType( pHitElement ) == 'ped' then -- check if the entered ped kill it if getElementData(pHitElement, "zombie") then killPed(pHitElement) end end end ) addEventHandler ( 'onColShapeLeave', pColshape, function ( pLeaveElement ) if getElementType( pLeaveElement ) == 'player' then textDisplayRemoveObserver(display, pLeaveElement) if not bUseGunsInSavePlace then end if not bUseDamageInSaveZone then setElementData( pLeaveElement, 'damage', 'yes' ) end elseif getElementType( pLeaveElement ) == 'ped' then -- check if the entered ped kill it end end ) end end if bUseRadarArea then for _, a in ipairs( aRadarAreaPlaces ) do pRadarArea = createRadarArea ( unpack( a ) ) setElementData( pRadarArea, 'zombieProof', true ) end end end )
-
hello everyone, I have a safe zone, so I made a safe zone in the zone of Boss we can not kill each other but the big problem is the boss can not damage us so what do I need the Players cannot damage other players But the boss can, any one help me? I try this but not work if not getElementData(pHitElement,"boss") then setElementData( pHitElement, 'damage', 'no' ) Thanks
-
hello everyone I have a server, and I want to make a jail system + wanted system for example: when a player kill player get 1 Star, and when player get 3 Stars, go to jail automatically anyone can help me ?
-
INFO: Done function working fine
-
nothing in debug not work:/
-
The debug is clean ._.
-
Client local antiWeapon = {[0] = true, [1] = true, [2] = true, [4] = true, [5] = true, [6] = true, [8] = true, [9] = true, [10] = true, [12] = true, [14] = true, [34] = true, [35] = true, [36] = true, [37] = true, [38] = true, [16] = true, [17] = true, [18] = true, [39] = true, [14] = true, [40] = true, [41] = true} addEventHandler("onClientPedDamage", root, function (attacker, weapon) local pvp = getElementData(source, "PVP") if pvp and antiWeapon[weapon] then cancelEvent() end end) addEventHandler("onClientPlayerWeaponSwitch", localPlayer, function (prevSlot, newSlot) for _, pvp in ipairs(getElementsByType("player")) do if getElementData(pvp, "PVP") then local px, py, pz = getElementPosition(localPlayer) local x, y, z = getElementPosition(pvp) local dist = getDistanceBetweenPoints3D(px, py, pz, x, y, z) if dist < 300 and antiWeapon[getPedWeapon(getLocalPlayer())] then outputChatBox("No se puede utilizar esta arma en PVP Zona", 255, 0, 0) toggleControl("fire", false) return else toggleControl("fire", true) end end end end) addEventHandler("onClientPlayerWeaponFire", localPlayer, function (weapon, _, _, _, _, _, hitElement ) if hitElement and getElementData(hitElement, "PVP") and antiWeapon[weapon] then outputChatBox("No se puede utilizar esta arma en PVP Zona", 255, 0, 0) toggleControl("fire", false) end end) addEventHandler("onClientPlayerDamage", localPlayer, function (attacker,weapon, bodypart) if (attacker) and (isElement(attacker)) and not (attacker == source) then if (getElementType(attacker) == "vehicle") then attacker = getVehicleController(attacker) or false end if (attacker) and (getElementType(attacker) == "player") then local ff1, ff2, bag1, bag2 = getElementData(source, "friendlyFire"), getElementData(attacker, "friendlyFire"), getElementData(source, "bag"), getElementData(attacker, "bag") if (bag1 or bag2) then return end if (ff1 or ff2) then return end cancelEvent() end end end) addEventHandler("onClientPlayerStealthKill", localPlayer, function (attacker,weapon, bodypart) if (attacker) and (getElementType(attacker) == "player") then local ff1, ff2 = getElementData(source, "friendlyFire"), getElementData(attacker, "friendlyFire") if not (ff1 or ff2) then cancelEvent() end end end) addEventHandler("onClientPlayerSpawn", root, function ( ) if not (source == localPlayer) then setElementCollidableWith(source, localPlayer, false) end end) addEventHandler("onClientResourceStart", resourceRoot, function ( ) for _, thePlayer in ipairs(getElementsByType("player"))do if not (thePlayer == localPlayer) then setElementCollidableWith(thePlayer, localPlayer, false) end end end)
-
Hello everyone I made a zone of PVP, I create for it an anti weapon for example (Minigun, Rocket Launcher...) etc but it doesn't work anyone help please?
-
Thanks to everyone, it works for me <3 :D
-
function Blip () for id, PLAYERS in ipairs(getElementsByType("player")) do local r, g, b = getTeamColor(getPlayerTeam(PLAYERS)) createBlipAttachedTo(PLAYERS, 0, 2, r, g, b) setTimer(Blip, 5000, 0) end end Blip() function quit () destroyBlipsAttachedTo(source) end addEventHandler("onPlayerQuit", getRootElement(), quit) function dead (totalammo, killer, killerweapon) destroyBlipsAttachedTo(source) end addEventHandler("onPlayerWasted", getRootElement(), dead) function destroyBlipsAttachedTo(player) local attached = getAttachedElements(player) if (attached) then for k,element in ipairs(attached) do if getElementType(element) == "blip" then destroyElement(element) end end end end Done, anyone help? the problem: when I open F11 it starts lag (FPS 5-10)
-
sorry, that is my old script this is the new works but the problem in F11 (lag) function Blip () for id, PLAYERS in ipairs(getElementsByType("player")) do local r, g, b = getTeamColor(getPlayerTeam(PLAYERS)) createBlipAttachedTo(PLAYERS, 0, 2, r, g, b) setTimer(Blip, 5000, 0) end end Blip() function quit () destroyBlipsAttachedTo(source) end addEventHandler("onPlayerQuit", getRootElement(), quit) function dead (totalammo, killer, killerweapon) destroyBlipsAttachedTo(source) end addEventHandler("onPlayerWasted", getRootElement(), dead) function destroyBlipsAttachedTo(player) local attached = getAttachedElements(player) if (attached) then for k,element in ipairs(attached) do if getElementType(element) == "blip" then destroyElement(element) end end end end
-
9: Bad argument @ 'createBlipAttachedTo' [Expected element at argument 1, got nil] --- Can I get your skype please ?
-
function Blip () for id, PLAYERS in ipairs(getElementsByType("player")) do local r, g, b = getTeamColor(getPlayerTeam(PLAYERS)) createBlipAttachedTo(PLAYERS, 0, 2, r, g, b) end end setTimer(Blip, 5000, 0) function quit () destroyBlipsAttachedTo(source) end addEventHandler("onPlayerQuit", getRootElement(), quit) function dead (totalammo, killer, killerweapon) destroyBlipsAttachedTo ( source ) end addEventHandler("onPlayerWasted", getRootElement(), dead) function destroyBlipsAttachedTo(player) local attached = getAttachedElements(player) if (attached) then for k,element in ipairs(attached) do if getElementType(element) == "blip" then destroyElement(element) end end end end ---- Thank you CodyL
-
Hello everyone I have a problem please anyone help me? I create a player blips of team color, but there is an error has occurred when I open F11, it starts much lag (FPS 5-10) help? Thanks
-
Same problem... and thanks for reponse problem of libs I think is not installed
-
CiBeR I was have this problem in CentOS and I find solution for it is problem of (libs, wget...) and in Debian I think is more difficult Thanks for your reponse
-
Hello Jusonex and thanks for the reply and Thanks to ccw too I'm with Wassim in the server, he disconnects now from his PC when I make it in root it say The following packages have unmet dependencies: ia32-libs : Depends: ia32-libs-i386 but it is not installable E: Unable to correct problems, you have held broken packages. Not work I think the problem is of libs
-
hana nestanew :vv
-
Hello everyone I have an problem, I make a server zombie in my local server, my Zombie Kills are 4500 I have my command for give zombie kills I go to 'P' [Admin Panel] > Resources and I make this command setElementData(source,"Zombie kills",9999999) It works, but when I reconnect, my zombie kills back to 4500, any solution please?