z24d Posted September 22, 2015 Share Posted September 22, 2015 سلام عليكم وين الغلط ؟ انا حملت هذا المود وسويت الي علي هذا رابط المود 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
Rockyz Posted September 22, 2015 Share Posted September 22, 2015 سلام عليكم وين الغلط ؟انا حملت هذا المود وسويت الي علي هذا رابط المود 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
z24d Posted September 22, 2015 Author Share Posted September 22, 2015 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
z24d Posted September 22, 2015 Author Share Posted September 22, 2015 debugscript3 : 28 الغلط Link to comment
#CroSs Posted September 22, 2015 Share Posted September 22, 2015 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
z24d Posted September 22, 2015 Author Share Posted September 22, 2015 صاحب السكربت يقول 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
#CroSs Posted September 23, 2015 Share Posted September 23, 2015 صاحب السكربت يقول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
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