فاّرس Posted June 4, 2013 Share Posted June 4, 2013 اي عارفف , هذا مثآل, ما جربته, addEventHandler("onResourceStart",resourceRoot, function() outputChatBox("Your name : "..getPlayerName(source):gsub('#%x%x%x%x%x%x', '')"") end) Link to comment
فاّرس Posted June 4, 2013 Share Posted June 4, 2013 server ? addEventHandler("onResourceStart",resourceRoot, function() local Name = getPlayerName(source):gsub('#%x%x%x%x%x%x', '') outputChatBox("Your name : "..Name.." is good") end) Link to comment
iPrestege Posted June 4, 2013 Share Posted June 4, 2013 server ? addEventHandler("onResourceStart",resourceRoot, function() local Name = getPlayerName(source):gsub('#%x%x%x%x%x%x', '') outputChatBox("Your name : "..Name.." is good") end) تقدر تقولي من وين جبت سورس؟ آنها لاعب؟ Link to comment
iPrestege Posted June 4, 2013 Share Posted June 4, 2013 source = هو المود اللي توهـ اشتغل بدلة بـ كوماند وعرف السورس # Link to comment
فاّرس Posted June 4, 2013 Share Posted June 4, 2013 آي صح نسيت ان السورس هو الحدث, دائما انسى اقرأ الويكي حق الحدث , المهم جرب كذآ , addCommandHandler("Name", function(player) local Name = getPlayerName(player):gsub('#%x%x%x%x%x%x', '') outputChatBox("Your name : "..Name.." is good") end) Link to comment
iPrestege Posted June 4, 2013 Share Posted June 4, 2013 -- # Server Side : addCommandHandler ( 'Prestege', function ( PlayerElement ) outputChatBox ( string.gsub( getPlayerName ( PlayerElement ) , '#%x%x%x%x%x%x', ' ' ),PlayerElement,255,255,255,true ) end ) More Clear . Link to comment
فاّرس Posted June 4, 2013 Share Posted June 4, 2013 مافيها فرق , + حقي يوضح له احسن ويستوعب اكثر, وبالتوفيق, Link to comment
فاّرس Posted June 4, 2013 Share Posted June 4, 2013 آي صح نسيت ان السورس هو الحدث,دائما انسى اقرأ الويكي حق الحدث , المهم جرب كذآ , addCommandHandler("Name", function(player) local Name = getPlayerName(player):gsub('#%x%x%x%x%x%x', '') outputChatBox("Your name : "..Name.." is good") end) والي يقولك انه مجرب وشغال ؟ اكتب في الكونسل اف8 Name Link to comment
iPrestege Posted June 5, 2013 Share Posted June 5, 2013 أنت دايم تقول مايشتغل مدري وش قصتكـ ي آخوي ذذ Link to comment
PaiN^ Posted June 5, 2013 Share Posted June 5, 2013 انت قصدك لمن تتكلم عادي في الشات ؟ Link to comment
فاّرس Posted June 5, 2013 Share Posted June 5, 2013 تقصد الاسم الاساسي ؟ الي قدام التاج ؟ اذا ايه عدل التاج, هو كذآ , local name = getPlayerName(source) خليه كذآ , local name = getPlayerName(source):gsub('#%x%x%x%x%x%x', '') Link to comment
|Mr|-Talal07-| Posted June 5, 2013 Share Posted June 5, 2013 -- Server Side addEventHandler("onPlayerJoin",root, function () setPlayerName(source,getPlayerName(source):gsub("#%x%x%x%x%x%x","")) end ) Link to comment
فاّرس Posted June 5, 2013 Share Posted June 5, 2013 المشكله اذا واحد ما يعرف يشرح ويبي الناس تسوي له Link to comment
|Mr|-Talal07-| Posted June 5, 2013 Share Posted June 5, 2013 شكرا طلال حبي skype: al-prns7 Yahoo:[email protected] العفوو و اعتمد على نفسك Link to comment
iMr.3a[Z]eF Posted June 8, 2013 Share Posted June 8, 2013 كذا ما يجي؟ -- Server Side addEventHandler("onPlayerChat",root, function () setPlayerName(source,getPlayerName(source):gsub("#%x%x%x%x%x%x","")) end ) الأفنت أشوفه في بعض التاجات Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 كذا راح يغير اسم اللاعب تقريبآ ويشيل الاكواد Link to comment
AhmeD~9MoD Posted June 8, 2013 Share Posted June 8, 2013 اوكي بس طلب اخيرابي كود اذا احد دخل السيرفر يكون معه اسلحه Server Side ! addEventHandler("onPlayerJoin",root, function () giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) end ) Link to comment
فاّرس Posted June 8, 2013 Share Posted June 8, 2013 اوكي بس طلب اخيرابي كود اذا احد دخل السيرفر يكون معه اسلحه Server Side ! addEventHandler("onPlayerJoin",root, function () giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) giveWeapon ( source, id, ammo ) end ) عرفنا انك تعرف تسوي الكود, الحين وش استفاد والله كلها نسخ ولصق وانا عارفه... 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