Alix2015 Posted December 8, 2015 Share Posted December 8, 2015 السلام عليكم ورحمه الله وبركاته ابي نساعدوني الان انا عملت لوحه دي اكس وعملت عليها Dx text الان ابي يجيب لي اكثر واحد يقتل بتيم Police ممكن تساعدوني Link to comment
iPrestege Posted December 8, 2015 Share Posted December 8, 2015 'onPlayerWasted' getPlayerTeam getTeamName table استخدم الوظائف وجداول. Link to comment
Alix2015 Posted December 8, 2015 Author Share Posted December 8, 2015 تفضل ذا للتيم نيم function teamName ( source, key, newTeamName ) local playerTeam = getPlayerTeam ( source ) -- get the player's team if ( playerTeam ) then -- if he's on a team local oldTeamName = getTeamName ( playerTeam ) -- get the team's current name setTeamName ( playerTeam, newTeamName ) -- change its name outputChatBox ( "Changed " .. getPlayerName ( source ).."'s team name from " .. oldTeamName .. " to " .. newTeamName ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler ( "teamname", teamName ) سيرفر سايد Link to comment
Alix2015 Posted December 8, 2015 Author Share Posted December 8, 2015 مدري مش عارف الكود مو زابط ابي واحد او مش فاهم للفنكشن Link to comment
Abdul KariM Posted December 8, 2015 Share Posted December 8, 2015 تفضل ذا للتيم نيم function teamName ( source, key, newTeamName ) local playerTeam = getPlayerTeam ( source ) -- get the player's team if ( playerTeam ) then -- if he's on a team local oldTeamName = getTeamName ( playerTeam ) -- get the team's current name setTeamName ( playerTeam, newTeamName ) -- change its name outputChatBox ( "Changed " .. getPlayerName ( source ).."'s team name from " .. oldTeamName .. " to " .. newTeamName ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end addCommandHandler ( "teamname", teamName ) سيرفر سايد ناسخ مثال الويكي Link to comment
iPrestege Posted December 8, 2015 Share Posted December 8, 2015 https://forum.multitheftauto.com/viewtopic.php?f ... 15#p792489 هذا تابل مسوية اللي تبية نفسه بس عدل عليه بالتيم واللي تبغية وخلاص . Link to comment
Alix2015 Posted December 8, 2015 Author Share Posted December 8, 2015 ممكن سكايب حقك برسيتج ؟ Link to comment
iPrestege Posted December 8, 2015 Share Posted December 8, 2015 انا لا استعمل برنامج السكايب او الواتساب او الفيسبوك او الانستقرام او جميع البرامج الخاصة بالتواصل . Link to comment
Alix2015 Posted December 8, 2015 Author Share Posted December 8, 2015 طيب كيف ممكن اتواصل معاك ؟ محتاج الكود حاهز لاي صرت عامل خبيصه ض Link to comment
iPrestege Posted December 8, 2015 Share Posted December 8, 2015 جاهز هذا مهو كود لحالة هذا مود لحالة عموماً اطرح اللي سويتة ومحد بيقصر معك . Link to comment
Alix2015 Posted December 8, 2015 Author Share Posted December 8, 2015 الان شوف ذا ممكن تشرح لي عشان اتعلم ؟ addEventHandler("onPlayerWasted", root, function(_, killer) if killer and getElementType(killer) == "player" and killer ~= source then local checkGuest = getPlayerAccount(killer) if not isGuestAccount(checkGuest) then local Tkill = tonumber(getAccountData(checkGuest, "kills") or 0) if (Tkill+1 >= 1) then setAccountData(checkGuest, "kills", 0) setAccountData(checkGuest, "Level", (getAccountData(checkGuest, "Level") or 0) + 1) local TopTable = {} for i, account in ipairs(getAccounts()) do table.insert(TopTable, {account, (getAccountData(account, "Level") or 0)}) end table.sort(TopTable, function(a, b) return a[2] > b[2] end) outputChatBox("Player Name: "..(getAccountData(TopTable[1][1], "name") or "N/A").." | Level: "..TopTable[1][2], killer, 255, 255, 255) else setAccountData(checkGuest, "kills", Tkill+1) end end end end) addEventHandler("onPlayerLogin", root, function(_, account) setAccountData(account, "name", getPlayerName(source)) end) addEventHandler("onPlayerChangeNick", root, function(_, new) local account = getPlayerAccount(source) if not isGuestAccount(account) then setAccountData(account, "name", new) end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now