-
Posts
485 -
Joined
-
Last visited
Everything posted by AHMAD1234
-
guiLabelSetColor ( myLabel, 0, 179, 255 )
-
client وليش ما حطاه server وقلي ليش حطى المثال SetElementHealth ههههههههههأأأأأأأييييي طالع ذي الصفحة !!...مع إن المثال يعطي اللاعب إسلاب
-
تكون وهميه client في جانب الـ setElementHealth الـ triggerServerEvent يعني المفروض تسوي server المفروض تكون في جانب الـ client وانت حاطها كلها في الـ طيب اللاعب ما بيموت ؟ .ما راح يموت, ولا راح تتغير نقاطه اساساً
-
تكون وهميه client في جانب الـ setElementHealth الـ triggerServerEvent يعني المفروض تسوي server المفروض تكون في جانب الـ client وانت حاطها كلها في الـ
-
anything ولا server ولا client المثال ذا Client اعتقد ابو الشباب عنده غلط client ما دام انه
-
anything ولا server ولا client المثال ذا
-
.. العفو حياك الله
-
addEventHandler ( "onClientPlayerJoin", root, function () nickData = "* " .. getPlayerName(source) .." has joined the game" exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) Edit: جربه ورد لي خبر
-
هادى اذا اللاعب غير اسمه مو اذا دخل او خرج
-
.. حياك الله
-
غيره من الادمنيه
-
readme اللي مسوي الاسكربت نفسه شرح الطريقة في ملف SYNTAX for "outputDraw" : outputDraw ( string text, int r, int g, int b[, bool colorCoded=false ] ) Required Arguments: text: the text string you wish to send to the drawData. It cannot exceed 65 characters or it will return false. R: The amount of red in the color of the text. G: The amount of green in the color of the text. B: The amount of blue in the color of the text. EXAMPLE: Client: addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "* " .. oldNick .. " is now known as " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end )
-
drawdata تأكد اول ان الاسكربت شغال
-
[return-break-tostring-tonumber] : تحديث : شرح
AHMAD1234 replied to فاّرس's topic in دروس في البرمجة
وانت تشوف الكود فيه لوب..؟ او يحتاج لوب اصلاً -
[return-break-tostring-tonumber] : تحديث : شرح
AHMAD1234 replied to فاّرس's topic in دروس في البرمجة
break س/ ليه ما حطيت return ج/ استبدلت مكانها بـ -
[return-break-tostring-tonumber] : تحديث : شرح
AHMAD1234 replied to فاّرس's topic in دروس في البرمجة
انا ما قلت الكود خارق الكود عباره عن خلاصة الدرس كله في اسكربت -
[return-break-tostring-tonumber] : تحديث : شرح
AHMAD1234 replied to فاّرس's topic in دروس في البرمجة
لول لا تنفجع من الكود تعوذ من الشيطان -
[return-break-tostring-tonumber] : تحديث : شرح
AHMAD1234 replied to فاّرس's topic in دروس في البرمجة
break لول المثال اللي تحت مثال تطبيقي على الدرس ما عدا server side - function -- player = the man who write the command -- command = the command "send" -- amount = the number of money he wish to send -- sendMoney = name of function function sendMoney(player, command, amount) -- start of function if isObjectInACLGroup ( "user." .. getAccountName (getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then -- if player from admin group (1) if amount ~= "" and amount ~= nil then -- if player forget amount (1) for k,v in ipairs ( getElementsByType( "player" ) ) do -- get all players in server if tonumber(amount) then -- if player write in console number then num = getPlayerCount ( ) -- get players in server clear = math.floor( amount ) -- if player write number like this 9.5 it will by 9 real = num * clear -- players in server x amount else -- if player write anything else numbers then outputChatBox("please write numbers not words", getRootElement(), 255,0,0,true) -- out to chat box end -- end of if tonumber(amount) if real > getPlayerMoney( player ) then outputChatBox("if you will send "..amount.."$ to "..num.." player in server you need to "..real.."$", player, 255,0,0,true) return end -- close anything by "return end" if player does not have enough money takePlayerMoney ( player, real ) -- take from player who write the command total money givePlayerMoney( v, clear ) -- give all players money v = all players outputChatBox("Admin ["..getPlayerName(player).."] give all players ["..clear.."$]", getRootElement(), 255,0,0,true) -- out to chat box end -- end of for k,v in ipairs else -- if player forget amount (2) then outputChatBox("send ", getRootElement(), 255,0,0,true) -- out to chat box & nosting happend end -- end of if amount ~= "" and amount ~= nil else -- if player from admin group (2) then outputChatBox("you are not in admin group", getRootElement(), 255,0,0,true) -- out to chat box & nosting happend end -- end of if isObjectInACLGroup end -- end of function addCommandHandler("send", sendMoney) -- addCommand with this function named sendMoney -
مبرووووووك يا ذ بست مع تمنياتنا لك بالتوفيق والنجاح والتقدم ضض1
-
في هاليومين كثرو التسجيلات احين خلاص مافي احد بسجل +1
-
Published on Apr 13, 2013