Jump to content

AHMAD1234

Members
  • Posts

    485
  • Joined

  • Last visited

Everything posted by AHMAD1234

  1. guiLabelSetColor ( myLabel, 0, 179, 255 )
  2. client وليش ما حطاه server وقلي ليش حطى المثال SetElementHealth ههههههههههأأأأأأأييييي طالع ذي الصفحة !!...مع إن المثال يعطي اللاعب إسلاب
  3. تكون وهميه client في جانب الـ setElementHealth الـ triggerServerEvent يعني المفروض تسوي server المفروض تكون في جانب الـ client وانت حاطها كلها في الـ طيب اللاعب ما بيموت ؟ .ما راح يموت, ولا راح تتغير نقاطه اساساً
  4. تكون وهميه client في جانب الـ setElementHealth الـ triggerServerEvent يعني المفروض تسوي server المفروض تكون في جانب الـ client وانت حاطها كلها في الـ
  5. anything ولا server ولا client المثال ذا Client اعتقد ابو الشباب عنده غلط client ما دام انه
  6. anything ولا server ولا client المثال ذا
  7. addEventHandler ( "onClientPlayerJoin", root, function () nickData = "* " .. getPlayerName(source) .." has joined the game" exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) Edit: جربه ورد لي خبر
  8. هادى اذا اللاعب غير اسمه مو اذا دخل او خرج
  9. 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 )
  10. drawdata تأكد اول ان الاسكربت شغال
  11. وانت تشوف الكود فيه لوب..؟ او يحتاج لوب اصلاً
  12. break س/ ليه ما حطيت return ج/ استبدلت مكانها بـ
  13. انا ما قلت الكود خارق الكود عباره عن خلاصة الدرس كله في اسكربت
  14. لول لا تنفجع من الكود تعوذ من الشيطان
  15. 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
  16. مبرووووووك يا ذ بست مع تمنياتنا لك بالتوفيق والنجاح والتقدم ضض1
  17. في هاليومين كثرو التسجيلات احين خلاص مافي احد بسجل +1
×
×
  • Create New...