- 
                Posts329
- 
                Joined
- 
                Last visited
Everything posted by ` Allawi
- 
	مفيد جدا تشكر عليه
- 
	if plr and isPlayerAdmin(plr) then ^ استبدل هذا بسطر 13
- 
	string.gsub
- 
	addCommandHandler restartResource
- 
	استبدل سطر 6 بهذا السطر addEventHandler ( "onPlayerWasted", root, deathCheck )
- 
	الكود سليم اللي طرحته تاكد من الكوادت الباقيه اذا كان في كودات غيره
- 
	شكراً على التنبيه تم التعديل
- 
	الكود التالي بالنسبة للكيك والباند -- Server addEventHandler("onPlayerQuit",root, function(quitType,reason) if quitType == "Kicked" or quitType == "Banned" then outputChatBox("Reason: "..reason,root,255,0,0) end end ) أما بالنسبة للميوت تعدل على لوحة الأدمنية
- 
	:استخدم التحقق التالي if getAccountSerial(getAccount(userName)) == getPlayerSerial(theElement) then
- 
	القسم غلط :استخدم الوظيفة التالية table.concat :مثال من الويكي -- Define our function that will handle this command (which can accept a variable number of arguments after commandName) function consoleCheckParameters ( playerSource, commandName, ... ) -- If a player, not an admin, triggered it, if playerSource then local arg = {...} -- Get the number of arguments in the arg table (arg table is the same as: {...}) local parameterCount = #arg -- Output it to the player's chatbox outputChatBox ( "Number of parameters: " .. parameterCount, playerSource ) -- Join them together in a single comma-separated string local stringWithAllParameters = table.concat( arg, ", " ) -- Output this parameter list to the player's chatbox outputChatBox ( "Parameters passed: " .. stringWithAllParameters, playerSource ) end end -- Attach the 'consoleCheckParameters' function to the "check_parameters" command addCommandHandler ( "check_parameters", consoleCheckParameters )
- 
	جرب كذا addEventHandler("onClientGUIClick",guiRoot, function() if ( source == GUIEditor.button[5] ) then triggerServerEvent('JetPack', localPlayer) end end ) addEvent("close",true) addEventHandler("close",root, function() if GUIEditor.button[5] then guiSetEnabled(GUIEditor.button[5], false) setTimer( guiSetEnabled, 300000, 1,GUIEditor.button[5], true ) end end ) addEvent("open",true) addEventHandler("open",root, function() if GUIEditor.button[5] then guiSetEnabled(GUIEditor.button[5], true) end end )
- 
	نعم واستقبل الترايقر في حدث الضغط
- 
	بالمتغير والتحققات تسويه
- 
	:استخدم الطريقة الثانية addEvent("example",true) addEventHandler("onClientGUIClick",guiRoot, function() if source == button then -- your code addEventHandler("example",root, function() -- your code end ) end end )
- 
	ماتقدر بنفس اسم من اسماء الاحداث
- 
	حياك الله
- 
	SSerial = { ['Temperrr'] = '6C797A27C0E907998DB44774CFA6A9F3', } function chatSoundColor ( msg ) local theCurrentAccount = getPlayerAccount( source ) local Serial = SSerial[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial == getPlayerSerial ( source ) then triggerClientEvent ( getRootElement(), "onPlaysounds", resourceRoot ) cancelEvent() local chatterName = getPlayerName ( source ) outputChatBox ("#ff0000[#ffffffV#000000.#ffffffI#000000.#FFFFFFP#FF0000]"..chatterName, getRootElement(), r, g, b, true ) end end end addEventHandler("onPlayerChat", getRootElement(), chatSoundColor)
- 
	القسم غلط وايضا وضح وش بتسوي بالضبط
- 
	"onClientGUIClick" triggerServerEvent redirectPlayer
- 
	:استخدم الوظيفة التالية setTimer مع المتغيرات
- 
	"onClientPlayerWeaponFire"
- 
	local Query = executeSQLQuery("SELECT acc,points FROM PointsDerby")

 
         
                