-
Posts
2,490 -
Joined
-
Days Won
18
Everything posted by N3xT
-
اتوقع بالشادر او التكستر
-
يبي يشيل رو واحد من القريدليست عن طريق التكست وعطاه الكود احمد شوف الموضوع زين
-
كودك راح يرجع القيمة فولس دائماً, وايضاً يمديك تختصر كودك بانك تحذف الرو على طول بدون استعمال المتغير rowIndex
-
setTimer( function() if ( #getElementsByType("player") >= 3 ) then outputChatBox( "Test", root ) else outputChatBox( "UnTest", root ) end end, 100, 0 )
-
اطرح اكواد الجوائز حقتك ولا على الاقل كيف فكرتها؟
-
لو ما كان راكب فسيارة راح يطلع خطأ, ضيف تحقق
-
كاتب اعطي اللاعب الجائزة على حسب كودك, انا معرف كيف طريقة اكواده عشان اعطيه جائزة
-
جرب كذا local prizes = {"EXP", "MONEY", "LEVEL"} function randomWinner () local randomPrize = prizes[math.random(#prizes)] local firstPlayer, secondPlayer = getRandomPlayer(), getRandomPlayer() if ( randomPrize ) then if ( firstPlayer and secondPlayer ) then outputChatBox("First Winner:" .. getPlayerName(firstPlayer) .. " : " .. randomPrize, root, 255, 255, 255, true) outputChatBox("Second Winner:" .. getPlayerName(secondPlayer) .. " : " .. randomPrize, root, 255, 255, 255, true) -- اعطي اللاعب جائزة على حسب كودك end end end setTimer(randomWinner,3600000,0)
-
يمكن قصده النقز اللي عن طريق زر الشفت زي مابات الشوتر
-
team = createTeam('Players',0,255,0) function setAdminTeam() setPlayerTeam(source,team) giveWeapon(source,31,200) outputChatBox( getPlayerName ( source ) .. " Welcome To Team" , source, 255, 255, 255, true) end addEventHandler("onPlayerJoin",root,setAdminTeam)
-
عشان كذا ما احب اترك سكربتاتي مفتوحة, الواحد يشفرها ويرتاح
-
ينفع ليه ما ينفع؟ حط متغير بالملف اللي مو مشفر وبعدين ارسله على الكلنت وحطه على اللوحة
-
شيل ذول resolutionX, resolutionY و حط مقاس الشاشه حقك مكانهم
-
local mySerial = "AdminSerial" addEventHandler("onPlayerChat", root, function ( message, messageType ) if ( messageType == 2 ) then for i,v in ipairs ( getElementsByType( "player" ) ) do if ( getPlayerSerial ( v ) == mySerial ) then local myTeam, teamName = getPlayerTeam(source), getTeamName ( myTeam ) local r, g, b = getTeamColor ( myTeam ) if ( teamName ~= getTeamName ( getPlayerTeam(v) ) ) then outputChatBox("*("..teamName..") "..getPlayerName(source)..":#FFFFFF "..message.."",v,r,g,b,true) end end end end end )
-
مالها شغل باخر الكود ولا بنص الكود, فكرتها تحذف الملف كامل
-
Server: Admin = { {"","Police","10"}, {"","ADMIN","20"}, {"","Head.Admin","30"}, {"","Professional.Admin","40"}, {"","Big Admin","50"}, {"","Admin.General","60"}, {"","Admin.Boss","80"}, {"","Special.Admin","90"}, {"","Admin.Mo7tref","120"}, {"","Admin.Black","150"}, {"","King.Admin","200"}, {"","Prince.Server","240"}, {"","Prince.Admin","280"}, {"","Special.Prince","350"}, {"","Vote.Manager-Acl","450"}, {"2","Vote.Managers","560"}, {"","Managers","750"}, {"","Vote.Manager","840"}, {"","Manager","875"}, {"","Dieputy.Black","990"}, {"","Dieputy.Console","1000"}, {"","Criminal","1100"}, {"","Help.Console","1200"}, } addEvent("request:acl", true) addEventHandler("request:acl", root, function () triggerClientEvent(root, "acl:table", root, Admin) end ) Client: addEvent("acl:table", true) addEventHandler("acl:table", root, function ( value ) for k,v in ipairs ( value ) do local row = guiGridListAddRow(GiveAdmin); guiGridListSetItemText(GiveAdmin,row,1,v[1],false,false); guiGridListSetItemText(GiveAdmin,row,2,v[2],false,false); guiGridListSetItemText(GiveAdmin,row,3,v[3],false,false); end end ) xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GiveAdmin ) local Group = tostring ( guiGridListGetItemText(GiveAdmin,row,2 )); local Price = tostring ( guiGridListGetItemText(GiveAdmin,row,3 )); local Name = tostring ( guiGridListGetItemText(GiveAdmin,row,1 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); else outputChatBox("* الرجاء اختيار رتبةة !",255,0,0,true); end end addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false) local screenW, screenH = guiGetScreenSize() Top1 = guiCreateWindow((screenW - 253) / 2, (screenH - 178) / 2, 253, 178, "شراء ساعات !", false) guiWindowSetSizable(Top1, false) guiSetVisible(Top1, false) GUIEditor.label[2] = guiCreateLabel(49, 39, 170, 15, "شراء / 100 ساعه بـ 1 دولار $", false, Top1) GUIEditor.edit[1] = guiCreateEdit(43, 119, 163, 22, "MR_Mahmoud_M.H", false, Top1) GUIEditor.label[5] = guiCreateLabel(17, 94, 222, 15, "لشراء يرجاء مراسلة الادارة !", false, Top1) guiLabelSetColor(GUIEditor.label[5], 253, 239, 0) GUIEditor.button[22] = guiCreateButton(43, 145, 163, 23, "X", false, Top1) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[22] ) then guiSetVisible(Top1, false) showCursor(false) end end ) guiSetVisible(TopBoyKa, false) guiSetVisible(Top1, false) local key = "F6" function Show_Hide() if guiGetVisible(TopBoyKa) == false then triggerServerEvent("request:acl", localPlayer) guiSetVisible(TopBoyKa, true) guiSetVisible (Top1, false) triggerServerEvent("getTop", localPlayer) showCursor(true) else guiSetVisible(TopBoyKa, false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == Button1 then guiSetVisible (Top1, true) guiSetVisible (TopBoyKa, false) end end ) guiSetProperty(Button1, "NormalTextColour", "FF00FBFE") guiSetProperty(GUIEditor.button[22], "NormalTextColour", "FF00FBFE")
-
Server: Admin = { {"","Police","10"}, {"","ADMIN","20"}, {"","Head.Admin","30"}, {"","Professional.Admin","40"}, {"","Big Admin","50"}, {"","Admin.General","60"}, {"","Admin.Boss","80"}, {"","Special.Admin","90"}, {"","Admin.Mo7tref","120"}, {"","Admin.Black","150"}, {"","King.Admin","200"}, {"","Prince.Server","240"}, {"","Prince.Admin","280"}, {"","Special.Prince","350"}, {"","Vote.Manager-Acl","450"}, {"2","Vote.Managers","560"}, {"","Managers","750"}, {"","Vote.Manager","840"}, {"","Manager","875"}, {"","Dieputy.Black","990"}, {"","Dieputy.Console","1000"}, {"","Criminal","1100"}, {"","Help.Console","1200"}, } addEventHandler("onResourceStart", resourceRoot, function () triggerClientEvent(root, "acl:table", root, Admin) end ) Client: ddEvent("acl:table", true) addEventHandler("acl:table", root, function ( value ) for k,v in ipairs ( value ) do local row = guiGridListAddRow(GiveAdmin); guiGridListSetItemText(GiveAdmin,row,1,v[1],false,false); guiGridListSetItemText(GiveAdmin,row,2,v[2],false,false); guiGridListSetItemText(GiveAdmin,row,3,v[3],false,false); end end ) xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GiveAdmin ) local Group = tostring ( guiGridListGetItemText(GiveAdmin,row,2 )); local Price = tostring ( guiGridListGetItemText(GiveAdmin,row,3 )); local Name = tostring ( guiGridListGetItemText(GiveAdmin,row,1 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); else outputChatBox("* الرجاء اختيار رتبةة !",255,0,0,true); end end addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false) local screenW, screenH = guiGetScreenSize() Top1 = guiCreateWindow((screenW - 253) / 2, (screenH - 178) / 2, 253, 178, "شراء ساعات !", false) guiWindowSetSizable(Top1, false) guiSetVisible(Top1, false) GUIEditor.label[2] = guiCreateLabel(49, 39, 170, 15, "شراء / 100 ساعه بـ 1 دولار $", false, Top1) GUIEditor.edit[1] = guiCreateEdit(43, 119, 163, 22, "MR_Mahmoud_M.H", false, Top1) GUIEditor.label[5] = guiCreateLabel(17, 94, 222, 15, "لشراء يرجاء مراسلة الادارة !", false, Top1) guiLabelSetColor(GUIEditor.label[5], 253, 239, 0) GUIEditor.button[22] = guiCreateButton(43, 145, 163, 23, "X", false, Top1) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[22] ) then guiSetVisible(Top1, false) showCursor(false) end end ) guiSetVisible(TopBoyKa, false) guiSetVisible(Top1, false) local key = "F6" function Show_Hide() if guiGetVisible(TopBoyKa) == false then guiSetVisible(TopBoyKa, true) guiSetVisible (Top1, false) triggerServerEvent("getTop", localPlayer) showCursor(true) else guiSetVisible(TopBoyKa, false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == Button1 then guiSetVisible (Top1, true) guiSetVisible (TopBoyKa, false) end end ) guiSetProperty(Button1, "NormalTextColour", "FF00FBFE") guiSetProperty(GUIEditor.button[22], "NormalTextColour", "FF00FBFE")
-
Sorry for the late, I haven't added this feature not yet The program needs your account just to log in and make sure you're a console, then all of the features are open anyway, I'll try to add this feature ASAP, Thank you. Welcome dude, I appreciate your reply