xTeacherx
Members-
Posts
54 -
Joined
-
Last visited
Everything posted by xTeacherx
-
مو قال تابل يبي يرسل لك ع الخاص ؟
-
Hi all Cods: window = guiCreateWindow(202,192,655,432,"news",false) showCursor (true) butto = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,window) editBo = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,window) Close = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,window) -------------------------------------------------------------------------- windows = guiCreateWindow(202,192,655,432," Edit news",false) guiSetVisible ( windows, false ) button = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,windows) editBox = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,windows) Closes = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,windows) guiEditSetMaxLength ( editBox, 128 ) ---------------------------------------------------- function eta() if (source == butto) then guiSetVisible ( windows, true ) end end addEventHandler("onClientGUIClick",butto,eta,false) function closeInfo ( ) if ( guiGetVisible ( windows ) == true ) then guiSetVisible ( windows, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Closes, closeInfo) function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Close, closeInfo) function info(text) if source == button then local text = guiGetText ( editBox ) if text and text ~= "eeee" then guiSetText(editBo,""..text.."",editBox) end end end addEventHandler ( "onClientGUIClick", button, info ) ------------------------------------------------------------------------- So now I Dont Have Any Problem . But I Want : ( butto = guiCreateButton ) ( guiSetVisible True ) For Admin ! *( guiSetVisible False ) To Any One .
-
Hi all This Cods @ window = guiCreateWindow(202,192,655,432,"news",false) showCursor (true) butto = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,window) editBo = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,window) Close = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,window) -------------------------------------------------------------------------- windows = guiCreateWindow(202,192,655,432," Edit news",false) guiSetVisible ( windows, false ) button = guiCreateButton(0.8336,0.7662,0.142,0.1366,"Edit",true,windows) editBox = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,windows) Closes = guiCreateButton(0.8336,0.088,0.142,0.1366,"Close",true,windows) guiEditSetMaxLength ( editBox, 128 ) ---------------------------------------------------- function eta() if (source == butto) then guiSetVisible ( windows, true ) end end addEventHandler("onClientGUIClick",butto,eta,false) function closeInfo ( ) if ( guiGetVisible ( windows ) == true ) then guiSetVisible ( windows, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Closes, closeInfo) function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor (false) end end addEventHandler ("onClientGUIClick", Close, closeInfo) function info(text) if source == button then local text = guiGetText ( editBox ) if text and text ~= "eeee" then guiSetText(editBo,""..text.."",editBox) end end end addEventHandler ( "onClientGUIClick", button, info ) -------------------------------------------------------------------------
-
عموما يا ظريف ~ مشكور ع دعمك ~ .
-
hi all this is cod function mta () window = guiCreateWindow(223,43,629,714,"news",false) guiSetAlpha(window,0.6) editBox = guiCreateMemo(0.0207,0.5392,0.965,0.3754,"",true,window) button = guiCreateButton(0.027,0.9202,0.4563,0.0672,"Edit",true,window) g = guiCreateButton(0.3943,0.2115,0.1558,0.0994,"",true,window) vv1 = guiCreateLabel(0.0318,0.5196,0.9412,0.021,"×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××",true,window) guiLabelSetColor(vv1,255,0,0) Close = guiCreateButton(0.5437,0.9202,0.4372,0.0672,"Clear",true,window) addEventHandler ( "onClientGUIClick", editBox, outputEditBox ) guiEditSetMaxLength ( editBox, 128 ) end addCommandHandler("edit", mta) -------------------------------------------------------------------------- function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) end end addEventHandler ("onClientGUIClick", Close, closeInfo) function outputEditBox () local text = guiGetText ( editBox ) editBo = guiCreateMemo(0.0223,0.0322,0.9603,0.493,""..text.."",true,window) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) now i dont have any problem but i wanna ( button = guiCreateButton) true for admini and false for any one
-
>< لول تابل اذا عارف حل لمشكلتي اطرحها واذا منت عارف طاح الحطب ^^ وبالنسبة ترا السكربت شغال
-
السلام عليكم ورحمة الله وبركاته ~ كيفكم عساكم بخيير ~ ع العموم بدخل فالموضوع وموضوعي هو ~ function mta () window = guiCreateWindow(223,43,629,714,"news",false) guiSetAlpha(window,0.6) editBox = guiCreateMemo(0.0207,0.5392,0.965,0.3754,"",true,window) button = guiCreateButton(0.027,0.9202,0.4563,0.0672,"Edit",true,window) g = guiCreateButton(0.3943,0.2115,0.1558,0.0994,"",true,window) vv1 = guiCreateLabel(0.0318,0.5196,0.9412,0.021,"×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××",true,window) guiLabelSetColor(vv1,255,0,0) Close = guiCreateButton(0.5437,0.9202,0.4372,0.0672,"Clear",true,window) addEventHandler ( "onClientGUIClick", editBox, outputEditBox ) guiEditSetMaxLength ( editBox, 128 ) end addCommandHandler("edit", mta) -------------------------------------------------------------------------- function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) end end addEventHandler ("onClientGUIClick", Close, closeInfo) function outputEditBox () local text = guiGetText ( editBox ) editBo = guiCreateMemo(0.0223,0.0322,0.9603,0.493,""..text.."",true,window) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) ----------------------------------------------------------------------------- فكرتي هي سكربت يريح الكثير من التعب يعني : بدل ماتروح لي ملف السكربت وتفتح الملف بالنوت باد وتكتب القوانين وكذا اختصرت كل ذا وخليت اذا الواحد يبي يضيف كلام يضيفه من نفس السيرفر ---------------------------------------------------------------------- بس مشكلتي هي انو ابي button يكون فقط اوبن لي الادمن وغيره مقفول ~ فا اتمنى من البعض يحلو مشكلتي ^^ وسوري ع الكلام الطووووووووووووويل
-
لي معرفة الوقت ~ function showtime () local time = getRealTime() local hours = time.hour local minutes = time.minute local minutes = time.second outputChatBox ( "Local Time: "..hours..":"..minutes..":"..second ) end addCommandHandler("show", showtime ) لي معرفة السنة/الشهر function showtime () local time = getRealTime() local hours = time.year local minutes = time.month local minutes = time.monthday outputChatBox ( "Local Time: "..year..":"..month..":"..monthday ) end addCommandHandler("show", showtime ) اذا اردت معرفة اليوم والشهر اوالخ ..ـ اكتب في اف 8 show
-
tapl كمل ع اكوادي ~
-
Client.lua window = guiCreateWindow(510,257,168,247,"Police cars by iMTMRD",false) bb1 = guiCreateButton(24,215,61,21,"Exit",false,window) guiSetVisible(window,false) bb2 = guiCreateButton(90,215,61,21,"Select",false,window) cargrid = guiCreateGridList(16,32,139,174,false,window) guiGridListAddColumn(cargrid," Your Car",0.3) guiGridListSetColumnWidth(cargrid,1,0.4,true) function closeInfo ( ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor ( false ) end end addEventHandler ("onClientGUIClick", bb1, closeInfo) ----------------------------------------------------------------------- theMarker = createMarker(2484.5788574219, -1667.53125, 13.34375, 'cylinder', 2.0, 255, 0, 0, 150) function tagColorAndSkin (button, state, absoluteX, absoluteY) if (source == theMarker) then guiSetVisible(window,true) showCursor ( true ) end end addEventHandler ("onClientMarkerHit", getRootElement(), tagColorAndSkin) ----------------------------------------------------------------------------------- function populateGridlist() local rootnode = xmlLoadFile("car.xml") if rootnode then for _,group in ipairs(xmlNodeGetChildren(rootnode)) do local row = guiGridListAddRow(cargrid) local name = xmlNodeGetAttribute(group,"type") guiGridListSetItemText(cargrid,row,1,name,true,false) for _,car in ipairs(xmlNodeGetChildren(group)) do row = guiGridListAddRow(cargrid) name = xmlNodeGetAttribute(car,"name") guiGridListSetItemText(cargrid,row,1,name,false,false) guiGridListSetItemData(cargrid,row,1,tostring(id)) end end xmlUnloadFile(rootnode) end end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), function() populateGridlist() end ) Car.xml type="Helicopters"> "548" name="Cargobob" /> "425" name="Hunter" /> "417" name="Leviathan" /> "487" name="Maverick" /> "488" name="News Chopper" /> "497" name="Police Maverick" /> "563" name="Raindance" /> "447" name="Seasparrow" /> "469" name="Sparrow" />
-
Time : 1700 X:2185.88037 y: 1599.43262 z: 68.71986
-
سحر حردقوش ~
-
× السلام عليكم وورحمة الله وبركاته × كيفكم عيال عساكم بخير ~ عموما عندي طلب صعب او تعجيزي ~ اللي هو ~ انا الحين سويت سكربت تسجيل وحاط ( guiCreateEdit ) E-mail : ! اللي ابي اسويه انو لو الاعب حط ايميله تجيله رسالة ع الايميل تشمل الباس + الاسم ~ وسلامتكم ~ !
-
السلام عليكم ورحمة الله وبركاته ~ كيفكم يا عيال عساكم بخير ~ ابي استفسر عن شيء واللي هو : كيف الواحد يطور نفسه في لغة لوا يعني في موقع غير ذا ~؟ اذا في يليتكم تطرحونه لانو الواحد لازم يطور نفسسه ^^ بيسسس
-
تابل مو قصده يبي يصك احد ميوت من اف 1 !!! هو قصده يبي يعطل لي لاعب ال اف 1 عن طريق الادمنية
-
server : function sendmaininfo (source) triggerClientEvent ( source, "gtype", getRootElement(), getGameType()) end client : function gtypeHandler ( message ) guiCreateLabel(0.50, 0.33, 0.96, 0.22, "Game Mode: "..message, true, tabserver) end addEvent("gtype", true) addEventHandler("gtype", getRootElement(), gtypeHandler) client 2 : statsmain = guiCreateWindow ( 200, 200, 500, 500, "userpanel", false ) maintab = guiCreateTabPanel ( 0, 0.06, 1, 1, true, statsmain ) tabserver= guiCreateTab( "stats ", maintab ) كذا ولا فيه اخطاء ؟
-
السلام عليكم ~ ابي اكواد client ^^ =================== Game Mode Game Map Account Admin country
-
هو قصده ~ مثلا هو ادمن ويختار احد من السيرفر ع اساس مايشتغل عند الاعب اف 1 يمنع او يسمح ~ مثل الميوت
-
السلام عليكم :~ ابي ادخل فالموضوع !~ Grid = guiCreateGridList(46,319,162,157,false) guiGridListSetSelectionMode(Grid,2) guiGridListAddColumn(Grid,"Settings",0.2) for i = 1, 8 do guiGridListAddRow(Grid) end guiGridListSetItemText(Grid,0,1,"- Color") guiGridListSetItemColor(Grid,0,1,255,0,0,255) guiGridListSetItemText(Grid,1,1,"- InforMation") guiGridListSetItemColor(Grid,1,1,0,255,0,255) هاذي قائمة وابي منكم : ( Double Click ) يعني مثال اذا ضغطنا ع ( InforMation ) تطلع لنا نافذة ( guiCreateWindow ) اتمنى انكم فهمتو ويش المطلوووب وسلامتكم ~:
-
اتمنى اغلاق الموضوع :~ ويا تابل لك احلى تحيه :~ مشكور وما قصرت :~
-
السلام عليكم ورحمة الله وبركاته :~ الكود : function outputMessage(text) outputChatBox ("Admin :"..text, 155, 50, 255, true ) --output that text end addEvent("ServerOutput",true) addEventHandler("ServerOutput", getRootElement(),outputMessage) مشكلتي انو حطيت كذا كود لي اسم الادمن وماجا :~ هاذا الكود الاصلي وابي اذا تكلمت يجي بدل كلمة ( admin ) اسم اللي تكلم وربي تعبت وانا احاااول مساعدتكم ياعرب
