Jump to content

VenomOG

Members
  • Posts

    362
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by VenomOG

  1. I Understand totally, this is just a start up, i will change all locations and systems. just a beta if i may say.
  2. 1. Open your Gta sa folder right click gta and click properties find compatibility tab 2. click run this program in compatibilityu mode for : then 3. click the bar find Windows 98/me then click apply then untick the box and then run mta @Ziad Mohamed
  3. Welcome, Fellow Multi Theft Auto players Introduction: Screenshots about our server: Some of our server Features :
  4. OK ill try local sWidth,sHeight = guiGetScreenSize() -- The variables addEventHandler("onClientRender", root, function() local r, g, b = getPlayerNametagColor (localPlayer) local name = getPlayerName(getLocalPlayer()) if (getElementData(localPlayer,"loggedin") == true) then dxDrawLine(671 - 1, 73 - 1, 671 - 1, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 73 - 1, 671 - 1, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(sWidth*1.310, sHeight*0.142, sWidth*0.309, sHeight*0.044, tocolor(123, 112, 120, 160), false) dxDrawRectangle(sWidth*1.310, sHeight*0.142,(getElementData(getLocalPlayer(), "kill.level") or 0)*(119/100), sHeight*0.044, tocolor(0, 0, 0, 160), false) dxDrawText("Level : "..(getElementData(getLocalPlayer(),"Level")), 635, 94, 676, 114, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText((getElementData(getLocalPlayer(),"kill.level")).." / 100", 698, 73, 804, 89, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("XP : ", 635, 74, 676, 94, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) end end ) @MIKI785
  5. I Just Cannot i tried , Please just help me.
  6. dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 73 - 1, 671 - 1, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(671, 73, 119, 17, tocolor(123, 112, 120, 160), false) dxDrawRectangle(671, 73,(getElementData(getLocalPlayer(), "kill.level") or 0)*(119/100), 17, tocolor(0, 0, 0, 160), false) dxDrawText("Level : "..(getElementData(getLocalPlayer(),"Level")), 635, 94, 676, 114, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText((getElementData(getLocalPlayer(),"kill.level")).." / 100", 698, 73, 804, 89, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("XP : ", 635, 74, 676, 94, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) Can someone please. make this code for all resolution, im good dx but not that good,thanks
  7. Fixed thanks. If i wanted to make each lvl there will be a diffrent ammount of xp needed to reach how can i do that.
  8. addEventHandler("onPlayerJoin",root,function() team = createTeam("Admin", 0, 255, 0) setPlayerTeam(source, team) end)
  9. Hello so i have an xp system, with levels, and when player reachs a certain leven the dx box comes out of screen, how to fix script : dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 73 - 1, 671 - 1, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 73 - 1, 671 - 1, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(671 - 1, 90, 790, 90, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(790, 90, 790, 73 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(671, 73, 119, 17, tocolor(123, 112, 120, 160), false) dxDrawRectangle(671, 73,(getElementData(getLocalPlayer(),"kill.level"))*119, 17, tocolor(0, 0, 0, 160), false) dxDrawText("Level : "..(getElementData(getLocalPlayer(),"Level")), 635, 94, 676, 114, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText((getElementData(getLocalPlayer(),"kill.level")).." / 100", 698, 73, 804, 89, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("XP : ", 635, 74, 676, 94, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top", false, false, false, false, false) dxDrawRectangle(671, 73,(getElementData(getLocalPlayer(),"kill.level"))*119, 17, tocolor(0, 0, 0, 160), false) is the rectangle that comes out of box
  10. [International Society Gaming] Searching So i am searcing for an designer and a scripter [does not need to be perfect none is] i am scripter myself but i need someone to work aside me, contact me as soon as possible
  11. local sx, sy = guiGetScreenSize ( ) local eventButton function centerGUI ( guiElement ) local width, height = guiGetSize ( guiElement, false ) local x, y = ( sx / 2 - width / 2 ), ( sy / 2 - height / 2 ) guiSetPosition ( guiElement, x, y, false ) end GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, edit = {}, button = {}, window = {}, label = {} } -- guiSetVisible(GUIEditor.window[1],false) addEventHandler("onResourceStart",resourceRoot,function() GUIEditor.window[1] = guiCreateWindow(423, 331, 523, 367, "", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetSizable(GUIEditor.window[1], false) centerGUI(GUIEditor.window[1]) -- GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 109, 502, 241, false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(5, 5, 153, 42, "Закрыть", false, GUIEditor.window[1])
  12. @Trta i can i have some experience, client and dx and server, some tables.
  13. if accountName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accountName)
  14. CLIENT---- sx,sy = guiGetScreenSize() lpclean1m = getLocalPlayer() clean1mdelmissie1window = guiCreateWindow(0.3*sx,0.3*sy,0.3*sx,0.3*sy,"Streetcleaner",false) clean1mdelmissie1memo = guiCreateMemo(0.01,0.1,0.7,0.8,"cleanermission, accept the job, take the streetcleaner, and go clean the street for money, follow the pink C icon",true,clean1mdelmissie1window) guiMemoSetReadOnly(romemo, true) clean1mdelmissie1takebutton = guiCreateButton(0.73,0.4,0.3,0.17,"Have Job",true,clean1mdelmissie1window) clean1mdelmissie1declinebutton = guiCreateButton(0.73,0.2,0.3,0.17,"Close",true,clean1mdelmissie1window) guiSetVisible(clean1mdelmissie1window,false) clean1mdelmissie1marker = createMarker(2149, -2286, 13.77,"cylinder",2,0,255,0) clean1mdelmissie1theMarker = createPickup(3725, -2079, 1370112.375, 3, 14863, 100 ) addEventHandler('onClientRender', root, function() local px, py, pz = getElementPosition(getLocalPlayer()) if getDistanceBetweenPoints2D(9999,-9999, px, py) <= 17 then local x, y = getScreenFromWorldPosition(9999,-9999,43.5) if x and y then end end end ) addEventHandler("onClientMarkerHit",clean1mdelmissie1marker,function(p) if p == lpclean1m then guiSetVisible(clean1mdelmissie1window,true) showCursor(true) end end) addEventHandler("onClientGUIClick",clean1mdelmissie1window, function(b) if b == "left" then if source == clean1mdelmissie1takebutton then if not getElementData(lpclean1m, "clean1mdelmissie1") then triggerServerEvent("haveclean1mdelmissie1Job",lpclean1m) else guiSetVisible(clean1mdelmissie1window,false) showCursor(false) triggerServerEvent("clean1mdelmissie1Route",root,lpclean1m) theclean1Blip = createBlipAttachedTo(clean1mdelmissie1theMarker,12) end elseif source == clean1mdelmissie1declinebutton then guiSetVisible(clean1mdelmissie1window,false) showCursor(false) end end end) addEvent("clean1mdelmissie1Route",true) function clean1mdelmissie1Route(tab) for k,pos in ipairs(tab) do if k == 1 then x = pos elseif k == 2 then y = pos elseif k == 3 then setElementPosition(clean1mdelmissie1theMarker,x,y,pos) outputChatBox("follow the #FF0000PINK C ICON#FFFFFF"..getZoneName(x,y,pos,true)..", "..getZoneName(x,y,pos)..".",255,255,255,true) end end end addEventHandler("clean1mdelmissie1Route",root,clean1mdelmissie1Route) addEventHandler("onClientPickupHit",clean1mdelmissie1theMarker, function(p) if p == lpclean1m then if getElementData(lpclean1m, "clean1mdelmissie1") then setElementPosition(clean1mdelmissie1theMarker,35, 68, 1370112.375) amount = math.random(1456,8999) triggerServerEvent ("giveclean1mdelmissie1PlayerSomeMoney", getLocalPlayer(), amount ) playSound("geld.mp3") outputChatBox("You recieved #00FF00 $"..tostring(amount).."#FFFFFF for cleaning the street",255,255,255,true) setTimer(triggerServerEvent,5000,1,"clean1mdelmissie1Route",root,lpclean1m) else outputChatBox("Only clean1mdelmissie1s.",255,0,0,true) end end end ) function che7896fck() if isElement (clean1mdelmissie1theMarker) then setElementPosition(clean1mdelmissie1theMarker,3725, -2079, 1370112.375) end if isElement (theclean1Blip) then destroyElement(theclean1Blip) end end addEvent("che7896fck",true) addEventHandler("che7896fck",root,che7896fck) local blip = createBlip(2149, -2286, 13.77, 56, 0, 0, 0, 0, 0, 0, 250) outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip)) --50 setBlipVisibleDistance(blip, 150) outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip)) --60 SERVER clean1mdelmissie1stations = {{2000, -2169, 13.40},{1731, -2108, 13.40},{1966, -1979, 13.55},{2210, -2004, 13.30},{2244, -2113, 13.30},{2258, -2219, 13.29},{2095, -2175, 13.39},{2293, -2300, 13.55},{2380, -2402, 13.39},{2426, -2229, 13.37}} nclnns = table.maxn(clean1mdelmissie1stations) addEvent("haveclean1mdelmissie1Job",true) function haveclean1mdelmissie1Job() setElementData(source,"clean1mdelmissie1",true) end addEventHandler("haveclean1mdelmissie1Job",root,haveclean1mdelmissie1Job) addEvent("clean1mdelmissie1Route",true) function clean1mdelmissie1Route(source) neclnrwr = math.random(1,nclnns) for cnti,pos in ipairs(clean1mdelmissie1stations) do if cnti == neclnrwr then triggerClientEvent(source,"clean1mdelmissie1Route",root,pos) end end end addEventHandler("clean1mdelmissie1Route",root,clean1mdelmissie1Route) function want(source) local want = math.random( 1,2 ) if want == 1 then local wlevel = getPlayerwanteddLevel( source ) if wlevel < 6 then setPlayerwanteddLevel(source,wlevel+1 ) elseif want == 2 then end end end addEvent("wantedd",true) addEventHandler("wantedd",root,want) function wasted() if getElementData(source, "clean1mdelmissie1") then setElementData(source,"clean1mdelmissie1",false) triggerClientEvent(source,"che7896fck",source) else end end addEventHandler ( "onPlayerWasted", getRootElement(), wasted ) addEvent( "giveclean1mdelmissie1PlayerSomeMoney", true ) addEventHandler( "giveclean1mdelmissie1PlayerSomeMoney", getRootElement(), function ( amount ) givePlayerMoney(source, tonumber(amount)) x,y,z = getElementPosition( source ) playSound("geld.mp3") clean1msfightbot = exports [ "slothBot" ]:spawnBot ( x,y+1,z, 90, math.random ( 750, 751 ), 0, 0, teamenemy, 9, "hunting", true ) setTimer ( destroyElement, 900000, 1, clean1msfightbot ) setElementModel ( clean1msfightbot, 153 ) setElementArmor( clean1msfightbot, 1000,107 ) setPedAnimation( clean1msfightbot, "slothBot", "Sprint_Wuzi ") end ) local cleanjobmarker= createMarker (2149, -2286, 13.77, "cylinder", 2,255, 200, 0, 150) function startHcccleanMiIssssion (player) if getElementType(player) == "vehicle" or getPedOccupiedVehicle(player) then return end fadeCamera(player,false,1 ) setTimer(fadeCamera,1000,1,player,true,5 ) hunteeedddeeer = createVehicle ( 574, 2160, -2295, 14 ) setTimer ( destroyElement, 9000000, 1, hunteeedddeeer ) warpPedIntoVehicle(player,hunteeedddeeer) outputChatBox ( "Hello", player,255, 200, 0, 150 ) outputChatBox ( "Take this streetcleaner and go clean the street", player,255, 200, 0, 150 ) outputChatBox ( "after accepting follow the c icons on your radar", player,255, 200, 0, 150 ) end addEventHandler( "onMarkerHit", cleanjobmarker, startHcccleanMiIssssion ) @xXGhostXx
  15. try wanted = getElementData("wantedlevel") addEventHandler("onPlayerLogin", root, function() setElementData(wanted) end) forget that try this function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") spawnPlayer (source, playerX, playerY, playerZ +1, 0, playerSkin, playerInt, playerDim) setTimer (setPlayerWantedLevel, 500, 1, source, playerWanted) setCameraTarget (source, source) fadeCamera(source, true, 2.0) else spawnPlayer (source, 1481.0855712891, -1771.2996826172, 18.795753479004, 0,78, 0, 0) setPlayerMoney (source, 200) setCameraTarget (source, source) fadeCamera(source, true, 2.0) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onLogout () kickPlayer (source, nil, "Logging out is disallowed.") end addEventHandler ("onPlayerLogout", getRootElement(), onLogout) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit)
  16. local x,y = guiGetScreenSize() local window = guiCreateWindow( (x-550)/2, (y-600)/2, 500, 600, "Updates", false ) local text = guiCreateMemo( 10, 30, 530, 526, "", false, window ) guiMemoSetReadOnly(text, true) guiSetVisible(window,false) local closeButton = guiCreateButton(420,560,110,30,"Close",false,window) addEventHandler("onClientGUIClick",closeButton,function() guiSetVisible(window, false) showCursor(false) end) local File = fileOpen("updates.txt", true) local Text = fileRead(File, 10000) guiSetText(text,Text) function updatesList( ) guiSetVisible(window, not guiGetVisible(window)) showCursor(not isCursorShowing()) end addCommandHandler ( "updates", updatesList ) function updates () outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true ) end addCommandHandler("updt", updates) create updates.txt file @xXGhostXx
  17. myFont = dxCreateFont( "FONTNAME", 20 ) addEventHandler( "onClientRender", root, function() if myFont then dxDrawText( "dxDrawText", 100, 350, 300, 350, tocolor(255,255,0), 1, myFont ) end end @liwahadri
  18. PROBLEMS: 1. when player revives it works etc but then after some seconds he gets teleported at What i need: how can i cancel him from teleporting at hospital CODE: addEvent("serverRevivePlayer", true) addEventHandler("serverRevivePlayer", resourceRoot, function(targetPlayer) if isElement(targetPlayer) then local x, y, z = getElementPosition(targetPlayer) spawnPlayer(targetPlayer, x, y, z) setCameraTarget(targetPlayer, targetPlayer) exports.SAEGMessages:sendClientMessage("You got revived by: "..getPlayerName(client), targetPlayer,255,255,255) exports.SAEGMessages:sendClientMessage("You revived: "..getPlayerName(targetPlayer), client,255,255,255) end end)
×
×
  • Create New...