Jump to content

exports["drawData"]:outputDraw مشكله ب


Recommended Posts

ياشباب اضفت للكود اذا دخل الاعب + اذا خرج وخرب المود كله

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
ياشباب اضفت للكود اذا دخل الاعب + اذا خرج وخرب المود كله
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
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

addEventHandler ( "onClientPlayerJoin", root, 
    function () 
        nickData = "* " .. getPlayerName(source) .." has joined the game" 
        exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) 
    end 
) 
  

Edit:

:?جربه ورد لي خبر

Link to comment
addEventHandler ( "onClientPlayerJoin", root, 
    function () 
        nickData = "* " .. getPlayerName(source) .." has joined the game" 
        exports["drawData"]:outputDraw ( nickData, 255, 100, 100, false ) 
    end 
) 
  

Edit:

:?جربه ورد لي خبر

اشتغل مششكور

Link to comment
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 by Guest
Link to comment
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 
) 

# .. كنت نسيان ... :roll:

Link to comment

# 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 
) 

# .. كنت نسيان ... :roll:

getRootElement() اختصار ل root اصلاً

Link to comment

# 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 
) 

# .. كنت نسيان ... :roll:

getRootElement() اختصار ل root اصلاً

# ادري لاكن عشان ما يتلخبط ولا شي يقول ليش حاط هنا غير الباقي

Edited by Guest
Link to comment

# ادري ادري

# بس عشان ما يخربط الرجال يقول ليش حاتط هنا غير الباقي

كيف يتلخبط فيه تعريف اول الكود ض2 + هو كوده

بس عدلت الخطا

# { خخ ادري انه كوده وهو اول الكود معرف , بس شكله هو مبتدا فـ ممكن يتلخبط }

خخ مو مشكلة حصل خير .... :fadein:

Link to comment

ي عيال اسف على الشطحه :shock:

لاكن ابي تصحيح كود @

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
ي عيال اسف على الشطحه :shock:

لاكن ابي تصحيح كود @

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
ي عيال اسف على الشطحه :shock:

لاكن ابي تصحيح كود @

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
  • 11 months later...

للفائدة لا آكثر

أعرف إن الموضوع قبل سنة

هذا الموضوع استفادوا منه كثير وانا واحد منهم

مشكلتي نفس مشكلتة بس بدال

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...