Jump to content

Chaos

Members
  • Posts

    300
  • Joined

  • Last visited

Everything posted by Chaos

  1. Well, thanks for your reply, I'm using that one on the community and I'm suffering lags and hard to kill zombies also when server slots reach to +40 zombies will be very rare also i need just using setElementSyncer and adding TriggerClientEvent targets manually in stead of root them, because just 1 player have to check his own synced peds and adding anim for zombie when far away run and when get closer walk to player finally gui to set zombies limit.
  2. Hi, i'm looking for zombies system to buy which provide: - Set limit zombies per player with gui - Saving bandwidth - never lag let me know if you want to sell.
  3. It's useless, i used 5 seconds time delay each message and all players have binds and keep placing it.
  4. Hi, is there anyway to disable binds or prevent say command from console (F8) because in my server they just keep spamming with smile faces, texts, etc..
  5. you can edit scoreboard go to dxscoreboard_client find these lines 67,68,115 and remove it
  6. just stop scoreboard resource
  7. Chaos

    Flags

    ok and which arguments should using ?
  8. Chaos

    Flags

    i know only how to edit the image, would you help me? elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else dxDrawText( content, topX+theX+s(1), y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( content, topX+theX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) end end
  9. Chaos

    Flags

    any help guys ?
  10. Chaos

    Flags

    it's possible as you can see in FFS server and others
  11. Chaos

    Flags

    it shows only flags with out countries. i need it flagimage with country
  12. Chaos

    Flags

    hey, guys what's wrong with this script it shows only flags with out countries. i need it flagimage with country exports.scoreboard:addScoreboardColumn('Home') addEventHandler("onPlayerJoin", root, function () local country = exports.admin:getPlayerCountry(source) local flag = ":admin/client/images/flags/"..country..".png" setElementData(source, "Home",{type = "image", src = flag, height = 12, width = 16} and country or "N/A") end)
  13. hey, i'm trying to get texture name when i shot to target texture but it doesn't work function onShot(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) usageInfoList = engineGetVisibleTextureNames () for key, textureName in ipairs(usageInfoList) do textureName = hitElement outputChatBox(textureName) end end addEventHandler("onClientPlayerWeaponFire", root, onShot)
  14. well, i don't want ghost mode i just want to cancel it
  15. it's not working correctly function enterVehicle ( thePlayer, seat, jacked ) local playerX, playerY, playerZ = getElementPosition(thePlayer) local vehicles = getElementsByType("vehicle") for k,v in ipairs(vehicles) do local vehicleX, vehicleY, vehicleZ = getElementPosition(v) -- get the distance between the player and the vehicle: local distance = getDistanceBetweenPoints3D(vehicleX, vehicleY, vehicleZ, playerX, playerY, playerZ) if (distance <= 1) then -- disable collisions for the vehicle setElementCollisionsEnabled(v, false) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle )
  16. So i should use this with onPlayerDamage or which event ? function disableVehicleCollisionsNearPlayer(thePlayer, maxDistance) local playerX, playerY, playerZ = getElementPosition(thePlayer) local vehicles = getElementsByType("vehicle") for k,v in ipairs(vehicles) do local vehicleX, vehicleY, vehicleZ = getElementPosition(v) -- get the distance between the player and the vehicle: local distance = getDistanceBetweenPoints3D(vehicleX, vehicleY, vehicleZ, playerX, playerY, playerZ) if (distance <= maxDistance) then -- disable collisions for the vehicle setElementCollisionsEnabled(v, false) end end end
  17. hey guys, I'm wondering which functions should i use to prevent car running over player ?
  18. Hey, i have a problem for a long time a go since i started my server and I'm using default zombies resource. When server slots reach to 20 player zombies are spawning normal and a lot but when it reachs more than 20 players zombies will be very rare and few even sometimes won't spawn if you are a lone. Any change i could do or something?
  19. testLineAgainstWater function is client side and the spawn function in the server side how can i do it then ?
  20. line 5 replace thePlayer with source also setTeamFriendlyFire(pTeam,true) should be out side sFF function local pTeam = createTeam("Players",255,255,0) setTeamFriendlyFire(pTeam,true) function sFF() setPlayerTeam( source, pTeam ) end addEventHandler("onPlayerJoin", getRootElement(), sFF)
  21. Understood i was wondering why my server lagging as hell i think because that. is that what you mean? addEvent( "Zomb_STFU", true ) function Zstfu ( ped ) if (isElement(ped)) then setPedVoice(ped, "PED_TYPE_DISABLED") if isPedOnGround(ped) then local px, py, pz = getElementPosition(ped) if testLineAgainstWater(px, py, pz, px, py, pz - 500) then destroyElement(ped) end end end end addEventHandler( "Zomb_STFU", getRootElement(), Zstfu )
×
×
  • Create New...