Jump to content

ALw7sH

Members
  • Posts

    1,165
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ALw7sH

  1. hello, i have problem with dashboard buy next if i buy next he take money from me and dont set my next racevoting_server function buyMap(thePlayer,mapName) if mapIsAlreadySet == false then if not (mapName == "") then local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if playerCash >= mapCost then executeCommandHandler("buynextmap",thePlayer,mapName) savePlayerData(thePlayer,"cash",playerCash-mapCost) outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#FFFFFFNextmap: #0095FF"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = thePlayer local oldmapbuys = loadPlayerData(thePlayer,"mapBuys") savePlayerData(thePlayer,"mapBuys", oldmapbuys + 1) CheckAchievement(thePlayer,13) scoreboardRefresh(thePlayer) else outputChatBox("#0095FF# #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF# #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF# #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end addEvent("onScriptSetNextMap",true) addEventHandler("onScriptSetNextMap",getRootElement(), function (mapName, thePlayer) local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) savePlayerData(thePlayer,"cash",playerCash-mapCost) outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#FFFFFFNextmap: #FF8800"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = true scoreboardRefresh(thePlayer) achievement31(thePlayer) end) dash function buyMap(thePlayer,mapName,command) local account = getPlayerAccount(thePlayer) if not (isGuestAccount(account)) then local playerCash = tonumber(getAccountData(account,"cash")) if not (mapName == "") then if playerCash >= mapCost then if command then mapName = getMapName(mapName) else mapName = tostring(mapName) end if not mapTimer[mapName] then if not tableFind(mapQueue,mapName) then table.insert(mapQueue,mapName) outputChatBox("#ff9900[NEXT] #ffffff"..getPlayerName(thePlayer).."#FFFFFF has bought #ff9900"..tostring(mapName).."#ffffff!",getRootElement(),255,255,255,true) outputChatBox("#ff9900[NEXT] #ffffff"..tostring(mapName).."#ffffff successfully added to map queue!",getRootElement(),255,255,255,true) addStat(account,"buyedMaps",1) setAccountData(account,"cash",playerCash - mapCost) scoreboardRefresh(thePlayer) mapTimer[mapName] = setTimer(resetMapTimer,60000*35,1,mapName) if #mapQueue <= 1 then triggerEvent("onBoughtMap",getRootElement(),mapName) end callClientFunction(getRootElement(),"setMapQueue",mapQueue) else outputChatBox("#ff9900[NEXT] #FFFFFFMap "..mapName.." is already in map queue.",thePlayer,255,255,255,true) end else local remaining, executesRemaining, totalExecutes = getTimerDetails(mapTimer[mapName]) if remaining < 60000 then remaining = math.floor(remaining/1000).."#ffffff second" else minutes = math.floor(remaining/60000) remaining = string.format('%02d',minutes).."#ffffff minutes" end outputChatBox("#ff9900[NEXT] #FFFFFFYou have to wait #ff9900"..remaining.." to set this map!",thePlayer,255,255,255,true) end else outputChatBox("#ff9900[NEXT] #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#ff9900[NEXT] #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#ff9900[NEXT] #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end what is the problem?
  2. no one can help me ? >< i need to rapier it i have clan server ><
  3. dash_c.lua function drawMapInfo() local tick = getTickCount() - mapInfos.tick local progress = tick/700 if progress >= 1 then progress = 1 end local alpha = interpolateBetween(0,0,0,255,0,0,progress,"Linear") dxDrawText(mapInfos.titles[mapInfos.count],0,sY-dxGetFontHeight(3*scale,"default-bold")-dxGetFontHeight(5*scale,"default-bold"),sX,sY-dxGetFontHeight(3*scale,"default-bold"),tocolor(141,182,205,alpha),3*scale,"default-bold","center","center",false,false,true) dxDrawText(mapInfos.data[mapInfos.count],0,sY-dxGetFontHeight(5*scale,"default-bold"),sX,sY,tocolor(255,255,255,alpha),5*scale,"default-bold","center","center",false,false,false,true) end dash.lua function getMapInfo( map ) if not g_MapInfoList then loadMapInfoAll() end if not g_MapInfoList[map] then g_MapInfoList[map] = {} end local mapInfo = g_MapInfoList[map] if mapInfo then return mapInfo end end
  4. I do not know what you mean but see this -- Buy a next map function buyMap(thePlayer,mapName,command) local account = getPlayerAccount(thePlayer) if not (isGuestAccount(account)) then local playerCash = tonumber(getAccountData(account,"cash")) if not (mapName == "") then if playerCash >= mapCost then if command then mapName = getMapName(mapName) else mapName = tostring(mapName) end if not mapTimer[mapName] then if not tableFind(mapQueue,mapName) then table.insert(mapQueue,mapName) outputChatBox("#0000FF[NEXT] #ffffff"..getPlayerName(thePlayer).."#FFFFFF has bought #0000FF"..tostring(mapName).."#ffffff!",getRootElement(),255,255,255,true) outputChatBox("#0000FF[NEXT] #ffffff"..tostring(mapName).."#ffffff successfully added to map queue!",getRootElement(),255,255,255,true) addStat(account,"buyedMaps",1) setAccountData(account,"cash",playerCash - mapCost) scoreboardRefresh(thePlayer) mapTimer[mapName] = setTimer(resetMapTimer,60000*35,1,mapName) if #mapQueue <= 1 then triggerEvent("onBoughtMap",getRootElement(),mapName) end callClientFunction(getRootElement(),"setMapQueue",mapQueue) else outputChatBox("#0000FF[NEXT] #FFFFFFMap "..mapName.." is already in map queue.",thePlayer,255,255,255,true) end else local remaining, executesRemaining, totalExecutes = getTimerDetails(mapTimer[mapName]) if remaining < 60000 then remaining = math.floor(remaining/1000).."#ffffff second" else minutes = math.floor(remaining/60000) remaining = string.format('%02d',minutes).."#ffffff minutes" end outputChatBox("#0000FF[NEXT] #FFFFFFYou have to wait #0000FF"..remaining.." to set this map!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end
  5. any one can help me pls ? >
  6. maybe the problem not from mod but from what ?
  7. I do not know him I asked here because maybe there is one faced such problem
  8. Hello I have Problem in Dashboars by Xiti when I buy next map only take money and Do not put next map what is problem ? i've added it to group admin
  9. hello, how i can delete all top time in race ?!
  10. ضفت ع الكود اتش الصوت للاعب بس مو راضي يجي يطلع لي في الديبق باد ارقمنت addEventHandler ("onClientGUIClick", getRootElement(), function(theplayer) if ( source == start ) then local x, y, z = getElementPosition ( localPlayer ) local url = guiGetText ( edit ) if url ~= "" and url ~= " " then if isElement(uSound) then stopSound(uSound) end uSound = playSound3D( url , x, y, z ) setSoundMaxDistance( uSound, 100 ) attachElementToElement ( uSound, theplayer, 0, 0, 0 ) end end end)
  11. نفس المشكله كود الاطفاء مايطفي وكود التشغيل اذا اضغط عليه اكثر من مره يشغل الصوت اكثر من مره معى بعض
  12. للحين نفس المشكله كود الاطفاء مايطفي وكود التشغيل نفس مشكلته
  13. تسسلم بس صار فيه كم خطأ وصلحتها واشتغل تمام : ) بس فيه مشكلة أنه لو اضغط ع الزر مليون مره يشتغل الصوت مليون مره لول ذا الكود addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == start ) then local x, y, z = getElementPosition ( localPlayer ) local url = guiGetText ( edit ) if url ~= "" and url ~= " " then if isElement(uSound) then destroyElement(uSound) end local uSound = playSound3D( url , x, y, z ) setSoundMaxDistance( uSound, 100 ) end end end ) وعندي مشكله ف زر الايقاف مدري وش سببها addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == stop ) then stopSound( uSound ) end end ) الديبق يقولي bad argument @ 'stopSound' [Expected sound at argument 1, got nil]' سوري طولت ذذ
  14. يساعدني ؟ يساعدني ف وش؟ وش دخل ام الميتا ؟ انا ما اهنته قلت له لو سمحت اذا ماتعرف لاتحاول شفت انت وش يسوي ف الكود ؟ كل شوي يحذف شي ويقولي جرب واخر شي يقولي اطرح الميتا edit: تسلم بس فيه خطأ سطر 5 function arguments expected near '>'
  15. ياخوي لاتجلس تستهبل ذذ انت كل الي جالس تسويه تجرب كل شوي تمسح شي لو سمحت دامك ماتعرف لاتحاول أطرح . meta.xml ياخوي جالس تستهبل ولا وش ؟ ~~
  16. السلام عليكم ورحمة الله تحت أسمي Punk-@ss B*tch وش السالفه ذذ ما أذكر أني خالفت ف شي او حصلت حضر او او او ؟
  17. ياخوي لاتجلس تستهبل ذذ انت كل الي جالس تسويه تجرب كل شوي تمسح شي لو سمحت دامك ماتعرف لاتحاول
  18. مابيشتغل لانك مسحت (,) لول
  19. نفس الخطأ الي كان يجيني ف الديبق مدري وش سببه bad argument playSound3D bad argument setSoundMaxDistance ذا الخلل قام يجيني من أول ماضفت tonumber ( guiGetText( edit ) )
  20. السلآآم عليكم ورحمة الله انا مسوي مود تشغيل صوت 3D مسوي لوحة ويحط رابط مباشر ويضغط تشغيل ويشتغل حاولت أكثر من مره وأكثر من مره عدت الكود ولا ضبط لأني اول مره اتعامل معى كود كذا ذذ addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == start ) then local x, y, z = getElementPosition ( getLocalPlayer ( ) ) local uSound = playSound3D( tonumber ( guiGetText ( edit ) ), x, y, z ) setSoundMaxDistance( uSound, 100 ) end end )
  21. Hi How i can Active then donator in Xiti DashBoard
  22. طيب العرض والطول كيف بيجون لحالهم؟
  23. اخوي وش ذا ؟ انا ابي اععرف ككيف اححط احداثيات الكريت واتر
  24. السلام عليكم ورحمةة الله وبركاته ممكن شرحح لوضع احداثيات الماء https://wiki.multitheftauto.com/wiki/CreateWater حاولت مليون مره ماشوف يجي شي اروح مكان الي سويت فيه فاضي مافيه ماء ولا شي
×
×
  • Create New...