-
Posts
2,156 -
Joined
-
Last visited
-
Days Won
6
Everything posted by ' A F .
-
فيه اكثر من موضوع بنفس الفكرة ابحث
-
setTimer getElementsByType -- player getPlayerPing killPed
-
addCommandHandler("fix_" , function ( player ) local aVehicle = getPedOccupiedVehicle ( player ) -- نجيب سيارة الاعب if ( aVehicle ) then -- نتحقق لو الاعب راكب السيارة fixVehicle ( aVehicle ) -- نصلح السيارة end end )
-
اللهم احفظ بلادنا وبلاد المسلمين من كيد الكائدين وعبث العابثين اللهم من اراد بلادنا بسوء فاشغله بنفسه ورد كيده في نحره .
-
setElementData onVehicleStartEnter getElementData
-
addEventHandler( 'onPlayerWasted', root, function ( _, killer ) if ( getElementType( killer ) == 'player' and killer ~= source ) then outputChatBox( getPlayerName( killer ) .. ' Has Killed ' .. getPlayerName( source ), root, 255, 0, 0, true ) end end ) اتوقع ذا نفس الكود الي انا طرحته ؟؟
-
اطرح كودك عشان نصلحه لك
-
الدي بوق يقولك شيء ؟؟ تحقق ان الي قتل مو السورس addEventHandler("onPlayerWasted",root, function ( _ , killer ) if ( killer and killer ~= source and getElementType ( killer ) == "player" ) then outputChatBox(getPlayerName(killer).." Has Killed "..getPlayerName(source),root,255,0,0,true) end end )
-
بـ التوفيق لك ,
-
اختصر لك الوضع addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( getElementType ( source ) == "gui-button" ) then guiAntiFlood(source,2000) end end ) لاتنسى حط اليوزفل فانكشن حق ميزو
-
^ اتوقع يقدر يسويها بـ استخدم split Ex: local text = "Admin,Console,Support,Everyone" for i=1,4 do local Rank = split (text,",") outputChatBox(Rank[i]) end
-
addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.gridlist[1] ) then local Select_ = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( Select_ ~= -1 ) then if ( getPlayerFromName ( guiGridListGetItemText(GUIEditor.gridlist[1],Select_,1) ) ) then triggerServerEvent("getSerial", localPlayer,getPlayerFromName(guiGridListGetItemText(GUIEditor.gridlist[1],Select_,1))) end else guiSetText(GUIEditor.label[2],"Name : N/A") guiSetText(GUIEditor.label[3],"Serial : N/A") end end end )
-
مدري مافهمتك زين بس اتوقع تقصد كذا صح ولا ؟ string.match
-
[Youtube] شرح التسجيل في المنتدى ، شرح الاقسام العربية
' A F . replied to Mr.CoR's topic in Arabic / العربية
شرح رائع الصراحة .. فديت الصوت انا <3 -
addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then local Selected = guiGridListGetSelectedItem ( Places ) if ( Selected ~= -1 ) then local x,y,z = unpack( guiGridListGetItemData ( Places , Selected , 1 ) ) if ( getPedOccupiedVehicle ( getLocalPlayer ( ) ) ) then setElementPosition ( getPedOccupiedVehicle ( getLocalPlayer() ) , x , y , z ) else setElementPosition ( getLocalPlayer() , x , y , z ) end end end end )
-
getPedOccupiedVehicle
-
addCommandHandler("Save", function ( Player ) -- إضافة أمر . local pAccount = getPlayerAccount ( Player ) -- نجيب حساب الاعب if ( not isGuestAccount ( pAccount ) ) then -- نسوي تحقق اذا الاعب مسجل دخول setAccountData ( pAccount , "Money" , getPlayerMoney ( Player ) ) -- نقوم بحفظ فلوس الاعب على حساب end end) addCommandHandler("Get", function ( Player ) local pAccount = getPlayerAccount ( Player ) -- نجيب حساب الاعب if ( not isGuestAccount ( pAccount ) ) then -- نسوي تحقق اذا الاعب مسجل دخول if ( getAccountData ( pAccount , "Money" ) ) then -- نسوي تحقق لو كان حساب الاعب معاه الداتا من قبل setPlayerMoney ( Player , tonumber ( getAccountData ( pAccount , "Money" ) ) ) -- نعطي الاعب فلوس الي سوينا لها حفظ end end end)
-
والله م اعرف لوحة الشرطي الي بطارة . . getPedOccupiedVehicle -- عشان تجيب سيارة الاعب getVehicleController -- عشان تجيب السواق
-
تسسسلم حبيبي ع راسي والله <3 , آمين ويآك والمسلمين آجميعن <3
-
-- Client addEventHandler("onClientGUIClick",root, function ( ) if ( source == Button ) then if ( guiGetText ( wnd ) ~= "" and getPlayerFromName ( guiGetText ( wnd ) ) and guiGetText(editsabab) ~= "" ) then triggerServerEvent("onSlap",localPlayer,guiGetText(editsabab),guiGetText(wnd)) end end end) -- Server addEvent("onSlap",true) addEventHandler("onSlap",root, function ( Resaon , Player ) if ( getPlayerFromName ( Player ) ) then killPed ( getPlayerFromName ( Player ) ) outputChatBox (" #B611CF* " ..getPlayerName(getPlayerFromName(Player)).. " #B611CF has been slapped by #B611CF " ..getPlayerName(source).. "#B611CF ("..Resaon..")",root,189,13,215, true) end end )
-
addEventHandler("onElementClicked",root, function ( _ , _ , Player ) if ( getElementType ( Player ) == "player" ) then -- if ( Player == source ) then return outputChatBox("* لايمكنك الظغط على نفسك",Player,255,0,0,true) end triggerClientEvent ( Player , "openGui" , Player ) triggerClientEvent(Player,"openGui123",Player,getPlayerName(source)) end end) -- Client addEvent("openGui123",true) addEventHandler("openGui123",root, function ( Name ) guiSetText ( wnd , tostring ( Name ) ) end)
-
تم عدلت الكود , انا ماكنت حاطها عشان كنت اجرب ع نفسي .
-
Client Side : addEvent("OpenWindow",true) addEventHandler("OpenWindow",root, function ( WasClicked ) outputChatBox(getPlayerName(WasClicked).." Ping : "..getPlayerPing(WasClicked)) end) Server Side : Group = "Console" addEventHandler("onElementClicked",root, function ( Button , State , Player ) if ( Button == "left" and State == "down" ) then if ( getElementType ( source ) == "player" ) then if ( Player == source ) then return outputChatBox("* لايمكنك الظغط على نفسك",Player,255,0,0,true) end if ( not isGuestAccount ( getPlayerAccount ( Player ) ) ) then if ( isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)),aclGetGroup(Group)) ) then triggerClientEvent ( Player , "OpenWindow" , Player , source ) else outputChatBox("* you are not police or admin ",Player,255,0,0,true) end else outputChatBox("* please login",Player,255,0,0,true) end end end end ) طبعأ هاذا مثأل لو ظغطت على اللاعب يطلع لك بنقه واسمه
-
سوي ترآيقر triggerClientEvent