-
Posts
4,805 -
Joined
-
Last visited
-
Days Won
10
Everything posted by فاّرس
-
يجي بمكانك ماركر .. marker الان كود اذا كتبت باف8
فاّرس replied to |~| ALCKASER |~|'s topic in البرمجة
اولا القسم خطأ ثانيا الكود خطأ, local marker = {} addCommandHandler('marker',function (plr) if isElement(marker[plr]) then destroyElement(marker[plr]) marker[plr] = nil end marker[plr] = createMarker(unpack({getElementPosition (pla)}), 'cylinder', 1.5, r, g, b) end ) AlcatRaz @ اظن ان برستيج مسويه -
جرب كذا, addEventHandler('onPlayerWasted',root,function(_,killer) if killer and killer ~= source and getElementType(killer) == 'player' then if getTeamName(getPlayerTeam(killer)) == getTeamName(getPlayerTeam(source)) then givePlayerMoney(killer,getPlayerMoney(killer) - 100) end end end )
-
-- Server Side # addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) triggerClientEvent(source,'CloseAll',source) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if not ( account ) then addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) else outputChatBox("* This Account is Already Used",source,255,0,0) end end )
-
^ اظن انه يبي يبحث مثلا واحد كاتب ابي سيارة سريع كذا ذذ vehicle = {} addEventHandler('onPlayerChat',root,function(msg) if string.find(msg,'ابي سيارة') then if isElement(vehicle[source]) then destroyElement(vehicle[source]) end vehicle[source] = createVehicle(455,unpack({getElementPosition(source)})) warpPedIntoVehicle(source,vehicle[source]) end end )
-
-- Client Side # GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(202, 153, 413, 387, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 395, 356, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(59, 237, 114, 41, "تسجيل الدخول", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(222, 237, 114, 41, "تسجيل ", false, GUIEditor.tab[1]) GUIEditor.edit[1] = guiCreateEdit(94, 129, 189, 36, "", false, GUIEditor.tab[1]) GUIEditor.edit[2] = guiCreateEdit(94, 185, 141, 36, "", false, GUIEditor.tab[1]) end ) addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then triggerServerEvent("onlogin",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("onregister",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) end end ) bindKey ( "F2" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEvent('CloseAll',true) addEventHandler('CloseAll',root,function() if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) -- Server Side # addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) triggerClientEvent(source,'CloseAll',source) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end )
-
.:[ انطلاق الموقع الخاص بسيرفر محترفين الالعاب ]:.
فاّرس replied to Bssol's topic in Arabic / العربية
مميزات التحكم باليوزر حلوهـ بالتوفيق. -
حبيبي هذا مود موب موجود اعتقد , وهذا السيرفرات سووه
-
التريقر الي ترسله من الكلنت للسيرفر او العكس triggerServerEvent -- Client-Side triggerClientEvent -- Server-Side
-
x,y,z = احداثيات , بإختصار هي مكان الاشياء بعالم اللعبه local بمعنى محلي او متغير محلي شوف قسم شروحات البرمجه فيه شرح له elseif هذا يفيدك تختصر الشروط else عكس الشرط getRootElement(root) يجيب لك العنصار انصحك تشوف شجره العناصر
-
onPlayerChat string.find getElementPosition table isElement destroyElement createVehicle warpPedIntoVehicle
-
+1 والحين الحريم صارو يغازلون الرجال هههههههههههه تجيك بنت ياهوه عطنا وجه وترمي لك الرقم هههههههه
-
الموضوع عباره عن اكواد تسويها مفيده , يعني اكواد موب موجوده وانت تسويها , مثل حق طلال الي يحسب لك كم لاعب بالماركر , هذا الكود طارحه بالموضوع ومافيه مثله بالويكي , بالنسبه لـ, https://wiki.multitheftauto.com/wiki/Useful_Functions هي نفسها وظائف تفيدك وتختصر لك ولازم تنسخ الكود كامل , مثلا وظيفه عناد , https://wiki.multitheftauto.com/wiki/guiSetLocation يوم تسوي الكود تخليه كذا x3NAD = { xLocation = { ["right"] = { 1 }; ["left"] = { 10 }; ["center"] = { 2 }; }; yLocation = { ["up"] = { 10 }; ["down"] = { 1 }; ["center"] = { 2 }; }; }; guiSetLocation = function ( gui, Horizontal, Vertical ) local screenW, screenH = guiGetScreenSize ( ) local windowW, windowH = guiGetSize ( gui, false ) if Horizontal and Vertical then local x, y = tonumber ( x3NAD.xLocation[Horizontal][1] ) or 2, tonumber ( x3NAD.yLocation[Vertical][1] ) or 2 local x, y = ( screenW -windowW ) /x, ( screenH -windowH ) /y guiSetPosition ( gui, x, y, false ) end end; window = guiCreateWindow ( 100, 100, 400, 400, "Test", false ); guiSetLocation ( window, "left", "down" );
-
addCommandHandler getTeamName getPlayerTeam setElementData getDistanceBetweenPoints3D getElementPosition getElementData outputChatBox givePlayerMoney
-
اي فكره احد سواها عادي تعطوه الوظائف وهو يحاول ان سوى شيء نصحح له وان ما سوى شيء الله يخلف عليه بالنسبه لصاحب الموضوع ما فهمت الفكره وضح اكثر,
-
ياريت وصلت على الصدم , حبيبي التحرشات واجد, اذا يتحرشون وهي معها سواق كيف لو ما معها ؟ يمكن توصل للإغتصاب ! وتدري المرأه ضعيفه موب زي قوه الرجل , يعني المملكه راح تنتج افراد كثير,
-
ما قد جربت ولا واحد ولا قد لعبت القيم اساسا, ولكن انصحك بآخر اصدار لأنه اكيد فيه اشياء جديده وتصليح اخطاء وكذا ذذ
-
شكلها استضافه قويهه, بالتوفيق
-
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then