Oussema

Members
  • Content Count

    102
  • Joined

  • Last visited

  • Days Won

    3

Oussema last won the day on December 14 2017

Oussema had the most liked content!

Community Reputation

21 Decent

7 Followers

About Oussema

  • Rank
    Punk-@ss B*tch
  • Birthday 27/11/1999

Details

  • Gang
    SAEG:RPG
  • Interests
    N/A

Recent Profile Visitors

1,464 profile views
  1. i can get command args with these functions ? for example /bind a useitem itemName and when i use these function i can get the key & the item name !!
  2. Hi , is there way to disable bind "key" "command" from console or Chat ! i'll try to explain more , i have inventory system which have command /useitem (itemname) and players can bind the command and i won't them bind it sorry
  3. tableNamePlayersTFO = { {"theBlack"}, {"Alpicture"}, {"Delmon"} }, MarkerTFO = createMarker ( 2772.85, -2514.28, 13.63 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) MarkerTwoTFO = createMarker ( 2767.72, -2518.99, 13.64 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) function SetSkinTFO(player) if getElementData(player,'vipskin') == true then else if getElementType ( player ) == "vehicle" then else for i, v in ipairs(tableNamePlayersTFO) do if getPlayerName ( player ) == ( v[1] ) then if (getPlayerSkin(player) == 290) then else setPlayerSkin(player, 290) end end else local PlayerTeamTFO = getPlayerTeam ( player ) local TeamNTFO = getTeamFromName ( "The First Order" ) if isElementWithinMarker ( player, MarkerTFO ) or isElementWithinMarker ( player, MarkerTwoTFO ) then if PlayerTeamTFO == TeamNTFO then if (getPlayerSkin(player) == 288) then else setPlayerSkin(player, 288) end end end end end end end addEventHandler("onMarkerHit", MarkerTFO, SetSkinTFO) addEventHandler("onMarkerHit", MarkerTwoTFO, SetSkinTFO) This will work
  4. Oussema

    DxDraw help

    statsWindows = guiCreateStaticImage(0.80, 0.20, 0.19, 0.21, "images/deb.png",true) guiSetAlpha(statsWindows,0.8) local screenW,screenH = guiGetScreenSize() local resW,resH = 1280,720 local sW,sH = (screenW/resW), (screenH/resH) local dxText = false function mis () dxDrawText ( "Mission1:",1035*sW, 180*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 180*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 180*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end dxDrawText ( "Mission2:",1035*sW, 200*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 or getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 200*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 200*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end dxDrawText ( "Mission3:",1035*sW, 220*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 220*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 220*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end end function showDebugMonitor () local visible = guiGetVisible(statsWindows) guiSetVisible(statsWindows,not visible) local visible2 = guiGetVisible(mis) guiSetVisible(mis,not visible2) if dxText ~= true then dxText = false removeEventHandler( "onClientRender", root, mis) else dxText = true addEventHandler( "onClientRender", root, mis) end end bindKey("7","down",showDebugMonitor)
  5. onPlayerDamage Source The source of this event is the player who was damaged. addEventHandler( "onPlayerDamage", root, function (attacker) if (attacker and attacker:getType("player") and attacker:getWeapon() == 23) then if (attacker:getData("Venda:Police.Job")) then if (source:getWantedLevel() == 0) then return addNotification(attacker, "Essa pessoa não está com nível de procurado!", "error"); elseif (not Boxs["Markers"]["Create"]["Vehicle"][attacker]) then return addNotification(attacker, "Nenhuma viatura encontrada para levar o sujeito!", "error"); end if (attacker:getHealth() >= 31) then setElementVisibleTo(Boxs["Markers"]["Create"]["Jail"], attacker, true); attacker:setAnimation("ped","CAR_dead_LHS"); attacker:attach(Boxs["Markers"]["Create"]["Vehicle"][attacker], 0.2, -1.5, 0, 0, 0, 90); addNotification(source, "Tu acabas-te de ser algemado e preso, espera ser encaminhado para a cadeia.", "info"); addNotification(attacker, "Tu prendes-te uma pessoa! Leva-a até ao departamento (Sirenes Azuis)", "info"); end end end end )
  6. local zones = {} function GrHabilit(Elemento) if Elemento and getElementData(source,"colGr") then if getElementModel(Elemento) ~= 78 then if getElementType(Elemento) == "player" or getElementType(Elemento) == "ped" then setPedOnFire(Elemento,true) elseif getElementType(Elemento) == "vehicle" then --this to not blow his bike XD setElementHealth(Elemento, 200) end end end end addEventHandler("onColShapeHit",getRootElement(),GrHabilit) function fireon (thePlayer) if getElementModel(thePlayer) == 78 then local x, y, z = getElementPosition (thePlayer) Fogo[4] = createObject(TabeladeFogo[ math.random( 1,#TabeladeFogo ) ], x, y, z) setElementCollisionsEnabled(Fogo[4], false) exports.bone_attach:attachElementToBone (Fogo[4], thePlayer, 8, -0, 0, -0.3, -125, 0, 0) zones[thePlayer] = createColCuboid(x, y, z, 3.1827392578125, 3.8387451171875, 2.4195971488953) attachElements(zones[thePlayer],thePlayer,0,0,0) setElementData(zones[thePlayer],"colGr",true) -- to burn who ever get near him outputChatBox ( "#FFFF00Power #00FF00Revenge Fire ON", thePlayer, 0, 255, 0, true ) end end addCommandHandler ("fireon", fireon) function fireoff (player) if getElementModel(player) == 78 then if ( zones[player] ~= false ) then -- check if player has burn zone destroyElement ( zones[player] ) -- destroy the burn zone destroyElement(Fogo[4]) --destroy the fire shape outputChatBox ( "#FFFF00Power #00FF00Revenge Fire OFF", player, 0, 255, 0, true ) end end end addCommandHandler ("fireoff", fireoff) i didn't test it , but try and if there problem tell me ^^
  7. i won't by guieditor .... i want add them by using math but idk how This test code will draw 12 rectangle one next one !! i want it draw the rectangle in 4 lines and every line has 3 rectangle , so 3x4=12 !! any one can help me ? local test = { {"aaaaa",100}, {"xxx",100}, {"qqq",100}, {"dsqd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dqsdsqd",100}, {"dsqdqsdsqd",100}, {"dsqdqsdqs",100}, {"dsqdqsdq",100}, --12 } addEventHandler("onClientRender", root, for i, v in ipairs (items) do dxDrawRectangle ( 500+i*50,400,50,50 tocolor ( 0, 0, 0, 150 ) ) end end)
  8. Hello ! as you can see in the photo , drawing rectangles in 4 lines and max of rectangle by line are 6 i just want know how to draw the rectangles like that for example like in the image 4 lines & max by line 6 sorry for bad explaining
  9. Oussema

    Clon servers

    staff asslick for admin + lairs omg haha mtasa://51.255.215.248:23226 this the main and has opened since 2017 and majd scammer + betrayed then he's saying to ppl i'm scammer lol dude
  10. check wiki https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  11. Oussema

    MySQL Serial

    urban fixed it for u , it's will work , thx urban :v i forget it , bcs i was typing too faster
  12. Oussema

    MySQL Serial

    function getPserial (player,cmd) local serial = getPlayerSerial(player) local db = dbPoll( dbQuery(connection,"SELECT * FROM accounts WHERE serial = ?", serial), -1 ) for i, row (db) do return outputChatBox("Serial Found") end return outputChatBox("Serial Not Found") end addCommandHandler("getserial") this will work , try it
  13. A shared script ?? wooow is it's open source from CSG Owner ? No , so it's stolen resources or leaked