-
Posts
1,304 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Ahmed Ly
-
GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(227, 197, 593, 446, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(142, 71, 301, 49, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(132, 151, 311, 102, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(121, 285, 363, 121, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") guiSetVisible(GUIEditor.window[1],true) showCursor(true) end ) function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then for i =1,3 do guiAntiFlood(GUIEditor.button[i],10000) end end end )
-
addEventHandler("onPlayerLogin",root, function() cancelEvent() end )
-
--Server addEventHandler("onResourceStart",resourceRoot, function () triggerClientEvent("Count", getRootElement()) end ) --Client ennd = function() outputChatBox ("root") end addEvent("Count", true) addEventHandler("Count", getRootElement(), ennd)
-
setElementDimension
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
Ahmed Ly replied to TAPL's topic in الاستضافات
بالتوفيق -
كفووووو واصل بدون فواصل ي مبدع
-
جرب exports.scoreboard:addScoreboardColumn('Time') local t = { } function checkValues( source,arg1,arg2) if (arg2 >= 60) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 60) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "Time", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) end end, 1000, 0 ) function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local sValue = getElementData( source,'Online Time' ) setAccountData ( playeraccount, "Online Time", tostring(sValue) ) end t[ source ] = nil end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local time = getAccountData ( playeraccount, "Online Time" ) if ( time ) then setElementData ( source, "Time", time ) else setElementData ( source, "Time",0 ) setAccountData ( playeraccount, "Time",0 ) end end end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerLogin", root, onPlayerLogin )
-
---Client GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(188, 165, 311, 361, "Send Money", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFFE9E9") GUIEditor.gridlist[1] = guiCreateGridList(13, 30, 126, 317, false, GUIEditor.window[1]) cc = guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) GUIEditor.button[1] = guiCreateButton(149, 88, 142, 34, "Send", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(139, 53, 162, 35, "==================", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(139, 136, 162, 35, "==================", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(145, 168, 156, 36, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(139, 222, 162, 35, "==================", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(139, 273, 162, 35, "==================", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],false) local key = "F4" -- ---Client bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end) function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local selected = guiGridListGetSelectedItem (GUIEditor.gridlist[1]) local w = guiGetText(GUIEditor.edit[1]) if w ~= "" then local plrName = guiGridListGetItemText (GUIEditor.gridlist[1],selected,cc) if plrName == "" then outputChatBox("يجب عليك اختار الاعبين من القائمه الموجود في لوحه",0,255,0) return end local plr = getPlayerFromName (plrName) triggerServerEvent ("Tran",localPlayer,w,plr) end end end ) ------ --Server addEvent ("Tran",true) addEventHandler ("Tran",root, function (w,plr) if getPlayerMoney(source) >= tonumber(w) then if source == plr then outputChatBox("لا يمكن ارسل المال الي نفسك",source,0,255,0) return end givePlayerMoney(plr,tonumber(w)) takePlayerMoney (source,tonumber(w)) outputChatBox("تم التحويل",source,0,255,0) else outputChatBox("ليس لديك المال الكافي",source,0,255,0) end end )
-
[ Centos 5/6 | سيرفرات كاملة | SolusVm | شرح | تثبيت لوحة ]
Ahmed Ly replied to MAXM's topic in الاستضافات
شرح جميل و رائع استمررررررر -
http://htmlcolorcodes.com/
-
addEvent ( "Admin",true ) addEventHandler ( "Admin", root, function ( ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then exports.topbarchat:sendClientMessage ( "#ffff00 * [Police Panel]: Organize compulsory police | تنظيم اجباري",root,255,255,255,true) end end )
-
استخدم isPlayerInVehicle
-
GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(212, 86, 239, 424, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(14, 34, 215, 249, false, GUIEditor.window[1]) cc = guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(48, 305, 155, 50, "ارسل", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(62, 376, 145, 38, "", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],false) local key = "F4" -- ---Client bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end) function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local selected = guiGridListGetSelectedItem (GUIEditor.gridlist[1]) local w = guiGetText(GUIEditor.edit[1]) if w ~= "" then local plrName = guiGridListGetItemText (GUIEditor.gridlist[1],selected,cc) if plrName == "" then outputChatBox("يجب عليك اختار الاعبين من القائمه الموجود في لوحه",0,255,0) return end local plr = getPlayerFromName (plrName) triggerServerEvent ("Tran",localPlayer,w,plr) end end end ) addEvent ("Tran",true) addEventHandler ("Tran",root, function (w,plr) if getPlayerMoney(source) >= tonumber(w) then if source == plr then outputChatBox("لا يمكن ارسل المال الي نفسك",source,0,255,0) return end givePlayerMoney(plr,tonumber(w)) takePlayerMoney (source,tonumber(w)) outputChatBox("تم التحويل",source,0,255,0) else outputChatBox("ليس لديك المال الكافي",source,0,255,0) end end )
-
--Client function Open() triggerServerEvent("gett",localPlayer) end bindKey( "M","down",Open) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس guiSetInputEnabled ( true ) end addEvent ( "StrongTAG", true ) addEventHandler ( "StrongTAG", root, Strong ) -------- ---Server local Groups = { { "Console"}, {"Police" }, } function isPlayerAdmin() for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup(v[1])) ) then return true end end end addEvent("gett",true) addEventHandler("gett",root, function () if ( isPlayerAdmin (source) ) then triggerClientEvent("StrongTAG",source) end end )
-
group = { {"Console"}, {"Police"}, } bindKey ( "M", "down", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then for i , v in ipairs ( group ) do if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup(v[1])) then triggerClientEvent ("StrongTAG",p) end end end end )
-
local key = "F4" -- ---Client bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end) function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) addEventHandler ("onClientGUIClick",root, function () if source == buttonName then local selected = guiGridListGetSelectedItem (GUIEditor.gridlist[1]) local w = guiGetText(GUIEditor.edit[1]) if w == "" then return end local plrName = guiGridListGetItemText (GUIEditor.gridlist[1],selected,1) local plr = getPlayerFromName (plrName) triggerServerEvent ("Tran",localPlayer,w,plr) end end ) ---Server addEvent ("Tran",true) addEventHandler ("Tran",root, function (w,plr) if getPlayerMoney(source) >= tonumber(w) then givePlayerMoney(plr,tonumber(w)) takePlayerMoney (source,tonumber(w) outputChatBox("تم التحويل",source,0,255,0,true) end end end )
-
* Gta-4u Scripts ( loginPanel ) لوحة تسجيل دخول
Ahmed Ly replied to AHMED MOSTAFA's topic in المساهمات
لوحة تسجيل رائع بالتوفيق لك -
-_-"؟ يسوي لك كول شيب بانواع بدقة ما فيه num_1 بلمود @_@ -------------- نورتم جميعاً قصدي Num_2
-
---Client addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) elseif source == GUIEditor.button[3] then outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) elseif source == GUIEditor.button[2] then triggerServerEvent("Serial",localPlayer) end end ) function open () 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 bindKey("F2", "down",open) ---- ---Server addEvent("Serial",true) addEventHandler("Serial",root, function () outputChatBox("you Serial is "..getPlayerSerial(source).."",source,0,255,0) end )
-
addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) elseif source == GUIEditor.button[2] then outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) end end ) function open () 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 bindKey("F2", "down",open)
-
ورني كودك