i S6O
Members-
Posts
437 -
Joined
-
Last visited
Everything posted by i S6O
-
هههههههههههههههههههه طيب اتحداك تستخدم setElementAlpha( thePlayer, 0 ) في كلنت ويشتغل
-
ههههههههههههههههههههههههههههههههههههههه اللهم اني صايم بس ههه ههههههههههههههههههههههه
-
شف ذا .. ثم راجع الويكي قبل لاتككلم function printAllData ( thePlayer ) local playerAccount = getPlayerAccount( thePlayer ) -- get his account if ( playerAccount ) then -- if we got the account then local data = getAllAccountData( playerAccount ) -- get data count = 0 for _ in pairs(data) do count = count + 1 end -- get the count outputChatBox ( "table holds " .. count .. " entries" ) -- output number of rows if ( data ) then for k,v in pairs ( data ) do outputChatBox(k..": "..v) -- print the key and value of each entry of data end end end end addCommandHandler( "getall", printAllData ) يعني thePlayer فقط للسيرفر
-
Not Tested. --ServerSide function Kill ( thePlayer ) killPed ( thePlayer,thePlayer ) end addEvent ( 'kill',true ) addEventHandler( 'kill', root, Kill ) --ClientSide local plr = getLocalPlayer ( ) ListCol = { -- X, Y, W, H [1] = { -404.13677978516, 1761.6762695313, 50, 10 } } ListColorCol = { -- X, Y, W, H [1] = { -404.13677978516, 1761.6762695313, 50, 10 } } ListSkins = { -- skin Number [1] = { 293 } } for i, v in ipairs ( ListColorCol ) do createRadarArea( v[1], v[2], v[3], v[4] ) end for i, v in ipairs ( ListCol ) do local Col = createColRectangle ( v[1], v[2], v[3], v[4] ) addEventHandler ( 'onColShapeLeave', Col, LeaveCol ) addEventHandler ( 'onColShapeHit', Col, EnterCol ) end function EnterCol ( ) for i, get in ipairs ( ListSkins ) do if ( getElementModel ( plr ) == get[1] ) then toggleControl ( plr, "fire", true ) toggleControl ( plr, "aim_weapon", true ) toggleControl ( plr, "vehicle_fire", true ) else triggerServerEvent ( 'kill',plr ) outputChatBox ( 'Cant Join and you not skin 293' ) end end end function LeaveCol ( ) toggleControl ( plr, "fire", false ) toggleControl ( plr, "aim_weapon", false ) toggleControl ( plr, "vehicle_fire", false ) end -- Edited Up -- ظبطت تقريباً الاكواد مافيها مشاكل اتوقع *
-
اما قريوي هههههههههههههههههههههههههههه
-
اسمي عبادي يقلون لي ي زبادي وين التدليع
-
استخدم على سيرفر افضل وترا فنكشن سيرفر وكلنت !
-
ابداع سيرفرك كلام .. باذن الله يصير من افضل سيرفرات
-
ابداع سيرفرك كلام .. باذن الله يصير من افضل سيرفرات
-
طيب بها الكود يمديني لو تيم الاعب مثالاً nil .. مايصير شيء صح ؟
-
طيب لاهنت صحح تحقق حقي عشان افهم بس
-
جرب + ذا ينفع على كل التيمات ماعاد الشرطه ! .. مثل ماطلبت marker = createMarker ( ... ) function Test ( plr ) if ( getTeamName( getPlayerTeam( plr ) ) == "Police" ) then outputChatBox ( 'Cant You Give Heal..' ) else setElementHealth ( plr,100 ) setPedArmor ( plr,100 ) end end addEventHandler ( 'onMarkerHit', marker, Test )
-
جرب تطفي مود play ااو gamemod حقك .. !
-
ماقصرت عع النقل ,, بالتوفيق
-
--ServerSide. killPed. isElement(vehicle) > destroyElement. setElementFrozen. setElementPosition. Edited.
-
في الخدمه .. صيام مقبول وافطائر شهي 6:59 ساعه عندي شوي وياذن عندنا
-
نسيت تسوي كولمن جربته شغال عندي .. ! GUIEditor = { gridlist = {}, } wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "لسته", 0.9) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetVisible ( wnd ,false ) ---------------- bindKey("F6", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- list = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for i,v in ipairs ( list ) do Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], Row, 1, tostring ( v [ 1 ] ), false, false) guiGridListSetItemData ( GUIEditor.gridlist[1], Row, 1, tostring ( v [ 2 ] )) guiGridListSetItemColor(GUIEditor.gridlist[1],Row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Start ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Link = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) sound = playSound ( tostring ( Link ), true ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Stop ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end end end )
-
-- اقراء الويكي -- root = getElementRoot() addEventHandler("onPlayerLogin", root, function() outputChatBox(getPlayerName(source).." has logged in!", root) end ) --يعني ماتفرق لوكتبت root or getElementRoot() .. --وهذا مثال ثاني function Click ( ) if source == button1 then elseif source == button2 then end end addEventHandler( 'onClientGUIClick', root, Click ) -- معناته يربط بين اشياء واجد
-
ليه كل مواضعيك يجيه مشاركات واجد ثم اخر شيءتكتب تم الافادة ومحط عطاك شيء
-
--سم مجرب وشغال -- بس عليك انك تحدد الصورة على احداثيات الزر -- يعني تسوي تقريبا كبر الزر بس صورة فهمت علي ؟؟ GUI = { button = {}, staticimage = {}, } GUI.button[1] = guiCreateButton(39, 44, 162, 33, "مثال", false, GUI.window[1]) GUI.staticimage[1] = guiCreateStaticImage(459, 343, 73, 26, "NameOfPng.png", false) -- هنا نسوي صورة guiSetVisible ( GUI.staticimage[1],false ) -- نخفي الصورة عشان ماتطلع على طول function enterleavecursor ( ) if source == GUI.button[1] then -- اذا لمس الزر guiSetVisible ( GUI.staticimage[1],true ) -- نظهر الصورة else guiSetVisible ( GUI.staticimage[1],false ) -- اذا راح عن الزر نخفي الصورة end -- انهاء if end -- انهاء فنكشن addEventHandler ( 'onClientMouseEnter', root, enterleavecursor ) -- اذا لمس الزر addEventHandler ( 'onClientMouseLeave', root, enterleavecursor ) -- اذا ابعد عن الزر
-
طيب شف مثال على تريقو من سيرفر الى كلنت -- ServerSide function EnterSpawn(plr) if ( getTeamName( getPlayerTeam( plr ) ) == "alkmasha" ) then local accName = getAccountName ( getPlayerAccount ( plr) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "alkmasha" ) ) then triggerClientEvent ( plr,'OpenWindow',plr ) end end end -- ClientSide window = guiCreateWindow(.....) function onOpenWindow ( ) guiSetVisible ( window,true ) showCursor( true ) end addEvent( 'OpenWindow',true ) addEventHandler( 'OpenWindow',root,onOpenWindow )
-
الكود سيرفر موب كلنت اذا الحدث كلنت سوي تريقو
