Jump to content

xNight

Members
  • Posts

    3
  • Joined

  • Last visited

xNight's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. السلام عليكم عندي كثير أفكار أحب أتعامل مع السكربتات بالـ " لوجيك "ـ مثلا كود الألوان إلي موجود في MTA wiki function onJoin() setPedArmor(source, 100) outputChatBox("Welcome To The Server", source, 255, 0, 0) end addEventHandler("onPlayerJoin", root, onJoin) Sourceالـ إيش تعني ؟ ماهي داخلة مخي في مثال أخر موجود في MTA wiki function colouredChat ( message, theType ) if theType == 0 then --if its normal chat (not /me or teamchat) then cancelEvent() --prevent MTA from outputting chat message = string.gsub(message, "#%x%x%x%x%x%x", "") --remove any hex tags in a player's chat to prevent custom colours by using lua's string.gsub local r,g,b = getPlayerNametagColor ( source ) --get the player's nametag colour local chatterName = getPlayerName ( source ) --get his name --output a message with the name as his nametag colour, and the rest in white. outputChatBox ( chatterName..":#FFFFFF "..message, getRootElement(), r, g, b, true ) end end addEventHandler("onPlayerChat", getRootElement(), colouredChat) في إثنين getRootElement نفس السؤال ... إيش فايدتها ؟ أتمنى أحد يفسرلي بكل وضوح وشكرا
  2. السلام عليكم عندي كثير أفكار أحب أتعامل مع السكربتات بالـ " لوجيك "ـ مثلا كود الألوان إلي موجود في MTA wiki function onJoin() setPedArmor(source, 100) outputChatBox("Welcome To The Server", source, 255, 0, 0) end addEventHandler("onPlayerJoin", root, onJoin) Sourceالـ إيش تعني ؟ ماهي داخلة مخي في مثال أخر موجود في MTA wiki function colouredChat ( message, theType ) if theType == 0 then --if its normal chat (not /me or teamchat) then cancelEvent() --prevent MTA from outputting chat message = string.gsub(message, "#%x%x%x%x%x%x", "") --remove any hex tags in a player's chat to prevent custom colours by using lua's string.gsub local r,g,b = getPlayerNametagColor ( source ) --get the player's nametag colour local chatterName = getPlayerName ( source ) --get his name --output a message with the name as his nametag colour, and the rest in white. outputChatBox ( chatterName..":#FFFFFF "..message, getRootElement(), r, g, b, true ) end end addEventHandler("onPlayerChat", getRootElement(), colouredChat) في إثنين getRootElement نفس السؤال ... إيش فايدتها ؟ أتمنى أحد يفسرلي بكل وضوح وشكرا
×
×
  • Create New...