-
Posts
756 -
Joined
-
Last visited
Everything posted by |Mr|-Talal07-|
-
جرب ذا function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() --- هنا الاضافة if hasObjectPermissionTo( source, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) else outputChatBox("" .. name .. ": " .. text,root,255,0,0,true) end end addEventHandler("onPlayerChat", root, chatbox)
-
جرب ذا addEventHandler("onPlayerChat",root, function (msg,type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) and type == 0 then local name = getPlayerName(source) cancelEvent() outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 ",root,255,0,0,true) end end )
-
ذي اانا جربتها و شغال بس اول ما تشغله يشتغل و اذا سويت للمود ريستارت يروح سوي ريستارت ثاني و ترجع
-
The Best Host I've Ever Had!! [VortexServers.com]
|Mr|-Talal07-| replied to AJXB's topic in Hosting solutions
+1 -
كل مايدخل لاعب تجيب اسم السيرفر (: طيب االاعب اذا دخل يسير له داتا لاسم السيرفر في مشكلة
-
طيب جرب ذا اذا ما اشتغل عندك خطاا label وغير الى اسم الابل -- Client Side -- addEventHandler("onClientResourceStart",resourceRoot, function () triggerServerEvent("onGetServerName",localPlayer) end ) addEvent("onGetted",true) addEventHandler("onGetted",root, function (name) guiSetText(label,"Server Name : " .. name) end ) -- Server Side -- addEvent("onGetServerName",true) addEventHandler("onGetServerName",root, function () local name = getServerName() triggerClientEvent(source,"onGetted",source,name) end )
-
جرب ذا -- Client Side addEventHandler("onClientResourceStart",resourceRoot, function () setTimer(guiSetText,1000,1,LabelName,"Server Name : " .. getElementData(localPlayer,"ServerName")) end ) -- Server Side addEventHandler("onResourceStart",resourceRoot, function () for i,v in ipairs(getElementsByType("player")) do setElementData(v,"ServerName",getServerName()) end end ) addEventHandler("onPlayerJoin",root, function () setElementData(source,"ServerName",getServerName()) end )
-
يعني تبي تسوي صندوق ثاني مثل الشات ولا زر يخليك تتكلم مثل رسالة الادمن اذا كان مثل رسالة الادمن استخدم getElementsByType("player") getPlayerTeam getTeamFromName outputChatBox bindKey لكن في محادثة لتيم من حرف غ مو لازم اذا ذا مو قصدك وضح اكثر طيب اذا قصدك كذا استخدم ذا بالاضافة الى isObjectInACLGroup اعمل الكود عندك اي خطاا اطرحه هنا
-
توي عدلت عليه + اكتب ذا تحت النافذه guiSetAlpha(wnd,0) و غير wnd الى اسم النافذه في ذا الكود و السابق
-
خذ هذا مثال من عندي function open() if guiGetAlpha(wnd) == 1 then setTimer(guiSetAlpha,500,10,wnd,guiGetAlpha(wnd) - 0.1) setTimer(showCursor,5000,1,false) elseif ( guiGetAlpha(wnd) == 0 ) then setTimer(guiSetAlpha,500,10,wnd,guiGetAlpha(wnd) + 0.1) setTimer(showCursor,5000,1,true) end end bindKey("F2","down",open) ما جربته شوف انت
-
تقدر اذا تبيها على شكل لسته مثل CIT2 باستخدام guiGetText guiGridListSetItemText triggerServerEvent triggerClientEvent guiGridListInsertRowAfter Event : "onClientGUIAccepted"
-
تعديل كود , وطلب كود بسيطات أن شاء الله
|Mr|-Talal07-| replied to AboFaisal's topic in Arabic / العربية
جرب ذا -- Client Side addEvent("onShowWindow",true) addEventHandler("onShowWindow",root, function () guiSetVisible(Window,true) showCursor(true) end ) -- Server Side addCommandHandler("Panel", function (player) local acc = getPlayerAccount(player) if ( not isGuestAccount(acc) ) then if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Admin")) then triggerClientEvent(player,"onShowWindow",player) else outputChatBox("You Are Not Admin") end else outputChatBox("You Don't Have Account") end end ) -
تعلم executeSQLQuery -------------------------------- JR10 هذا شرح لـ viewtopic.php?f=148&t=38203
-
يعني تبي تسوي صندوق ثاني مثل الشات ولا زر يخليك تتكلم مثل رسالة الادمن اذا كان مثل رسالة الادمن استخدم getElementsByType("player") getPlayerTeam getTeamFromName outputChatBox bindKey لكن في محادثة لتيم من حرف غ مو لازم اذا ذا مو قصدك وضح اكثر
-
طيب الفنكشن واحط بين القوسين يعني انا اعرف الاساسيات بس هاذي دايم ما اعرفها ليه سويتها ككذا ؟ function (_,acc) هذا ارقمنت يجي مع الافنت Event : onPlayerLogin كذا هي مو بكيفي طيب اشتغل الكود ولا ما اشتغل
-
Thank You |Mr|-Talal07-| it,s Work ! Problem was in CreateTeam You're Welcome
-
Try This -- Client Side addEventHandler ("onClientGUIClick", getRootElement(), function( ) if ( source == Police ) then triggerServerEvent("Police",getLocalPlayer()) end end ) -- Server Side Police = createTeam( "Police",0,61,245) addEvent("Police",true) addEventHandler("Police",root, function () setPlayerTeam ( source, Police ) outputChatBox("You Are Now in Police Gang", source, 0,61,245, true) end )
-
يب و تقدر تعدل على اي سلاح تبيه تخليه قوي يقتل بسرعة يسير في يدك 2 منه من ذي الوظيفة
-
please remove all cookies related to community.multitheftauto.com it is Work Thanx
-
جرب ذا addEventHandler("onPlayerLogin",root, function (_,acc) local SkinData = getAccountData(acc,"Skin") if ( SkinData ) then setElementModel(source,SkinData) else setAccountData(acc,"Skin",0) setElementModel(source,0) end end ) addEventHandler("onPlayerQuit",root, function () local acc = getPlayerAccount(source) if ( not isGuestAccount(acc) ) then local Skin = getElementModel(source) setAccountData(acc,"Skin",Skin) end end ) addEventHandler("onPlayerSpawn",root, function () local acc = getPlayerAccount(source) if ( not isGuestAccount(acc) ) then local Skin = getAccountData(acc,"Skin") setTimer(setElementModel,1000,1,source,Skin) end end )
-
بس غير اسم الداتا و تسوي داتا جديده للـحساب
-
https://community.multitheftauto.com/ind ... ls&id=6169 it is my script Look This My : https://community.multitheftauto.com/ind ... ls&id=6157 DONE
-
استخدم setWeaponProperty
