==>ҭᾄlᾄl
Members-
Posts
299 -
Joined
-
Last visited
Everything posted by ==>ҭᾄlᾄl
-
bool givePlayerMoney ( player thePlayer, int amount ) Required Arguments thePlayer: the player you are giving the money to. --هو اللاعب الذي سوف تعطيه المال amount: a positive integer number specifying the amount of money to give to the player.--المال الذي سوف تعطيه الاعب bool and player and int --باختصار الي باللون الاخضر لا تكتبها في الكود في النهايه سوف يصبح الكود كذا givePlayerMoney ( source , 1000) سوف يعطي اللاعب 1000 ملاحظه:- الرجاء استخدام الكود سيرفر وليس كلنت لانه اذا كان كلنت لن يسحب شي وتعلم الانجليزي لانها مهمه في البرمجه اذا كان في خطا العذر والسموحه
-
else مدري وش تبي ما فيه if عشان تكتبها جرب ذا addEvent("infoB1", true) addEventHandler("infoB1", getRootElement (), function() local playermoney = getPlayerMoney ( ) outputChatBox("#FFFF1A[#FFFFFF "..getPlayerName(source).." #FFFF1A] is Poor He Have : #FFFF1A[#00FF00 "..playerMoney.."$ #FFFF1F] ",root,255,255,0,true) end)
-
getPlayerName(thePlayer) ???????? ---سيرفر function open() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then---Admin اسم القروب triggerClientEvent(source,"openVIP",source) end end addEvent("onOpen",true) addEventHandler("onOpen",getRootElement(),open) ---كلنت function open() triggerServerEvent("onOpen",getLocalPlayer()) end bindKey("F4","down",open) function vip() if guiGetVisible(GUIEditor_Window[1]) then---GUIEditor_Window[1] اسم النافذه guiSetVisible(GUIEditor_Window[1],false)---GUIEditor_Window[1] اسم النافذه showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor_Window[1],true)---GUIEditor_Window[1] اسم النافذه showCursor(true) guiSetInputEnabled(true) end end addEvent("openVIP",true) addEventHandler("openVIP",getRootElement(),vip)
-
في مود مركب في كل السيرفر اسمه joiquit تلقاه في الجيم بلاي عدل عليه وبس
-
---كلنت function buyinv() if ( source == b ) then--غير b الى اسم الزر triggerServerEvent("inv",getLocalPlayer()) end end addEventHandler("onClientGUIClick",getRootElement(),buyinv) ---سيرفر function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv)
-
انت ما فهمته هو يبي تلوين الزر ما يبغى تلوين النص
-
ابي كود الغاء الوضيفه حاولت اسويه وما ظبط هذا الكود function onGuiClick (button, state, absoluteX, absoluteY) if ( source == Button ) then function narBullets() local x,y,z = getPedWeaponMuzzlePosition(localPlayer) x2,y2,z2 = getPedTargetCollision(localPlayer) if not x2 then x2,y2,z2 = getPedTargetEnd(localPlayer) end dxDrawLine3D(x,y,z, x2,y2,z2, tocolor(255,0,0), 2) setTimer ( function() cancelEvent () end, 5000, 1 ) end addEventHandler("onClientRender", root, narBullets) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
-
انا عندي ماركر واذا جيت عليه بالسياره ابيه يركب وزنية سويت الكود ولكن ما ظبط هذا الكود الي فيه كود تركيب الوزنيه function MarkerHit(thePlayer, source) if tCan[thePlayer] ~= true then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) tCars[thePlayer] = createVehicle ( 411, x + 8, y - 8, z ) warpPedIntoVehicle(thePlayer,tCars[thePlayer]) tCan[thePlayer] = true local veh = getPedOccupiedVehicle(source) -- احضار سيارة الاعب setVehicleHandling(veh,"mass", 1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit )
-
function showGUI () guiSetVisible (GUIEditor_Window[1],true) showCursor (true) end addEvent ("showGUI",true) addEventHandler ("showGUI",getRootElement(),showGUI) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.2906,0.2943,0.3477,0.3385,"Car Spawn",false) guiSetVisible (GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,144,427,30,"Get",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,177,427,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(173,-6839,5,768,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) Infernus = guiCreateGridList(9,21,427,120,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(Infernus,2) guiGridListAddColumn(Infernus,"Car name",0.2) guiGridListAddColumn(Infernus,"Health Car",0.2) for i = 1, 3 do guiGridListAddRow(Infernus) end guiGridListSetItemText(Infernus,0,1,"sultan") guiGridListSetItemText(Infernus,1,1,"Infernus") guiGridListSetItemText(Infernus,2,1,"NRG-500") GUIEditor_Memo[1] = guiCreateMemo(13,217,423,34,"Create Your car then Press \"Get\" _By-NicKeL'z",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.3242,0.013,0.3516,0.0521,"Right click to begin - /guihelp for feature details",true) guiLabelSetColor(GUIEditor_Label[1],255,70,70) guiSetFont(GUIEditor_Label[1],"default-bold-small") --- --- --- --- ---
-
تسلم شرح رائع وان شاء الله الجميع يستفيد
-
دام عندك الاكواد ليه تسال جربها لا تجي تحط موضوع وانت ما جربت + يغلق عشانك ماجربت الاكواد
-
غير اسم wndMain الى اسم نافذه الفري روم
-
ما فهمتك وضح
-
شوف كلام صح لكن الرجال يبيه داخل الفري روم يعني اعمل لبل داخل الفري روم و خذ الاحداثيات و حطها في ملف كلينت و مع البرمجه انا عطيته الكود هو بكيفه يعدل بعدين هو يعرف كيف
-
ستارت ادمن وستوب ادمن وظيفة سيرفر يعني يشتغل المود ويطفى للكل الا اذا كان في طريقة مدري
-
ما يفتح النافذه غير الادمن client: 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) Clear = guiCreateButton(0.5437,0.9202,0.4372,0.0672,"Clear",true,window) addEventHandler ( "onClientGUIClick", editBox, outputEditBox ) guiEditSetMaxLength ( editBox, 128 ) ---------------------- function outputEditBox () local text = guiGetText ( editBox ) editBo = guiCreateMemo(0.0223,0.0322,0.9603,0.493,""..text.."",true,window) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) --------------------------- function open() triggerServerEvent("onOpen",getLocalPlayer()) end bindKey("F4","down",open) function vip() if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) guiSetInputEnabled(true) end end addEvent("openVIP",true) addEventHandler("openVIP",getRootElement(),vip) server: function open() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then triggerClientEvent(source,"openVIP",source) end end addEvent("onOpen",true) addEventHandler("onOpen",getRootElement(),open)
-
window = guiCreateWindow(81,33,400,400,"Player Ping By Mr~Fahad",false) pingLabel = guiCreateLabel(8,50,320,18,"Your Ping:",false,window) guiLabelSetColor(pingLabel ,255,255,0) function update() local myPing = getPlayerPing(getLocalPlayer()) guiSetText ( pingLabel, "Your Ping: ".. tostring(myPing) .." " ) end addEventHandler("onClientRender",getRootElement(), update) الخطآ كان في guiSetText
-
https://community.multitheftauto.com/ind ... ls&id=4857 يمكن يفيدك
-
افهم الكود زين لا تنسخه وانت موب فاهم viewtopic.php?f=119&t=44957&p=451705&hilit=%D8%A8%D9%86%D9%82#p451705
