-
Posts
2,156 -
Joined
-
Last visited
-
Days Won
6
Everything posted by ' A F .
-
طيب هآذي اطريقه أحسن وتسهل عليه كمأن .. text = '' function Render() dxDrawText(text, 0, 0, 500, 500, tocolor(255,0,0,255), 1, "default-bold"); end addEventHandler("onClientGUIClick", resourceRoot, function () if source == button then triggerServerEvent("dxText:Server", localPlayer); end end ); addEvent("dxText:Client", true); addEventHandler("dxText:Client", root, function (msg) text = ''..msg..'' setTimer(function ( ) text = '' end,5000,1) end ); --- # Server function outputDrawText ( text , element ) triggerClientEvent ( element , 'dxText:Client' , element , text ) end addEvent("dxText:Server", true); addEventHandler("dxText:Server", root, function () outputDrawText ( 'Hi,',root) end );
-
بباب الحارة ولا زمن البرغوث ذذ
-
افتتاح سيرفر جراند مصر الرسمي مع اقوي الحصريات
' A F . replied to KING-ABADY's topic in Arabic / العربية
كأنت خآصه بسيرفره , لاكن انتشرت ! -
افتتاح سيرفر جراند مصر الرسمي مع اقوي الحصريات
' A F . replied to KING-ABADY's topic in Arabic / العربية
بس مود القوآنين من مودآت فنون المنشوره , وحق انكسآر . وكآن في حقوق آنكسآر .. -
[Gta-IS] جرأند العرب م اششوفه حلو , بـ التوفيق =)
-
9\10 Good Job =)
-
افتتاح سيرفر جراند مصر الرسمي مع اقوي الحصريات
' A F . replied to KING-ABADY's topic in Arabic / العربية
بـ التوفيق .. لاكن القوانين ماهو من صنعك , فمألك حق تحط حقوقك . بأنتظآر ردك =) -
سهل جدأ , تبيه لـ الي ظغط الزر ولا للكل ؟
-
انا عدلته فوق .. جربته ؟ انا جربته ظآبط معي .. edit : addEventHandler("onResourceStop",resourceRoot, function() for i,v in ipairs ( getAccounts() ) do setAccountData( v , "r8" , false ) end end )
-
onClientGUIClick تستخدم الأفنت مع الفنكشين ذول عشان تجيب الكلام الي كبست عليه guiComboBoxGetSelected guiComboBoxGetItemText
-
هههههههههههههههههه كم مره تصيرلي بـ البيك
-
الله يعآفيك .. حيأك الله بأي وقت .. بـ التوفيق لك .
-
غريبه .. انا ظابط معي 100% , ء افتح /debugscript 3
-
local root = getRootElement() addEventHandler('onPlayerChat',root, function ( text ) name = getPlayerName ( source ) account = getAccountName ( getPlayerAccount ( source ) ) if ( getPlayerTeam ( source ) ) then local r,g,b = getTeamColor ( getPlayerTeam ( source ) ) cancelEvent ( ) outputChatBox(''..getPlayerName(source)..': #FFFFFF'..text..'',root,r,g,b,true) else cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#FF8C00[Console]#FFFFFF" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("console")) then outputChatBox("#FF0000[Admin]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Developer")) then outputChatBox("#A9A9A9[Developer]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#B40404[Moderator]" .. name ..":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Add[sWAT]")) then outputChatBox("#01DF01*Manger]" .. name ..":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Event")) then outputChatBox("#900101*[Admin-Events]" .. name ..":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#F778A1°•~█|мὄḋἔʀᾄҭὄʀῥʀὄ|█~•°#FFFFFF#ff0000" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#A5A5A5*[Admin]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("[LVL5]")) then outputChatBox("#ff0000[LvL_5]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("[LVL4]")) then outputChatBox("#ff0000[LvL_4]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("[LVL3]")) then outputChatBox("#ff0000[LvL_3]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("[LVL2]")) then outputChatBox("#ff0000[LvL_2]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("[LVL1]")) then outputChatBox("#ff0000[LvL_1]" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VIP")) then outputChatBox("#15317E~°•~VIP_~•°" .. name .. ":#FF00FF " .. text, root, 255, 255, 255, true) end end end)
-
مأفهمت الخبطه بـ اللوان ؟ الكود ظآبط معي , + لاتنسى أنك حأط function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end edit : شوف عدلته فوق .
-
function chatbox(text, msgtype) local r,g,b = getPlayerNametagColor(source) local name = getPlayerName(source) local accountname = getAccountName (getPlayerAccount(source)) local Account = getPlayerAccount ( source ) if (msgtype == 0) then if ( getPlayerTeam ( source ) ) then cancelEvent() local x,xx,xxx = getTeamColor ( getPlayerTeam ( source ) ) outputChatBox (""..getPlayerName ( source ) ..": #FFFFFF"..text, root, x,xx,xxx, true ) else if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" ) ) then cancelEvent() outputChatBox("#ff0000* #777777[Console] "..RGBToHex(r,g,b)..name..": #ffff33"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [HeadAdmin] " .. getPlayerName ( source ).. ": " .. text) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Level4" ) ) then cancelEvent() outputChatBox("#ff0000* #777777[HeadLeader] "..RGBToHex(r,g,b)..name..": #ffff33"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [superModerator] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Level1" ) ) then cancelEvent() outputChatBox("#ff0000*#777777 [st-War] "..RGBToHex(r,g,b)..name..": #ffff33"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [Moderator] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Level2" ) ) then cancelEvent() outputChatBox("#cc0000* [LVL2] "..RGBToHex(r,g,b)..name..": #ffff00"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [Console] " .. getPlayerName ( source ).. ": " .. text ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Level" ) ) then cancelEvent() if isGuestAccount ( Account ) then outputChatBox("#cc0000* [LVL1] "..RGBToHex(r,g,b)..name..": #ffff00"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [Guest] " .. getPlayerName ( source ).. ": " .. text ) else outputChatBox(""..RGBToHex(r,g,b)..name..": #ffffff"..text, getRootElement(),0,0,0,true) outputServerLog( "CHAT: [Player] " .. getPlayerName ( source ).. ": " .. text ) end end end end end addEventHandler("onPlayerChat", getRootElement(), chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end