Jump to content

: | وش المشكلة


z24d

Recommended Posts

سلام عليكم وين الغلط ؟

انا حملت هذا المود وسويت الي علي هذا رابط المود

https://community.multitheftauto.com/ind ... ls&id=6292

الكود

addEventHandler( "onPlayerJoin", root, 
function() 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##005BCB* ( " .. getPlayerName ( source ) .. "#005BCB ) Has been joined",root, 0, 255, 0 ) 
end 
    end) 
  
addEventHandler( "onPlayerChangeNick", root, 
function( oldNick, newNick ) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##00FF00 #D4AE06 ( " .. oldNick .. "#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( " .. newNick .. "#D4AE06 )",root,0, 255, 0) 
end 
    end) 
  
addEventHandler( "onPlayerQuit", root, 
function(reason) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E#[6.A] #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]",root, 255, 255, 255) 
    end 
end) 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Console")) or 
    isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Admin")) then 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
exports.hud_messages:showBox("#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName(source).."#CC0000 ) #FF0000 Has been succesfuly Logged in",root, 204, 51, 255) 
        else 
    exports.hud_messages:showBox( "#FE9A2E##04B404* ( "..getPlayerName(source).." ) #04B404 Has been succesfuly Logged in",root, 204, 51, 255) 
    end 
    end 
end) 
addEventHandler("onPlayerLogout", root, 
function () 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) Has been succesfuly Logged out",root, 0, 255, 0 ) 
    exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) You have been succesfuly Logged out",source, 0, 255, 0 ) 
end 
    end) 
  

Link to comment
سلام عليكم وين الغلط ؟

انا حملت هذا المود وسويت الي علي هذا رابط المود

https://community.multitheftauto.com/ind ... ls&id=6292

الكود

addEventHandler( "onPlayerJoin", root, 
function() 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##005BCB* ( " .. getPlayerName ( source ) .. "#005BCB ) Has been joined",root, 0, 255, 0 ) 
end 
    end) 
  
addEventHandler( "onPlayerChangeNick", root, 
function( oldNick, newNick ) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##00FF00 #D4AE06 ( " .. oldNick .. "#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( " .. newNick .. "#D4AE06 )",root,0, 255, 0) 
end 
    end) 
  
addEventHandler( "onPlayerQuit", root, 
function(reason) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E#[6.A] #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]",root, 255, 255, 255) 
    end 
end) 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Console")) or 
    isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Admin")) then 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
exports.hud_messages:showBox("#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName(source).."#CC0000 ) #FF0000 Has been succesfuly Logged in",root, 204, 51, 255) 
        else 
    exports.hud_messages:showBox( "#FE9A2E##04B404* ( "..getPlayerName(source).." ) #04B404 Has been succesfuly Logged in",root, 204, 51, 255) 
    end 
    end 
end) 
addEventHandler("onPlayerLogout", root, 
function () 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) Has been succesfuly Logged out",root, 0, 255, 0 ) 
    exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) You have been succesfuly Logged out",source, 0, 255, 0 ) 
end 
    end) 
  

الحين وش فايدة

    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 

وانت ماستخدمتها بشي

Link to comment
addEventHandler( "onPlayerJoin", root, 
function() 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##005BCB* ( " .. getPlayerName ( source ) .. "#005BCB ) Has been joined",PLY, 0, 255, 0 ) 
end 
    end) 
  
addEventHandler( "onPlayerChangeNick", root, 
function( oldNick, newNick ) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##00FF00 #D4AE06 ( " .. oldNick .. "#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( " .. newNick .. "#D4AE06 )",PLY,0, 255, 0) 
end 
    end) 
  
addEventHandler( "onPlayerQuit", root, 
function(reason) 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E# #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]",PLY, 255, 255, 255) 
    end 
end) 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Console")) or 
    isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Admin")) then 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
exports.hud_messages:showBox("#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName(source)..#CC0000 ") #FF0000 Has been succesfuly Logged in",PLY, 204, 51, 255) 
        else 
    exports.hud_messages:showBox( "#FE9A2E##04B404* (" ..getPlayerName(source).. ") #04B404 Has been succesfuly Logged in",PLY, 204, 51, 255) 
    end 
    end 
end) 
addEventHandler("onPlayerLogout", root, 
function () 
    for id, PLY in ipairs ( getElementsByType ( "player" ) ) do 
    exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) Has been succesfuly Logged out",PLY, 0, 255, 0 ) 
end 
    end) 
  

نسيت :$

الحين شلغلط

Link to comment
addEventHandler( "onPlayerJoin", root, 
function() 
    exports["hud_messages"]:showBox( "#FE9A2E##005BCB* ( "..getPlayerName( source ).."#005BCB ) Has been joined", root, 0, 255, 0, 10 ) 
end) 
  
addEventHandler( "onPlayerChangeNick", root, 
function( oldNick, newNick ) 
    exports["hud_messages"]:showBox( "#FE9A2E##00FF00 #D4AE06 ( "..oldNick.."#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( "..newNick.."#D4AE06 )", root, 0, 255, 0, 10 ) 
end) 
  
addEventHandler( "onPlayerQuit", root, 
function( reason ) 
    exports["hud_messages"]:showBox( "#FE9A2E# #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]", root, 255, 255, 255, 10 ) 
end) 
  
addEventHandler( "onPlayerLogin", root, 
function( _, account ) 
    if ( isObjectInACLGroup( "user."..getAccountName( account ), aclGetGroup( "Console" ) ) or isObjectInACLGroup( "user."..getAccountName( account ), aclGetGroup( "Admin" ) ) ) then 
        exports["hud_messages"]:showBox( "#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName( source ).."#CC0000) #FF0000 Has been succesfuly Logged in", root, 204, 51, 255, 10 ) 
    else 
        exports["hud_messages"]:showBox( "#FE9A2E##04B404* ("..getPlayerName( source )..") #04B404 Has been succesfuly Logged in", root, 204, 51, 255, 10 ) 
    end 
end) 
  
addEventHandler( "onPlayerLogout", root, 
function() 
    exports["hud_messages"]:showBox( "#FE9A2E##FFC900* ( "..getPlayerName( source ).."#FFC900 ) Has been succesfuly Logged out", root, 0, 255, 0, 10 ) 
end) 

Link to comment

صاحب السكربت يقول

If you want to send message to all players, use it

--ONLY SERVER SIDE -----------------------------------------

for id, PLY in ipairs ( getElementsByType ( "player" ) ) do

exports.hud_messages:showBox(text, PLY , color red, color green, color blue, disappear time)

end

------------------------------------------------------------

Thanks for rating or downloading.

If you want to send message to all players, use it

--ONLY SERVER SIDE -----------------------------------------

for id, PLY in ipairs ( getElementsByType ( "player" ) ) do

Link to comment
صاحب السكربت يقول

If you want to send message to all players, use it

--ONLY SERVER SIDE -----------------------------------------

for id, PLY in ipairs ( getElementsByType ( "player" ) ) do

exports.hud_messages:showBox(text, PLY , color red, color green, color blue, disappear time)

end

------------------------------------------------------------

Thanks for rating or downloading.

If you want to send message to all players, use it

--ONLY SERVER SIDE -----------------------------------------

for id, PLY in ipairs ( getElementsByType ( "player" ) ) do

:| نفس الشيء يأخ

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...