#DRAGON!FIRE Posted July 29, 2013 Share Posted July 29, 2013 # الله يعافيك , في الخدمة ... Link to comment
-#Saimon Posted July 29, 2013 Author Share Posted July 29, 2013 ياشباب اضفت للكود اذا دخل الاعب + اذا خرج وخرب المود كله addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = " " .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) Link to comment
AHMAD1234 Posted July 29, 2013 Share Posted July 29, 2013 ياشباب اضفت للكود اذا دخل الاعب + اذا خرج وخرب المود كله addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = " " .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) هادى اذا اللاعب غير اسمه مو اذا دخل او خرج Link to comment
-#Saimon Posted July 29, 2013 Author Share Posted July 29, 2013 g_Root = getRootElement() addEventHandler('onClientPlayerJoin', g_Root, function() exports["drawData"]:outputDraw ( ' ['" .. getPlayerName(source) .. "'] Has Joiend Server ", 0, 255, 0, true) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) exports["drawData"]:outputDraw ( ' '" .. oldNick .. "' is now known as: '" .. newNick .. "'", 255, 255, 0, true) end ) Link to comment
AHMAD1234 Posted July 29, 2013 Share Posted July 29, 2013 addEventHandler ( "onClientPlayerJoin", root, function () nickData = "* " .. getPlayerName(source) .." has joined the game" exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) Edit: جربه ورد لي خبر Link to comment
-#Saimon Posted July 29, 2013 Author Share Posted July 29, 2013 addEventHandler ( "onClientPlayerJoin", root, function () nickData = "* " .. getPlayerName(source) .." has joined the game" exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) Edit: جربه ورد لي خبر اشتغل مششكور Link to comment
iMr.Dawix~# Posted July 30, 2013 Share Posted July 30, 2013 (edited) g_Root = getRootElement() addEventHandler('onClientPlayerJoin', g_Root, function() exports["drawData"]:outputDraw ( ' ['" .. getPlayerName(source) .. "'] Has Joiend Server ", 0, 255, 0, true) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) exports["drawData"]:outputDraw ( ' '" .. oldNick .. "' is now known as: '" .. newNick .. "'", 255, 255, 0, true) end ) g_Root = getRootElement() addEventHandler('onClientPlayerJoin', g_Root, function() exports["drawData"]:outputDraw ("[" .. getPlayerName(source) .. "] Has Joiend Server ", 0, 255, 0, true) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) exports["drawData"]:outputDraw ("" .. oldNick .. " is now known as: " .. newNick .."", 255, 255, 0, true) end ) Edited July 30, 2013 by Guest Link to comment
#DRAGON!FIRE Posted July 30, 2013 Share Posted July 30, 2013 g_Root = getRootElement() addEventHandler('onClientPlayerJoin', g_Root, function() exports["drawData"]:outputDraw ( ' ['" .. getPlayerName(source) .. "'] Has Joiend Server ", 0, 255, 0, true) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) exports["drawData"]:outputDraw ( ' '" .. oldNick .. "' is now known as: '" .. newNick .. "'", 255, 255, 0, true) end ) g_Root = getRootElement() addEventHandler('onClientPlayerJoin', g_Root, function() exports["drawData"]:outputDraw ("[" .. getPlayerName(source) .. "] Has Joiend Server ", 0, 255, 0, true) end ) addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) exports["drawData"]:outputDraw ( ' '" .. oldNick .. "' is now known as: '" .. newNick .. "'", 255, 255, 0, true) end ) # root - = * g_Root addEventHandler ( "onClientPlayerChangeNick", g_Root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) # .. كنت نسيان ... Link to comment
Tete omar Posted July 30, 2013 Share Posted July 30, 2013 # root - = * g_Root addEventHandler ( "onClientPlayerChangeNick", g_Root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) # .. كنت نسيان ... getRootElement() اختصار ل root اصلاً Link to comment
#DRAGON!FIRE Posted July 30, 2013 Share Posted July 30, 2013 (edited) # root - = * g_Root addEventHandler ( "onClientPlayerChangeNick", g_Root, function ( oldNick, newNick ) nickData = "" .. oldNick .. " Has Changed Nick To " .. newNick .. "." exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) end ) # .. كنت نسيان ... getRootElement() اختصار ل root اصلاً # ادري لاكن عشان ما يتلخبط ولا شي يقول ليش حاط هنا غير الباقي Edited September 11, 2014 by Guest Link to comment
iMr.Dawix~# Posted July 30, 2013 Share Posted July 30, 2013 # ادري ادري # بس عشان ما يخربط الرجال يقول ليش حاتط هنا غير الباقي كيف يتلخبط فيه تعريف اول الكود ض2 + هو كوده بس عدلت الخطا Link to comment
#DRAGON!FIRE Posted July 30, 2013 Share Posted July 30, 2013 # ادري ادري # بس عشان ما يخربط الرجال يقول ليش حاتط هنا غير الباقي كيف يتلخبط فيه تعريف اول الكود ض2 + هو كوده بس عدلت الخطا # { خخ ادري انه كوده وهو اول الكود معرف , بس شكله هو مبتدا فـ ممكن يتلخبط } خخ مو مشكلة حصل خير .... Link to comment
G.KinG Posted July 30, 2013 Share Posted July 30, 2013 ي عيال اسف على الشطحه لاكن ابي تصحيح كود @ addEventHandler ( "onClientPlayerQuit", root, function (reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) exports["drawData"]:outputDraw ( quitData, 255, 100, 100, false ) end ) المشكله لما يخرج الاعب ما يظهر في drawData Link to comment
فاّرس Posted July 30, 2013 Share Posted July 30, 2013 بدل السطر الثالث , quitData = '* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']' Link to comment
#DRAGON!FIRE Posted July 30, 2013 Share Posted July 30, 2013 ي عيال اسف على الشطحه لاكن ابي تصحيح كود @ addEventHandler ( "onClientPlayerQuit", root, function (reason) outputChatBox('* ' .. getPlayerName (source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) exports["drawData"]:outputDraw ( quitData, 255, 100, 100, false ) end ) المشكله لما يخرج الاعب ما يظهر في drawData quitData .؟# ومن من وين جبت ومن وين جبت الشات بوكس .؟ # كذا يصير addEventHandler ( "onClientPlayerQuit", root, function (reason) exports["drawData"]:outputDraw ('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']' , 255, 100, 100, false ) end ) Link to comment
iMr.Dawix~# Posted July 30, 2013 Share Posted July 30, 2013 ي عيال اسف على الشطحه لاكن ابي تصحيح كود @ addEventHandler ( "onClientPlayerQuit", root, function (reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) exports["drawData"]:outputDraw ( quitData, 255, 100, 100, false ) end ) المشكله لما يخرج الاعب ما يظهر في drawData quitData = ? Link to comment
KING-_-HOHO Posted July 17, 2014 Share Posted July 17, 2014 للفائدة لا آكثر أعرف إن الموضوع قبل سنة هذا الموضوع استفادوا منه كثير وانا واحد منهم مشكلتي نفس مشكلتة بس بدال drawData killmesage لو نلاحظ addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) exports.killmessages:outputMessage('* ' .. oldNick .. ' غـــــيــــــر إســـــمــــــه x~> ' .. newNick, 0, 255, 200, true) end ) مايشغل لاكن اذا سويناها لوكال تشتغل addEventHandler ( "onPlayerChangeNick", root, function ( oldNick, newNick ) nickData = "* " .. oldNick .. " > غير إسمه > " .. newNick .. "." exports.killmessages:outputMessage ( nickData, root, 0, 0, 255) end ) مع العلم اذا كان بالشات يشتغل addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) outputChatBox('#00ffff* ' .. oldNick .. '#00ffff غـــــيــــــر إســـــمــــــه x~> ' .. newNick, 0, 255, 200, true) end ) اتمنى كل واحد يطرح إيش السبب Link to comment
jafar Posted July 17, 2014 Share Posted July 17, 2014 لأنك مو حاط root عشان تظهر الرسالة Link to comment
KING-_-HOHO Posted July 17, 2014 Share Posted July 17, 2014 طيب ليه ماعدلتوا لهـ المود وحطيتوا root بعد الرسالة Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now