-
Posts
10,056 -
Joined
-
Days Won
27
Everything posted by iPrestege
-
* التجهيـز لـ اطلاق الأصدار [ 1.4 ] - نحتاج مساعدتكـ !
iPrestege replied to iPrestege's topic in Arabic / العربية
Dx إلا اذا صاحب السيرفر عمل شات خاصة بالسيرفر صحيح لكن حالياً أتكلم عن الشات الخاص بالنسخة نفسها .. -
* التجهيـز لـ اطلاق الأصدار [ 1.4 ] - نحتاج مساعدتكـ !
iPrestege replied to iPrestege's topic in Arabic / العربية
لا نفسة .. بالنسبة للأسم العربي تقدر تبرمجة بـ Lua بتقولي بعض السيرفرات مآفيها وكذآ يمكن رآعيها مآيبي .. بالنسبة للشات غير ممكنة حالياً . -
* التجهيـز لـ اطلاق الأصدار [ 1.4 ] - نحتاج مساعدتكـ !
iPrestege replied to iPrestege's topic in Arabic / العربية
تم افتتاح سيرفر لـ التجربة : mtasa://185.5.55.243:2015 شغال بدون مشاكل للآن .. بعض الأخطاء تم اكتشافها في اللغه العربية : عند الدخول للسيرفر يأتيك الاتصال 6252525 ..s من المفترض يكون الاتصال mtasa://185.5.55.243:2015 طبعاً الخطأ في العربية فقط .. بعد التحدث مع بعض الداعمين Developers اتضح أنة المشكلة ربما تكون من اللغه العربية نفسها حيث تكون عكساً للغه الانجليزية في الكتابه .. لكنة لا يعتبر سبب مؤكد للمشكلة لكنة يعتقد للآن .. هذآ مآ اتصلنا له الى الان .. -
شيء غريب فعلاً لكن تمام معي حالياً .. أعذرني لكن تقدر تسأل Remp ابحث عنه بقسم Resources
-
Not at all , I didn't edit anything just moving a part .
-
الواضح من الجداول أنك تستخدم نسخة قديمة؟ هل فية سبب لاستخدامها؟ كذلك لاتحدث هذه المشكلة معي اقوم باستخدام output عند الضغط بالزر الأيمين للفأره خارج الواجهة ملاحظة : أستخدم أخر أصدار
-
Where's source defined in? And timer also.
-
local playerVotes = {} local nbVotes = 0 createTeam ( 'Donators',0,0,0 ) addCommandHandler( "vr", function( player ) if getPlayerTeam ( player ) and getPlayerTeam ( player ) ~= getTeamFromName ( 'Donators' ) then return outputChatBox ( '[REDO]:You are not a Donator! Please donate to access the command!',player ) end if(playerVotes[player] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", player, 255, 0, 0, true) end if not nbVotes then nbVotes = 0 end playerVotes[player] = true nbVotes = nbVotes + 1 if nbVotes >= getPlayerCount() then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffff "..getPlayerName(player).." #ffffffhas voted for redo", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted!", root, 255, 0, 0, true) elseif nbVotes == 0 then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).."#ffffff voted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted by vote!", root, 255, 0, 0, true) g_ForcedNextMap = currentMap outputChatBox("DEBUG: Next map: "..tostring( getMapName(g_ForcedNextMap) ) ) setTimer(function() nbVotes = 0 end, 150*1000, 1) playerVotes = 0 else outputChatBox("", root, 255, 0, 0, true) playerCount = getPlayerCount ( ) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).." #ffffffvoted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) end end)
-
صحيح طلع عندك end+ ماركزت جيداً لآني أمس سويتة بدونها .. على الرحب والسعه.
-
That's right because 'playerCount' Isn't defined in your code.
-
تاكد انة كلنت. "جانب العميل" طبعاً.
-
local playerVotes = {} local nbVotes = 0 createTeam ( 'Donators',0,0,0 ) addCommandHandler( "vr", function( player ) if getPlayerTeam ( player ) and getPlayerTeam ( player ) ~= getTeamFromName ( 'Donators' ) then return outputChatBox ( '[REDO]:You are not a Donator! Please donate to access the command!',player ) end if(playerVotes[player] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", player, 255, 0, 0, true) end if not nbVotes then nbVotes = 0 end playerVotes[player] = true nbVotes = nbVotes + 1 if nbVotes >= getPlayerCount() then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffff "..getPlayerName(player).." #ffffffhas voted for redo", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted!", root, 255, 0, 0, true) elseif nbVotes == 0 then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).."#ffffff voted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted by vote!", root, 255, 0, 0, true) g_ForcedNextMap = currentMap outputChatBox("DEBUG: Next map: "..tostring( getMapName(g_ForcedNextMap) ) ) setTimer(function() nbVotes = 0 end, 150*1000, 1) playerVotes = 0 else outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).." #ffffffvoted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) end end)
-
للعرب , يختص بالبرمجة MTA هل تؤيد افتتاح منتدى
iPrestege replied to ' ρяofзśŝoя 亗's topic in القسم العام
طبعاً كما قال أعلاهـ .. أي استفسار أرسلي بالخاص. -
I think i have found the problem you have created the team from the admin panel? If YES Then it's the problem make it with a code in the vote script. Try this : local playerVotes = {} local nbVotes = 0 createTeam ( 'Donators',0,0,0 ) addCommandHandler( "vr", function( player ) if getPlayerTeam ( player ) and getTeamName ( getPlayerTeam ( player ) ) ~= 'Donators' then return outputChatBox ( '[REDO]:You are not a Donator! Please donate to access the command!',player ) end if(playerVotes[player] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", player, 255, 0, 0, true) end if not nbVotes then nbVotes = 0 end playerVotes[player] = true nbVotes = nbVotes + 1 if nbVotes >= getPlayerCount() then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffff "..getPlayerName(player).." #ffffffhas voted for redo", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted!", root, 255, 0, 0, true) elseif nbVotes == 0 then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).."#ffffff voted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted by vote!", root, 255, 0, 0, true) g_ForcedNextMap = currentMap outputChatBox("DEBUG: Next map: "..tostring( getMapName(g_ForcedNextMap) ) ) setTimer(function() nbVotes = 0 end, 150*1000, 1) playerVotes = 0 else outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).." #ffffffvoted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) end end) P.S : Please delete the team that you created from the admin panel then start the script with that code i gave you above.
-
local miasta_bg = guiCreateStaticImage ( 25, 25, 300, 75, "files/images/gui/blank.png", false ) -- don't look at the file name function createGUIFrame ( x, y, width, height, parent ) if x and y then if width and height then frame_up = guiCreateStaticImage ( 0, 0, width, 1, "files/images/gui/blank.png", false, parent ) frame_left = guiCreateStaticImage ( 0, 0, 1, height, "files/images/gui/blank.png", false, parent ) frame_down = guiCreateStaticImage ( 0, y, width, 1, "files/images/gui/blank.png", false, parent ) frame_right = guiCreateStaticImage ( x, 0, 1, height, "files/images/gui/blank.png", false, parent ) guiSetProperty ( frame_up, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) guiSetProperty ( frame_left, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) guiSetProperty ( frame_down, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) guiSetProperty ( frame_right, "ImageColours", "tl:FF000000 tr:FF000000 bl:FF000000 br:FF000000" ) end end end createGUIFrame ( 25, 25, 300, 75, miasta_bg ) That's because the function is not handled yet you can try this.
-
Are you sure that the team name is 'Donators' And it's exists?
-
What you mean? Please use /debugscript 3 And tell me if there's bugs or errors .
-
Checking the element exists or no and isPedInVehicle? and vehicle is that vehicle? isElement isPedInVehicle
-
Do you see this? addEventHandler("onClientMarkerHit", getRootElement(), getModelID) Change the root element to the marker variable.
-
local playerVotes = {} local nbVotes = 0 addCommandHandler( "vr", function( player ) if getPlayerTeam ( player ) and getTeamName ( getPlayerTeam ( player ) ) ~= 'Donators' then return outputChatBox ( '[REDO]:You are not a Donator! Please donate to access the command!',player ) end if(playerVotes[player] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", player, 255, 0, 0, true) end if not nbVotes then nbVotes = 0 end playerVotes[player] = true nbVotes = nbVotes + 1 if nbVotes >= getPlayerCount() then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffff "..getPlayerName(player).." #ffffffhas voted for redo", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted!", root, 255, 0, 0, true) elseif nbVotes == 0 then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).."#ffffff voted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted by vote!", root, 255, 0, 0, true) g_ForcedNextMap = currentMap outputChatBox("DEBUG: Next map: "..tostring( getMapName(g_ForcedNextMap) ) ) setTimer(function() nbVotes = 0 end, 150*1000, 1) playerVotes = 0 else outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).." #ffffffvoted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) end end)