-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
اطرح كودك حق فتح النافذهـ وأنا أسوية لك (;
-
يعني تبي لوحة بس تفتح لقروب المشرف؟ وبس؟
-
addEventHandler("onResourceStart", resourceRoot, function() Resources = { "panel", "hunter", "respawn" } for index,resource in ipairs ( Resources ) do startResource(getResourceFromName(resource)) end end ) try
-
Post you're code after edit it.
-
Thank you I will remember this always!
-
Hello, all I have a question or a simple request is there function prevent deompile lua files? If there is you can put it here? Or tell me how to create one like it? to prevent decompile lua files ? Thank you!
-
Oh.i forget that try this : addEventHandler("onResourceStart", resourceRoot, function() Resources = { "resourceName", "resourceName", "resourceName" } for index,resource in ipairs ( Resources ) do startResource(getResourceFromName(resource)) end end )
-
Did you add the reousrce to admin group in the acl ? open admin panel the manageAcl>Admin group>addObject>resource.TheResourceName That's all .
-
You can try this server side script : addEventHandler("onResourceStart", resourceRoot, function() Resources = { "resourceName", "resourceName", "resourceName", } for index,resource in ipairs ( Resources ) do startResource(getResourceFromName(resource)) end end ) how to add resource to start? just change resourceName to you're resourceName and add new resource add new line "resourceName",
-
I really do not know why, but always when I use Root other user's say it is wrong! Why?I do not know-_-
-
-- Server -- تعديل بسيط على كود عناد فية خطأ في الحساب ذذ aOpen_ = function ( plr_ ) local plrAccount = getPlayerAccount ( plr_ ) if not isGuestAccount ( plrAccount ) then if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) end end end addEvent ( "onSendDataToAll", true ) addEventHandler ( "onSendDataToAll", root, function ( Data ) if tostring ( Data ) then outputChatBox ( "a communication has been received from ["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) end end ) for _, v in ipairs (getElementsByType ( "player" ) ) do bindKey ( v, "f12", "down", aOpen_ ) end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "f12", "down", aOpen_ ) end ) جرب
-
اقولك ارسل ترايقر للفتح وسوي ايفنت وايفنت هاندلر بالكلنت وسوي ترايقر كلنت من السيرفر عشان يشيك للكونسول
-
استخدم الوظائف اللي عطيتك حق الادمن فوق صعبه؟
-
مافهمتك حمل كل الملفات الي عطاك الاجنبي فوق # وثبتها ونزل ملف الرابط ثانية نفس الاول بعد ماتثبتها كلها #
-
You can try this : function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message,v, 255, 255, 255, true) end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) addEventHandler("onPlayerJoin",root, function () bindKey(source,"b", "down", "chatbox", "global"); end ); Please use Lua/Lua Tag -_-"
-
وضحت لك الترايقر عشان تفتح للكونسول مو الاخفاء!!!@#!
-
Translation @ Towncivilian : ثبت الملفات هذي وطلع لوق ثاني ونزلة # بعد التثبيت لكل التعريفات # =========================== عاد حملها وش نسوي لازم =============================== @ Towncivilian He says he will take a long time to download all the programs because the Internet has weak maybe .
-
لازم تسوي ترايقر من السيرفر للكلنت والتايمر غلط لازم تسوية مع الاخفاء #
-
هذا الكود يوم تضغط زر ومسوي صورة بـ اسم wnd بيغيرها لـ صورة ثانية كذا صح؟ يوم تضغط زر Button بيغير الصورة ذذ مثلا حط اي ملف وغيرها وجرب #
-
اللوحة تفتح للكونسول : -- Client : addEvent addEventHandler -- Server : isObjectInACLGroup triggerClientEvent -- source اللوحة تفتح لمدة : -- Client : setTimer guiSetVisible
-
يعني اذا ضغط ارسال تطلع لوحة للكل لمدة معينة وتختفي؟
-
وش مافهمت ولا شيء == تحديث # جرب : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) guiSetVisible(GUIEditor_Window[2],false) guiSetAlpha(GUIEditor_Window[2],1) GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F12","down",open) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then local Data = guiGetText ( GUIEditor_Edit[1] ) if Data ~= "" then triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) end end end )