Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/02/18 in all areas

  1. As an inspired roleplayer I come here with an RPG Server , SAEG has been created by a few guys on purpose to give players what they need. Actually we offer you a great adventure which you won’t see anywhere else. We have variety of jobs, different type of groups such as (Clan,Squad,Gang). Don’t make your dreams leak out of your mind and make the come true ! SCREENSHOTS https://imgur.com/wLVNCWz https://imgur.com/Y8YaK6e https://imgur.com/NErawZQ https://imgur.com/FE6NpKf Everything began at 30.3.2017, after being slaves of server full of unfair admins, unfair players which are looking forward to scam you three guys got sad that they are part of such community, one of them gave the idea to create their own server, they thought about it and here we are, the server exists.They didn't know if the server will go well or they will spend their money for nothing but they took the right choice and now they have an awesome server with great players which i am sure you will enjoy to play with! - SAEG:RPG IP Adress: mtasa://173.249.1.127:27015- SAEG:RPG Forum Link: saegrpg.com- Record: 87 players-Daily players: 30+ Contact Information Facebook Page :https://www.facebook.com/groups/228410374276549/ Discord server ;https://discord.gg/avdBvsj Join us now ! We'll be glad to have you !
    1 point
  2. Someone Please Help Me. I am wrote a script about this topic. This definetly working but i want after the create object write into the chat /cam and remove this objects. Please help me. function consoleCreateObject ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- get the player's position -- create a Object next to the player: local theObject1 = createObject ( 980, x + 2, y + 2, z, 0, 0, 0 ) local theObject2 = createObject ( 980, x + 3, y + 3, z, 0, 0, 0 ) local theObject3 = createObject ( 980, x + 4, y + 4, z, 0, 0, 0 ) local theObject4 = createObject ( 980, x + 5, y + 5, z, 0, 0, 0 ) end end end addCommandHandler ( "cab", consoleCreateObject )
    1 point
  3. else لو ما اتنفذ تحققات اللوكال شات ال هي المسافه بين الاعبين و الخ تسوي تحقق من نوع الرتبه و تكرر فنكشن outputChatBox او بالتحقق الاول تحط or و تحققك حق الحسال
    1 point
  4. 1 point
  5. كل واحد وتفكيره لو تبي تسويها له تفضل
    1 point
  6. @Jayceon you might consider looking into your script.
    1 point
  7. I found the reason for it....!! the problem is in the "NICK" of the user. when the symbols like /, \, | and < > are inserted in the nick, graffiti cannot be complete successfully..... so, when that symbols are removed from nick it works correctly....!!
    1 point
  8. -- JSP Name,Interior,Dimension,x,y,z,xr,yr,zr -- JSD Name,Dff,Txd,Col,Drawdistance,Special Alpha,Backface Cull,Lod Number or true,Show time, Disapear time -- Show time = Time of day that the object shows up (For windows and crap) -- Disapear time = Time of day that the object disapears (For windows and crap) All maps will be updated to this new system at the end of the month, .map support will be 100% phased out from any of my systems by that time. However, for map editor concerns I will be doing a map editing tool kit, that allows you to edit the maps as well set object definitions (Properties) through a GUI that will save to the core JSP and JSD files. The Reason I am doing this is so that the streamer has better control of how the objects are added also I will be adding a lot more systems in the future that will depend on these new formats.
    1 point
  9. function resRes() local resource = getThisResource() if getResourceState(resource) == "running" then restartResource(resource) end end setTimer(resRes,86400000,0) Add this to the script on server-side. It‘s better because you don‘t have to edit it if you rename the resource.
    1 point
  10. function resRes() local resource = getResourceFromName("DrugDealer") if getResourceState(resource) == "running" then restartResource(resource) end end setTimer(resRes,86400000,0)
    1 point
  11. if r ~= r2 or g ~= g2 or b ~= b2 then -- not the same color end
    1 point
  12. I am not sure what you want to achieve with it. But if you want to check if an element is in a table, then this is also very fast method. The elements have become the KEY of the table. local table = {[el1] = true, [el2] = true, [el3] = true} if table[place] then -- Yes it is in the table end Adding elements to the table by hand: table[el1] = true table[el2] = true table[el3] = true With this method, you can also make a reference to different data: local table = {[el1] = {"more data"}, [el2] = {"more data"}, [el3] = {"more data"}} local moreData = table[place]
    1 point
  13. hello all i created a teampanel all works fine but problem is in adding players to team which only leader must do! for exmaple i created team and if i need to add players to team i tried with if getElementData(localPlayer, "player.key") == "amazingcasino" then but it doesn't work below is full code addEventHandler("onClientGUIClick", guiRoot, function() if getElementData(localPlayer, "player.key") == "amazingcasino" then if source == GUIEditor.button[3] then local row, column = guiGridListGetSelectedItem( GUIEditor.gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText( GUIEditor.gridlist[1],row,column) local player = getPlayerFromName(playerName) local team = getPlayerTeam(localPlayer) local teamName = getTeamName(team) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("Add to team", localPlayer,playerName,teamName) end end end)
    1 point
  14. it clearly shows the function receiver - sender, then how can you sen money to yourself? test it now may work function giveMoney(sender,command,name,amount) if not name or not amount then outputChatBox("Usage: #FFFFFF/givemoney [player name] [amount]",sender,255,0,0,true) return end local receiver = getPlayerFromName(name) if not receiver then outputChatBox("Couldn't find a player with the name #FFFFFF("..name..").",sender,255,0,0,true) return end if not tonumber(amount) then outputChatBox("Please enter a valid value.",sender,255,0,0) return end local receiver = getPlayerFromName(name) local receivername = getPlayerName(receiver) local sendername = getPlayerName(sender) local sendermoney = getPlayerMoney(sender) if receiver and tonumber(amount) <= sendermoney then takePlayerMoney(sender,amount) givePlayerMoney(receiver,amount) outputChatBox("You gave #FFFFFF"..receivername.." #00FF00$"..tonumber(amount)..".",sender,0,255,0,true) outputChatBox(""..sendername.." #00FF00gave you $"..tonumber(amount)..".",receiver,255,255,255,true) else outputChatBox("You don't have $"..tonumber(amount)..".",sender,255,0,0,true) end end addCommandHandler("givemoney",giveMoney) test it
    1 point
  15. If you r adding for rights for admin or smod,mod then shut down server first then edit it and then start server if your r facing other problems let us know
    1 point
  16. --------------------------- -- Set position window --------------------------- do local screenWidth, screenHeight = guiGetScreenSize() if screenHeight < 700 then g_MapSide = 450 else g_MapSide = 700 end end function setPosInit() local x, y, z = getElementPosition(g_Me) setControlNumbers(wndSetPos, { x = x, y = y, z = z }) addEventHandler('onClientRender', g_Root, updatePlayerBlips) end function fillInPosition(relX, relY, btn) if (btn == 'right') then closeWindow (wndSetPos) return end local x = relX*6000 - 3000 local y = 3000 - relY*6000 local hit, hitX, hitY, hitZ hit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000) setControlNumbers(wndSetPos, { x = x, y = y, z = hitZ or 0 }) end function setPosClick() setPlayerPosition(getControlNumbers(wndSetPos, {'x', 'y', 'z'})) closeWindow(wndSetPos) end function setPlayerPosition(x, y, z) if getElementData ( localPlayer, "attached" ) then return end if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please Wait 10 Seconds Before Warping Again.') return else if not isPedInVehicle(g_Me) then setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 10000, 1, g_Me, "timer.setpos", "normal") end local elem = getPedOccupiedVehicle(g_Me) local distanceToGround local isVehicle if elem then errMsg('Please leave the vehicle to change your position.') return else elem = g_Me distanceToGround = 0.4 isVehicle = false end local hit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000) if not hit then if isVehicle then server.fadeVehiclePassengersCamera(false) else fadeCamera(false) end setTimer(setCameraMatrix, 1000, 1, x, y, z) local grav = getGravity() setGravity(0.001) g_TeleportTimer = setTimer( function() local hit, groundX, groundY, groundZ = processLineOfSight(x, y, 3000, x, y, -3000) if hit then local waterZ = getWaterLevel(x, y, 100) z = (waterZ and math.max(groundZ, waterZ) or groundZ) + distanceToGround if isPlayerDead(g_Me) then server.spawnMe(x, y, z) else setElementPosition(elem, x, y, z) end setCameraPlayerMode() setGravity(grav) if isVehicle then server.fadeVehiclePassengersCamera(true) else fadeCamera(true) end killTimer(g_TeleportTimer) g_TeleportTimer = nil end end, 500, 0 ) else if isPlayerDead(g_Me) then server.spawnMe(x, y, z + distanceToGround) else setElementPosition(elem, x, y, z + distanceToGround) if isVehicle then setTimer(setElementVelocity, 100, 1, elem, 0, 0, 0) setTimer(setVehicleTurnVelocity, 100, 1, elem, 0, 0, 0) end end end end end function updatePlayerBlips() if not g_PlayerData then return end local wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPos local mapControl = getControl(wnd, 'map') for elem,player in pairs(g_PlayerData) do if not player.gui.mapBlip then player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'localplayerblip.png' or 'playerblip.png', false, mapControl) player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name, false, mapControl) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetFont(player.gui.mapLabelShadow, 'default-bold-small') guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255) player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name, false, mapControl) guiSetFont(player.gui.mapLabel, 'default-bold-small') guiLabelSetColor(player.gui.mapLabel, 0, 0, 0) for i,name in ipairs({'mapBlip', 'mapLabelShadow'}) do addEventHandler('onClientGUIDoubleClick', player.gui[name], function() server.warpMe(elem) closeWindow(wnd) end, false ) end end local x, y = getElementPosition(elem) x = math.floor((x + 3000) * g_MapSide / 6000) - 4 y = math.floor((3000 - y) * g_MapSide / 6000) - 4 guiSetPosition(player.gui.mapBlip, x, y, false) guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false) guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false) end end addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) if (not g_PlayerData) then return end local player = g_PlayerData[source] player.name = newNick if player.gui.mapLabel then guiSetText(player.gui.mapLabelShadow, newNick) guiSetText(player.gui.mapLabel, newNick) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetSize(player.gui.mapLabel, labelWidth, 14, false) end end ) function closePositionWindow() removeEventHandler('onClientRender', g_Root, updatePlayerBlips) end wndSetPos = { 'wnd', text = 'Set position', width = g_MapSide + 20, controls = { {'img', id='map', src='map.png', width=g_MapSide, height=g_MapSide, onclick=fillInPosition, ondoubleclick=setPosClick}, {'txt', id='x', text='', width=0}, {'txt', id='y', text='', width=0}, {'txt', id='z', text='', width=0}, {'btn', id='close', closeswindow=true}, }, oncreate = setPosInit, onclose = closePositionWindow } function setPlayerPosition(x, y, z) if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please wait at least 30 seconds before seting your position again.') return end if getPedOccupiedVehicle(g_Me) then errMsg('Please leave the vehicle before changing your position.') return end if getElementAttachedTo(g_Me) then errMsg('Please unglue from another object before setting your position.') return end setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 30000, 1, g_Me, "timer.setpos", "normal") fadeCamera(false) setTimer( function() setCameraMatrix(x, y, 600) setElementPosition(localPlayer, x, y, 600) setElementInterior(localPlayer, 0) server.setElementInterior(localPlayer, 0) setCameraInterior(0) setCameraTarget(localPlayer) server.giveMeWeapon(46, 1) fadeCamera(true) end, 500, 1) --[[local elem = g_Me local distanceToGround = 0.4 if isLineOfSightClear(x, y, 3000, x, y, -3000, true, true, true, true, true, false, false, nil) then fadeCamera(false) setTimer(setCameraMatrix, 1000, 1, x, y, z) end g_TeleportTimer = setTimer( function() local hit, groundX, groundY, groundZ = processLineOfSight(x, y, 3000, x, y, -3000, true, true, true, true, true, false, false, false, nil, true, true) if hit then local waterZ = getWaterLevel(x, y, z, true) z = (waterZ and math.max(groundZ, waterZ) or groundZ) + distanceToGround setElementPosition(elem, x, y, z) setElementInterior(elem, 0) server.setElementInterior(g_Me, 0) setCameraInterior(0) setCameraTarget(g_Me) fadeCamera(true) killTimer(g_TeleportTimer) g_TeleportTimer = nil end end, 500, 0)]]-- end replace the code in fr_cilent.lua under setposition and if you want remove the error msg or let it be as i think u r copying groam style!!
    1 point
  17. It was online even when you said it is offline
    0 points
  18. Probably you are low on video memory. Consider replacing your video card.
    0 points
×
×
  • Create New...