-
Posts
1,849 -
Joined
-
Last visited
-
Days Won
6
Everything posted by nxFairlywell
-
setElementData guiGetText onPlayerChat triggerServerEvent triggerClientEvent
-
اتمنى لك التوفيق ولسيرفرك فيه نقاط مهمة ابي اوضحها لك 1- التشويق - يعني سوي اشياء مو موجوده بباقي السيرفرات , اشياء جديده تخليني اجيك انت بالذات 2 - الصرامة في التعامل مع الزوار - يعني مو أي زائر تعطيه وضعية الميانة من اول مرة 3 - إدارة السيرفر إحرص أن تكون من ناس فاهمين و يقدرون مسؤوليتهم بالعربي لا تعطي بزارين ---------------------- بإذن الله إذا اتبعت هذي الثلاث خطوات الأساسية بينجح سيرفرك موفق
-
وين الكود اللي يجيب اسماء اللاعبين وحساباتهم بشوفه
-
إذا كان قصدك تحول مبلغ مالي لعدد من الذهب استخدم ذا الكود function convertMoneyToGold ( money ) if type(money) == "number" then if money > 0 then local gold = money / 4 return gold end else error("@argument 1 money #number > got "..tostring(type(money)).." .") end return nil end for k , v in ipairs(getElementsByType("player")) do outputChatBox(getPlayerName(v).." Gold's : "..tostring(convertMoneyToGold(getPlayerMoney(v))), v) end
-
حبيبي انت ناسخ التوقيع انا مو حاط اي كود
-
عدلته , جرب اذا ماضبط يعني المشكله من عندك او من لوحتك حط المتغيرات على نفس الازرار
-
يعني مصمم سكربت تاج كامل و مو عارف تحط اللون
-
-- Client addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[1] ) then local row , col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if row ~= -1 then local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], row, col ) local money=tonumber(guiGetText(GUIEditor.edit[1])) triggerServerEvent("Floos", localPlayer, money, getPlayerFromName(playerName)) else outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", 255, 0, 0, true) end end end ) -- Server addEvent("Floos", true) function giveMoney( amount,plr ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then local name = getPlayerName(source) local Money = getPlayerMoney(source) if Money == 0 then return end if tonumber(amount) then takePlayerMoney(source,tonumber(amount)) givePlayerMoney(plr,tonumber(amount)) outputChatBox(getPlayerName(source).." #ffffffGive "..getPlayerName(plr).." #00ff00$"..tostring(amount), root, 255, 255, 255, true) end end end addEventHandler("Floos", root, giveMoney)
-
guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName triggerServerEvent tonumber givePlayerMoney
-
انا مافهمتك ، وضح وش تبي بالضبط
-
function iis( team ) if isElement( team ) then if getElementType( team ) == "team" then return true else return false end end return false end function getPlayersInTeam( teamName ) local t={} if type( teamName ) == "string" then local team=getTeamFromName( teamName ) if iis( team ) then for id,play in ipairs( getElementsByType("player") ) do if getPlayerTeam( play ) == team then table.insert( t, play ) end end else return nil end end return t end
-
local numbers={ 1, 2, 3, 4, 5, 6, 100, 200, 300, 400, 800, 2000 } function getRandomNumber( table ) local count=#table local random=numbers [ math.random( 1, count ) ] print( tostring( random ) ) end getRandomNumber(numbers)
-
فزنا ترى بلنتيات
-
بلنتيات ترى
-
forum.mtasa.com
-
.____. حتى كودك مو شغال + اما ماجربت كودي و سويته بالجوال @صاحب الموضوع تقدر تسوي تايمر و تزود على اي متغير تحطه كل ثانيه لين 5 ثواني و تقفل التايمر وكل مايكتب بالشات تحط للمتغير تو سترنق وتحطه بالشات اذا ما اشتغل الكود شف اي كود من اكواد الشباب فوق و سو نفس الطريقه
-
local count={} addEventHandler("onPlayerChat", root, function( msg, tp ) if count[source] == nil then count[source]=1 setTimer( function() count[source]=nil end, 5000, 1 ) else cancelEvent( ) outputChatBox("Don't spam", source) end end )
-
القدس
-
local sounds={ "sounds/zahr1.mp3", "sounds/zahr2.mp3", "sounds/zahr3.mp3", } local num = 1 addEventHandler("onClientResourceStart", resourceRoot, function () sound=playSound( sounds[num], false ) setSoundVolume( sound, 1 ) end ) addEventHandler("onClientSoundStopped", sound, function( rsn ) if rsn == "finished" then destroyElement( sound ) if num == #sounds then num=1 playSound( sounds[num], false ) return end if num ~= #sounds then num=num+1 playSound( sounds[num], false ) return end end end )
-
fileOpen fileCreate fileDelete
