Jump to content

تعديل


Adham

Recommended Posts

سلام عليكم اليوم سويت فـ لوحه الادمن

ان الأسم يجي بدون الاكواد

الأنصك والخ

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 by Deativated
Link to comment
Just now, MR.S3D said:

اطرح كودك كامل عشان نقدر نساعدك

كيف كودي كامل ؟

انا اقلك ذا الكود لوحه الادمينه

حطيت الأسم بدون اكواد

صار يظهر

$player has been muted by le3ba

لين اشيل الأكواد حق اللوان

يجي عادي

Link to comment

لا م في شيء افهمني ي غالي

انا الحين صكيتك ميوت عادي

و الأسم فيه اكواد الوان بيجي كذا طبيعي

#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

 

والحين افترض, انا ابي اسم الادمن يجي بدون اكواد ؟

  • Like 1
Link to comment
Just now, MR.S3D said:

هذا لكلهم الاسم + الأدمن

لا, قد جربت الحين وانت معي طلع الأول بدون اكواد والتاني اكواد الأدمن

+ جيت اغير اسمي

جاء $player

م جاء الأسم

Edited by Deativated
  • Sad 1
Link to comment
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
  1. حطيت كذا اهو جالي
  2. kendrick has been muted by #000000kendrick
  3. وبعدين اغير اسمي يجي
  4. $player has been muted by #000000kendrick
  • Sad 1
Link to comment

انت ركز  بالسطر حقي مانسخته زين انا معدل فيه

			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 by MR.S3D
  • Like 1
Link to comment
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

تم التعديل

  • Like 1
Link to comment
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

تم التعديل

اشكرك - :)

  • Thanks 1
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...