Adham Posted September 17, 2017 Share Posted September 17, 2017 (edited) سلام عليكم اليوم سويت فـ لوحه الادمن ان الأسم يجي بدون الاكواد الأنصك والخ string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x", "") ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ):gsub("#%x%x%x%x%x%x", "") ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") ) end اجي اصك نفسي ميوت انا الحين يجي الإسم بدون اكواد مثلا بس فيه مشكله يجي كذا $player has been muted by le3ba يجي $player ومفروض يجي الإسم الانصك عادي اجي اشيل الاكواد يتسوي عادي Edited September 17, 2017 by Deativated Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 اطرح كودك كامل عشان نقدر نساعدك Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 Just now, MR.S3D said: اطرح كودك كامل عشان نقدر نساعدك كيف كودي كامل ؟ انا اقلك ذا الكود لوحه الادمينه حطيت الأسم بدون اكواد صار يظهر $player has been muted by le3ba لين اشيل الأكواد حق اللوان يجي عادي Link to comment
N3xT Posted September 17, 2017 Share Posted September 17, 2017 وريني الكود قبل التعديل Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 نفس الأكواد بس شيل منهم حق فكشن جلب أسم اللاعب :gsub("#%x%x%x%x%x%x", "") 1 Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 التعديل فقط يكون هذا السطر if ( player ) then string = string.gsub ( string:gsub("#%x%x%x%x%x%x", ""), "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") ) end Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 لا م في شيء افهمني ي غالي انا الحين صكيتك ميوت عادي و الأسم فيه اكواد الوان بيجي كذا طبيعي #000000Le3bA has been muted by #999999NexT لين احط بدون اكواد يجي كذا $player has been muted by NexT Just now, MR.S3D said: التعديل فقط يكون هذا السطر if ( player ) then string = string.gsub ( string:gsub("#%x%x%x%x%x%x", ""), "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") ) end والحين افترض, انا ابي اسم الادمن يجي بدون اكواد ؟ 1 Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 هذا لكلهم الاسم + الأدمن Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 (edited) Just now, MR.S3D said: هذا لكلهم الاسم + الأدمن لا, قد جربت الحين وانت معي طلع الأول بدون اكواد والتاني اكواد الأدمن + جيت اغير اسمي جاء $player م جاء الأسم Edited September 17, 2017 by Deativated 1 Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 لا جرب ذا وتأكد انا مجربه بنفسي انت انسخ السطر حقي فقط وامسح تعديلك 1 Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 Just now, MR.S3D said: لا جرب ذا وتأكد انا مجربه بنفسي انت انسخ السطر حقي فقط وامسح تعديلك string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") ) end حطيت كذا اهو جالي kendrick has been muted by #000000kendrick وبعدين اغير اسمي يجي $player has been muted by #000000kendrick 1 Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 (edited) انت ركز بالسطر حقي مانسخته زين انا معدل فيه string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string:gsub("#%x%x%x%x%x%x", ""), "$player", getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") ) end Edited September 17, 2017 by MR.S3D 1 Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 ايوا تمام مشكور اشتغل بس فيه مشكله بسيطة. اني لو شلت الأكواد من اسمي يظهر $player ولو حطيت الاكواد يظهر تمام وميه ميه ليش كذا 1 Link to comment
MR.S3D Posted September 17, 2017 Share Posted September 17, 2017 7 minutes ago, Deativated said: ايوا تمام مشكور اشتغل بس فيه مشكله بسيطة. اني لو شلت الأكواد من اسمي يظهر $player ولو حطيت الاكواد يظهر تمام وميه ميه ليش كذا string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string:gsub("#%x%x%x%x%x%x", ""), "$player", (getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") or getPlayerName ( player )) ) end تم التعديل 1 Link to comment
Adham Posted September 17, 2017 Author Share Posted September 17, 2017 Just now, MR.S3D said: string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string:gsub("#%x%x%x%x%x%x", ""), "$player", (getPlayerName ( player ):gsub("#%x%x%x%x%x%x", "") or getPlayerName ( player )) ) end تم التعديل اشكرك - 1 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