-
Posts
2,259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Adham
-
getTeamColor -- الحصول علي لون التيم countPlayersInTeam -- عدد الاعبين البالتيم #Server getAccounts -- الحصول علي اسامي الحسابات getAccountName -- حصول علي اسم الحساب removeAccount -- حذف الحساب addAccount -- create Account
-
جرب local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow((screenW - 428) / 2, (screenH - 260) / 2, 428, 260, "Setting Server", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd,false) guiSetAlpha(wnd, 1.00) bb1 = guiCreateButton(10, 28, 124, 54, "Change Moon Size", false, wnd) guiSetProperty(bbb1, "NormalTextColour", "FFFFFEFE") bbb2 = guiCreateButton(152, 28, 124, 54, "create Marker", false, wnd) guiSetProperty(bbb2, "NormalTextColour", "FFFFFEFE") bbb3 = guiCreateButton(294, 28, 124, 54, "Change Sun Size", false, wnd) guiSetProperty(bbb3, "NormalTextColour", "FFFFFEFE") eee1 = guiCreateEdit(10, 98, 124, 48, "", false, wnd) eee2 = guiCreateEdit(294, 98, 124, 48, "", false, wnd) Close = guiCreateButton(152, 197, 124, 53, "Close", false, wnd) guiSetProperty(Close, "NormalTextColour", "FFFFFEFE") bindKey ( "F5", "down", guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler("onClientGUIClick",root, function ( ) if source == bb2 then createMarker ( -2424.584, -607.5998, 132.5625, "cylinder", 1.5, 255, 0, 0, 170 ) end end ) ------------------------------------------------- addEventHandler("onClientGUIClick",root, function ( ) if source == bbb1 then setSunSize ( 5 ) end end ) addEventHandler("onClientGUIClick",root, function ( ) if source == bbb3 then setSunSize ( 5 ) end end ) addEventHandler("onClientGUIClick",root, function ( ) if source == Close then guiSetVisible ( wnd, false ) showCursor ( false ) guiSetInputEnabled(false) end end )
-
او شوف ذا الرد يفتح ف1 وبميدك تعدل علي الف1 ^
-
وضح اكتر يعني وش تبي تعدل علي من ملف الاعدادات من المود من السرفر ^؟
-
addPedClothes هذا الفكشن , تعطي الاعب ملابس الكود : bool addPedClothes ( ped thePed, string clothesTexture, string clothesModel, int clothesType ) مثال الويكي : function onEnterVehicle ( theVehicle, seat, jacked ) if getElementModel ( theVehicle ) == 522 then -- if it's an nrg addPedClothes ( source, "moto", "moto", 16 ) -- add the helmet end end addEventHandler ( "onPlayerVehicleEnter", root, onEnterVehicle ) function onExitVehicle ( theVehicle, seat, jacked ) if getElementModel ( theVehicle ) == 522 then -- if it's an nrg removePedClothes ( source, 16 ) -- remove the helmet end end addEventHandler ( "onPlayerVehicleExit", root, onExitVehicle ) 2- عمل شخصيه createPed Code : ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool synced = true ] ) مثال : function pedLoad ( name ) createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) 3- صنع نار createFire
-
outputConsole هذا الفكشن , يجي لك الكلام بـ ف8
-
طيب شكرا انا عملت لما كلو يكتب في الشات كفو يقولو كفوووووك اشتغل .. بعدين عملته للكونسل م شتغل addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'كفو') then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Console" ) ) ) then outputChatBox("#ff0000x[ هريش ]x #ffffffكفووووووووك #ffcc00@ "..getPlayerName(source).." ",source,255,255,255,true) end end )
-
addEventHandler("onClientGUIClick",root, function () if source == gridlist then local sel = guiGridListGetSelectedItem(gridlist) local text = guiGridListGetItemText(gridlist,sel,1) local player = getPlayerFromName(text) if ( player ) then guiSetText(memo," Name: "..getPlayerName(localPlayer).."\n Serial: "..getPlayerSerial(localPlayer).."\n Email: "..guiGetText (editmail).."\n Card Code "..guiGetText(editcard)) guiSetAlpha(memo, 71) else guiSetAlpha(memo, 0.17) guiSetText ( memo, "" ) end end end ) ذا لما يحدد اسم من القريد لست يجي معلومات في الميمو وشغال تمام الكود دا و ذا الكود اليجي اسمه في قريد لست guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer),false,false) كدا شغال تمام لما حطيطه كدا م شتغل guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x", ""),false,false)
-
م يقول شي لاكن لما اشيل بتاعت الاكواد الاسم بتيجي عادي لاكن لما بحط التيجي بدون اكواد الاسم م تيجي
-
طيب اخ كور تمام ظبت .. انا ابي اسوي لين يجدد اسم من القريد لست يجي في الميمو اسم الاعب و السريال والكتوب في ايدت كارد ظبت معي .. لاكن لما حططت كود ليجي الاسم بدون اكواد م صرت تعمل الكود : addEventHandler("onClientGUIClick",root, function () if source == gridlist then local sel = guiGridListGetSelectedItem(gridlist) local text = guiGridListGetItemText(gridlist,sel,1) local player = getPlayerFromName(text) if ( player ) then guiSetText(memo," Name: "..getPlayerName(localPlayer).."\n Serial: "..getPlayerSerial(localPlayer).."\n Email: "..guiGetText (editmail).."\n Card Code "..guiGetText(editcard)) guiSetAlpha(memo, 71) else guiSetAlpha(memo, 0.17) guiSetText ( memo, "" ) end end end ) الكود دا لما حطيطه بدون كود guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x", ""),false,false)
-
انا ابي كدا لازم يكتب في ال3 ايدت لاكن م يجي في القريد فهمتني؟
-
م ظبت .. الكودين + انا ابيه لازم يكتب في ال3 ايديت ويحدد شي من الكومب بوكس .. ويجي في القريد لست انا عامل قريد لست في 3 كلوم اول كلوم يجي في رو اسم الاعب وبعدين الكلوم التاني يجي فيه الحدهه من الكومب بوكس وتالت كلوم يجي في الرو سريال الاعب فقط بس
-
سلام عليكم انا مسوي لين يكتب في الايديت الاول والتاني والتلت ويختار شي من الكوم يجي في القريد لست في رو 2 الختارو في كوم بوكس .. بعدين اول كوم يجي الرو فيه اسم الاعب والتالت سريال الاعب .. لاكن م يبعت وما يجي في قريد .. #Client addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local item = guiComboBoxGetSelected ( GUIEditor.combobox[1] ) local text = guiComboBoxGetItemText ( GUIEditor.combobox[1] , item ) local name = guiGetText( editname ) local maill = guiGetText ( editmail ) local card = guiGetText ( editcard ) if name == "" or mail == "" or card == "" or text == "" then triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, maill, card, text ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg("تم إرسال الرسالة",true) end end end ) addEvent ( "RentSystem:onAccept", true ) addEventHandler ( "RentSystem:onAccept", root, function () local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x", ""),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(localPlayer),false,false) end ) #Server addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function () triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text) end )
-
م صارت تفتح .. bindKey ( Command, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) اعدادات Command = "F10" -- زر فتح لوحه الإشتراك
-
طيب , لو انا ينفع اعمله كدا addCommandHandler ( Command, function ( ) guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) الاعدادت Command = "F10"
-
السلام عليكم ورحمه الله وبركاتة .. اليوم مسوي لوحه تفتح بـ اف"10" بعدين انا سويتها كدا ولوحه تفتح من ف8 bindKey ( Settings.createOrderWindow_BTN, "down", guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addCommandHandler ( Settings.manageRent, guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) ملف اعدادت كلنت : Settings = { createOrderWindow_BTN = "f10"; -- manageRent = "manageRent"; }; مش شغال معي .
-
getPlayerIdleTime وش يسوي + 2 فكشن احطه علي كل الاعبين وش و
-
سلام عليكم انا ابي لما الاعب لما يقعد في السرفر افك 60 سنيه يطلع فوق راسه AFK ولما يمشي تتشال خلأص
-
مساعده شباب ابي اخلص مودي
-
طلب بعد اذنكم انا الكود ذا ابيه لما يكتب في ال3 ايديت و يحدد في الكومب بوكس يجي في قريد لست في ال3 كلوم اول كلوم اسم الاعب تاني كلوم النا محدده في الكومب بوكس والتلت سريال الاعب انا عملت محاوله بس مدري شغال للكل ولا لا بس شغال لي addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1]) then local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) if ( guiGetText ( editname ) and guiGetText ( editcard ) and guiGetText ( editmail ) ~= '' ) then local row = guiGridListAddRow (gridlist) guiSetEnabled ( source, false ) outMsg("تم إرسال الرسالة",true) triggerServerEvent("Sorry",localPlayer) end end end) addEvent("AddMezo",true) addEventHandler("AddMezo",root, function() local item = guiComboBoxGetSelected ( com ) local text = guiComboBoxGetItemText ( com , item ) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x", ""),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(localPlayer),false,false) end) addEvent("Sorry",true) addEventHandler("Sorry",root, function(text1,text2,text3) triggerClientEvent("AddMezo",root,text1,text2,text3) end)