Jump to content

AE.

Members
  • Posts

    404
  • Joined

  • Last visited

Everything posted by AE.

  1. معرفة ف الفنكشن بس ماهي موجودة اصلا :3 مالها قيمة
  2. غير معرفة :3 داخل الكلينت يب + حتي لو عرفتها اصلا خطأ :3
  3. @#_iMr.[E]coo عندك غلط plr غير معرف داخل كلينت + المفروض اصلا تستخدم اللاعب اللي داخل اللوب اللي هو v !
  4. --client function aPlayers_(thep,soma) guiGridListSetItemText ( GUIEditor.gridlist[1] , Row , 1 , getPlayerName ( thep ) , false , false ) guiGridListSetItemText ( GUIEditor.gridlist[1] , Row , 2 , soma , false , false ) guiGridListSetItemColor ( GUIEditor.gridlist[1] , Row , 2 , 0 , 255, 0) guiGridListSetItemColor ( GUIEditor.gridlist[1] , Row , 1 , 255 , 0, 0) end addEvent("testit",true) addEventHandler("testit",getRootElement(),aPlayers_) --server for i,v in ipairs(getElementsByType("player")) do soma = getPlayerMoney(v) triggerClientEvent("testit",v,v,soma) end
  5. اها صح ماخدت بالي -- طيب سوي اللوب ف سيرفر وحط متغير بداخله فلوس الاعب وسوي ترايقر للكلينت وحط جوا التريقر المتغير واستقبل المتغير في الكلينت وحطه ف الجريد ليست @MR.StoRm
  6. يمكن هو يبي يسوي جريد ليست فيها اسماء الاعبين وفلوسهم :3 ومايبي يجيب فلوسهم بس علعموم حاول تجرب يكون ف لاعب ثالث ف السيرفر بفلوس مختلفة وقول وش صار اعتقد اني اعرف الحل
  7. علي ماعتقد الكود صحيح ومافيه اخطاء يمكن انتم الاثنين فلوسكم 100
  8. bindKey ( player thePlayer, string key, string keyState, string commandName, [ string arguments ] ) server side
  9. addEvent ( "weapon", true ) addEventHandler ( "weapon", root, function ( price ) priceof = price * 25 if getPlayerMoney(source) >= priceof then giveWeapon ( source, 31, price, true ) end end ) يعني المفروض يصير كدة
  10. ضيف الكود علي محل الاسلحة او ايا كان المود حقك داخل الفنكشن اللي يشتري فيه :3 انت مفكر لو حطيت الكود بيسويلك كل شئ
  11. --سوي متغير اسمه ammo -- وحط فيه عدد الرصاصات priceofbullet = ammo*25 if getPlayerMoney(player) => priceofbullet then -- كودك
  12. dropMarker = {} addEventHandler("onPlayerWasted", root, function() local missin = getElementData(source, "MiissoinStart") if missin then notrolley = getAttachedElements ( source ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end textDisplayRemoveObserver ( RobberDisplay, source ) if dropMarker and dropBlip then destroyElement ( dropMarker ) destroyElement ( dropBlip ) end removeEventHandler("onMarkerHit",dropMarker,onDrop) local x,y,z = getElementPosition ( source ) object_wast = createObject ( 1550, x, y, z ) marker_wast = createMarker ( x, y, z, "cylinder", 3, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", marker_wast,onHiter) setElementData(source, "MiissoinStart", false) end end ) function onHiter(hitter) if ( hitter and getElementType(hitter) == "player" ) then removeEventHandler("onMarkerHit",dropMarker,onDrop) destroyElement ( source ) wasted(hitter,true) end end function Finsh_Missoin(plr) if plr then randomDrop = math.random(#dropPosz) if randomDrop then dropX,dropY,dropZ = dropPosz[randomDrop][1],dropPosz[randomDrop][2],dropPosz[randomDrop][3] x,y,z = getElementPosition(plr) dropMarker[1] = createMarker(dropX,dropY,dropZ,"cylinder",7,255,255,0,100,plr) dropBlip = createBlip(dropX,dropY,dropZ,24,5,255,255,0,255,1,900000,plr) function onDrop( hitter ) if ( hitter == plr ) then destroyElement ( dropMarker[1] ) destroyElement ( dropBlip ) missionDone(hitter,true) end end addEventHandler("onMarkerHit",dropMarker,onDrop) end end end function missionDone(Player,Won) if Player then if Won == true then -- If he won the mission dd(Player) cx = math.random(10000,15000) givePlayerMoney ( Player, cx ) setElementData(Player, "MiissoinStart", false) outputChatBox ( "* * * #C0C0C0[ نجحت عملية السرقة بنجاح ] = #FFFF00($"..cx..") * * * ", Player, 255, 255, 255, true ) if isTimer(TimerStart["timer"]) then killTimer(TimerStart["timer"]) end --kill timee if isTimer(TimerStop["timer"]) then killTimer(TimerStop["timer"]) end --kill timee TimerStart["timer"] = setTimer ( start_Roob, robbertime,1) if dropMarker and dropBlip then destroyElement ( dropMarker ) destroyElement ( dropBlip ) end end else ---- end end جرب
  13. so if someone is specatator it overlaps his scoreboard?
  14. i don't see this you didn't post your full code then
  15. you have to make a variable with coordinates of first rectangle and text (and put the creation of both in a event on player join) and when player joins make the variable number get higher or lower to display it on a new line .
  16. xx = tonumber(b["tx"]) yy = tonumber(b["ty"]) zz = tonumber(b["tz"]) بدل ال3 سطور دول ب سطر13 و 14 و 15
  17. function countplayersq() local num = 0 for i,v in ipairs(getElementsByType("player")) do local pName = getPlayerName(v) if string.find (tostring(pName), "Sv") then num = num+1 end return num end end addCommandHandler ( "Lol", function () sa = countplayersq() outputChatBox(sa) end ) عدلت بعض الاخطاء وضفت tostring
  18. function countplayersq() local num = 0 for i,v in ipairs(getElementsByType("player")) do local pName = getPlayerName(v) if string.find (string(pName), "Sv") then num = num+1 end end return num end addCommandHandler ( "Lol", function () sa = countplayersq() outputChatBox(sa) end )
  19. you saved the name of the player to the table or the name of the account ?
  20. شيل اول سطرين ف السيرفر وحط دا executeSQLQuery ("CREATE TABLE IF NOT EXISTS `login_register` (l_serial TEXT,l_username TEXT,l_password TEXT)")
  21. هذا القسم علي mta فقط تقدر تنشر المواضيع اللي برا اللعبة ف القسم العام https://forum.multitheftauto.com/forum/136-القسم-العام/
  22. player = the vehicle that the player exit from it so you need to use source if isPedInVehicle (source) then local theVehicle = getPedOccupiedVehicle(source)
×
×
  • Create New...