Jump to content

Infinity-War

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Infinity-War

  1. function markerb1() if CurrentMarker >= 2 then destroyElement(marker) destroyElement(blip) end if CurrentMarker == 2 then --42 = ultima outputChatBox("Você terminou, entre na auto-escola para ver sua avaliação.", getRootElement(), 0, 255, 0) health = getElementHealth(car) fnh = createMarker(-2026.83, -114.85, 1034, "cylinder", 1.0, _,_,_,_, getRootElement()) setElementInterior(fnh, 3) destroyElement(car) addEventHandler("onMarkerHit", fnh, finish) else marker = createMarker(markersb[CurrentMarker][1], markersb[CurrentMarker][2], markersb[CurrentMarker][3], "checkpoint", 5.0, 255, 0, 0, 90, getRootElement()) blip = createBlipAttachedTo(marker, _, _, _, _, _, _, _, _, getRootElement()) CurrentMarker = CurrentMarker + 1 end end function finish(hitElement, matchingDimension) if health >= 900 then outputChatBox("Você aprovado, agora você possui habilitação tipo B.", getRootElement(), 0, 255, 0) if ( getElementType ( hitElement ) == 'player' ) then account = getPlayerAccount(hitElement) elseif ( getElementType ( hitElement ) == 'vehicle' ) then account = getPlayerAccount(getVehicleOccupant ( hitElement )) end setAccountData(account, "habilitacao.tipob", true) else outputChatBox("Você foi reprovado, tente novamente.", getRootElement(), 255, 0, 0) end started = false end and you need check from player not in guest account
  2. executeSQLQuery("CREATE TABLE IF NOT EXISTS `player_stats` (`username` TEXT, `Thirst` INT, `Hunger` INT)") addEventHandler("onPlayerQuit", root , function () local atsh = getElementData(source, "Thirst") local hungry = getElementData(source, "Hunger") local account = getPlayerAccount(source) if ( isGuestAccount ( account ) ) then return end local username = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE `username` = ?", username) if (#result > 1) then executeSQLQuery("UPDATE `player_stats` SET `Hunger` = ?, `Thirst` = ? WHERE `username` = ?", hungry, atsh, username) else executeSQLQuery("INSERT INTO health (username, Thirst, Hunger) VALUES (?, ?, ?)", username, atsh, hungry) end end) addEventHandler("onPlayerLogin", root, function(_, account) local accountName = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE username = ?", accountName) if (#result > 1) then outputChatBox ( 'done' ) setElementData(source, "Thirst", result[1].Thirst) setElementData(source, "Hunger", result[1].Hunger) end end) شوف اذا قال لك Done بالشات او لا .
  3. @Mohab - كان في خطا بسيط جرب هسا : executeSQLQuery("CREATE TABLE IF NOT EXISTS `player_stats` (`username` TEXT, `Thirst` INT, `Hunger` INT)") addEventHandler("onPlayerQuit", root , function () local atsh = getElementData(source, "Thirst") local hungry = getElementData(source, "Hunger") local account = getPlayerAccount(source) if ( isGuestAccount ( account ) ) then return end local username = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE `username` = ?", username) if (#result > 1) then executeSQLQuery("UPDATE `player_stats` SET `Hunger` = ?, `Thirst` = ? WHERE `username` = ?", hungry, atsh, username) else executeSQLQuery("INSERT INTO health (username, Thirst, Hunger) VALUES (?, ?, ?)", username, atsh, hungry) end end) addEventHandler("onPlayerLogin", root, function(_, account) local accountName = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE username = ?", accountName) if (#result > 1) then setElementData(source, "Thirst", result[1].Thirst) setElementData(source, "Hunger", result[1].Hunger) end end)
  4. welcome :salute:

    1. Infinity-War

      Infinity-War

      sorry for return message :lol:

  5. executeSQLQuery("CREATE TABLE IF NOT EXISTS `player_stats` (`username` TEXT, `Thirst` INT, `Hunger` INT)") addEventHandler("onPlayerQuit", root , function (Player) local atsh = getElementData(source, "Thirst") local hungry = getElementData(source, "Hunger") local account = getPlayerAccount(thePlayer) if ( isGuestAccount ( account ) ) then return end local username = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE `username` = ?", username) if (#result > 1) then executeSQLQuery("UPDATE `player_stats` SET `Hunger` = ?, `Thirst` = ? WHERE `username` = ?", hungry, atsh, username) else executeSQLQuery("INSERT INTO health (username, Thirst, Hunger) VALUES (?, ?, ?)", username, atsh, hungry) end end) addEventHandler("onPlayerLogin", root, function(_, account) local accountName = getAccountName(account) local result = executeSQLQuery("SELECT * FROM player_stats WHERE username = ?", accountName) if (#result > 1) then setElementData(source, "Thirst", result[1].Thirst) setElementData(source, "Hunger", result[1].Hunger) end end)
  6. يجب عليك ان تبحث على استضافة تبيع بالروشارج مغربية
  7. create marker in server side , and test . you can't fix this proplem in client side if you don't make a useful function for it .
  8. create "marker" in server side .
  9. local windows = {} function drawWindow(x,y,width,heigh,titel,titelSize,font,borderColor,bgColor,closeBnt,postGUI) local element = createElement('dxWindow') if element then borderColor = borderColor or tocolor(15,15,15,155) bgColor = borderColor or tocolor(15,15,15,255) postGUI = postGUI or false local index = table.maxn(windows) + 1 windows[index] = {} windows[index][1] = element windows[index]["x"] = tonumber(x) windows[index]["y"] = tonumber(y) windows[index]["width"] = tonumber(width) windows[index]["heigh"] = tonumber(heigh) windows[index]["titel"] = tostring(titel) windows[index]["font"] = font or "sans" windows[index]["borderColor"] = borderColor or tocolor(15,15,15,155) windows[index]["bgColor"] = bgColor or tocolor(15,15,15,255) windows[index]["postGUI"] = postGUI or false windows[index]["titelSize"] = titelSize or 1 windows[index]["closeBnt"] = closeBnt or false return index end end function editWindow ( windowIndex , size ) windows[windowIndex]["titelSize"] = size end window = drawWindow(700,100,200,200,"default",1,coolvetica,false,false,true,false) editWindow ( window , 5 )
  10. -- # Client Side function addBindKey ( ) bindKey ( 'lshift' , 'down' , JumpVehicle ) end addEventHandler ( 'onClientResourceStart' , resourceRoot , addBindKey ) local State = false function JumpVehicle () if ( not isPedInVehicle ( localPlayer ) ) then return end if ( State == true ) then return end local Vehicle = getPedOccupiedVehicle ( localPlayer ) if ( Vehicle ) and ( getVehicleController(Vehicle) == localPlayer ) then local x , y , z = getElementVelocity ( Vehicle ) if ( isLineOfSightClear ( x , y , z , x , y + 3 , z , true , false , false , true ) ) then setElementVelocity ( Vehicle , x , y + 3 , z ) end if ( isLineOfSightClear ( x , y , z , x + 3 , y , z , true , false , false , true ) ) then setElementVelocity ( Vehicle , x + 3 , y , z ) end State = true setTimer ( function ( ) State = false end , 1000 * 5 , 1 ) end end @y453bh
  11. you can't , because your ip adderss is private ..
  12. اصلا برمجتنا كانت فاشلة في هذاك الوقت , ف الي ولا الك ما تفرق
  13. اها , انت من جماعة الهاي كلاس
  14. @#Mr.Pop لا تستعمله , يجيب لاق , مجربه قبل هالمرة
  15. يا حبيب , ما قلت لك شيء غلط , قلت لك اذا تاخذ كود من موضوع ناس ثاني , حط الموضوع هنا . وصحح كلماتك , لانك تدمر اللغة العربية , الي فيها يكفيها . لاكن - لكن \ حقودي - حقود \ أن - إن \ هاذا - هذا .. حتى 4 كلمات مو عارفهم تلزقهم ببعض مزبوط
  16. # دعس جراند العرب | By DmaR..x

    1. Show previous comments  1 more
    2. Infinity-War

      Infinity-War

      ههههههههههههههههههههههههه ,
      للأسف بعد ما هكرت سرك , عطوك بان بالمنتدى :(

    3. Jw8.

      Jw8.

      ههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههرهههههههههههههههههههههههههههههههههههههههههههههههه
       

    4. Jw8.

      Jw8.

      وربي مت هههههههههههههههههههههههههههههههههههههههههههههههه

  17. يب هذا لي , اللي انت سويته شركة باصات .
×
×
  • Create New...