Jump to content

simple question


Recommended Posts

Posted

السلأم عليكم ورحمه الله وبركاته

كيفكم شباب جميعأ , أنشاء الله تكونو بخير 

اليوم كنت ابي اسوي بالقريد لست

لو الاعب متصل بالسرفر يجي في القريد متصل

لو مب متصل يجي غير متصل

والسلأم عليكم

ملحوظة: لأ احد يقول ابي جهاز وإلخ

ابي الطريقة او الفشكنات ونا بسويها .

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

عليكم السلام ورحمة الله تعالى  وبركاته ،

بالنسبة لطبلك ، حاول تسوي اول ما اللاعب يخش  ، ينحط في الجريد ليست و يصير لونه أخضر ، اذا خرج يصير لونه أحمر ، واذا تبي تسيف اللاعبين حطهم ف قاعدة بيانات وجيبهم من هناك.

IT Projet Manager

 

Posted
On ١٣‏/٥‏/٢٠١٧ at 10:26, Deativated said:

السلأم عليكم ورحمه الله وبركاته

كيفكم شباب جميعأ , أنشاء الله تكونو بخير 

اليوم كنت ابي اسوي بالقريد لست

لو الاعب متصل بالسرفر يجي في القريد متصل

لو مب متصل يجي غير متصل

والسلأم عليكم

ملحوظة: لأ احد يقول ابي جهاز وإلخ

ابي الطريقة او الفشكنات ونا بسويها .

انت بدخل الاسماء للجريد لست عبر وشو 

sql

??

لو كذا كل اللي عليك انك بالكلنت

تتحقق

if getPlayerFromName(sql[k].name) then

 

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
4 minutes ago, Master_MTA said:

انت بدخل الاسماء للجريد لست عبر وشو 

sql

??

لو كذا كل اللي عليك انك بالكلنت

تتحقق

if getPlayerFromName(sql[k].name) then

 

في طريقة ثانية مثلا غير السكل

:santa:

من أراد الفشل عليه بالنجاح

Posted
19 minutes ago, #BrosS said:

في طريقة ثانية مثلا غير السكل

:santa:

يب فيه :)

تسوي حدث اول مايدخل اللاعب وتعطيه اكوانت داتا اون لاين

واذا خرج تعطيه اكوانت داتا اوف لاين 

وطبعاً تحط اكوانت داتا عشان النك نيم :"

وتجلبهم من 

getAccounts;

  • Like 1

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted

احطه هكذا يعني مثلأ ؟ الداتا بالشكل كذا

setAccountData ( acc, "StatusPlayer", "Online" )

 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

 

بنسبة ل

اكونت داتا الخاص باونلاين و اوف لاين

 

addEventHandler( 'onPlayerLogin', getRootElement( ),
	function( _, theCurrentAccount )
		if getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			updateUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 1 ' )
		elseif not getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			setUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 2 ' )
		elseif getUserName( getAccountName( theCurrentAccount ) ) and not isHGAP( getAccountName( theCurrentAccount ) ) then
			destoryUserName( getAccountName( theCurrentAccount ) )
			--out( ' 3 ' )
		end
	end
)

addEventHandler( 'onPlayerQuit', getRootElement( ),
	function( )
		local pAccount = getPlayerAccount( source )
		if getUserName( getAccountName( pAccount ) ) and isHGAP( getAccountName( pAccount ) ) then
			updateUserName( getAccountName( pAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( pAccount ) ) and not isHGAP( getAccountName( pAccount ) ) then
			destoryUserName( getAccountName( pAccount ) )
			--out( ' 2 ' )
		end
	end
)

addEventHandler( 'onPlayerLogout', getRootElement( ),
	function( thePreviousAccount )
		if getUserName( getAccountName( thePreviousAccount ) ) and isHGAP( getAccountName( thePreviousAccount ) ) then
			updateUserName( getAccountName( thePreviousAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( thePreviousAccount ) ) and not isHGAP( getAccountName( thePreviousAccount ) ) then
			destoryUserName( getAccountName( thePreviousAccount ) )
			--out( ' 2 ' )
		end
	end
)

 

Signature removed by administrator due to large images

Posted
1 minute ago, Dr.Marco said:

 

بنسبة ل

اكونت داتا الخاص باونلاين و اوف لاين

 


addEventHandler( 'onPlayerLogin', getRootElement( ),
	function( _, theCurrentAccount )
		if getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			updateUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 1 ' )
		elseif not getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			setUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 2 ' )
		elseif getUserName( getAccountName( theCurrentAccount ) ) and not isHGAP( getAccountName( theCurrentAccount ) ) then
			destoryUserName( getAccountName( theCurrentAccount ) )
			--out( ' 3 ' )
		end
	end
)

addEventHandler( 'onPlayerQuit', getRootElement( ),
	function( )
		local pAccount = getPlayerAccount( source )
		if getUserName( getAccountName( pAccount ) ) and isHGAP( getAccountName( pAccount ) ) then
			updateUserName( getAccountName( pAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( pAccount ) ) and not isHGAP( getAccountName( pAccount ) ) then
			destoryUserName( getAccountName( pAccount ) )
			--out( ' 2 ' )
		end
	end
)

addEventHandler( 'onPlayerLogout', getRootElement( ),
	function( thePreviousAccount )
		if getUserName( getAccountName( thePreviousAccount ) ) and isHGAP( getAccountName( thePreviousAccount ) ) then
			updateUserName( getAccountName( thePreviousAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( thePreviousAccount ) ) and not isHGAP( getAccountName( thePreviousAccount ) ) then
			destoryUserName( getAccountName( thePreviousAccount ) )
			--out( ' 2 ' )
		end
	end
)

 

ابداااااااع , علمني الله لا يهينك :(

- Hashemite Kingdom Of Jordan -

Posted
2 minutes ago, Dr.Marco said:

 

بنسبة ل

اكونت داتا الخاص باونلاين و اوف لاين

 


addEventHandler( 'onPlayerLogin', getRootElement( ),
	function( _, theCurrentAccount )
		if getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			updateUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 1 ' )
		elseif not getUserName( getAccountName( theCurrentAccount ) ) and isHGAP( getAccountName( theCurrentAccount ) ) then
			setUserName( getAccountName( theCurrentAccount ), 'online' )
			--out( ' 2 ' )
		elseif getUserName( getAccountName( theCurrentAccount ) ) and not isHGAP( getAccountName( theCurrentAccount ) ) then
			destoryUserName( getAccountName( theCurrentAccount ) )
			--out( ' 3 ' )
		end
	end
)

addEventHandler( 'onPlayerQuit', getRootElement( ),
	function( )
		local pAccount = getPlayerAccount( source )
		if getUserName( getAccountName( pAccount ) ) and isHGAP( getAccountName( pAccount ) ) then
			updateUserName( getAccountName( pAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( pAccount ) ) and not isHGAP( getAccountName( pAccount ) ) then
			destoryUserName( getAccountName( pAccount ) )
			--out( ' 2 ' )
		end
	end
)

addEventHandler( 'onPlayerLogout', getRootElement( ),
	function( thePreviousAccount )
		if getUserName( getAccountName( thePreviousAccount ) ) and isHGAP( getAccountName( thePreviousAccount ) ) then
			updateUserName( getAccountName( thePreviousAccount ), getTimeNow( ) )
			--out( ' 1 ' )
		elseif getUserName( getAccountName( thePreviousAccount ) ) and not isHGAP( getAccountName( thePreviousAccount ) ) then
			destoryUserName( getAccountName( thePreviousAccount ) )
			--out( ' 2 ' )
		end
	end
)

 

^ زي كذا تقريباً ,

لكن اغلب الكود فيه وظايف غير معرفة

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
1 minute ago, #_iMr.[E]coo said:

ابداااااااع , علمني الله لا يهينك :(

هههههههه الكود هذا حق عناد اعتقد :-D

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
1 minute ago, Deativated said:

هههههههه الكود هذا حق عناد اعتقد :-D

يب حق عناد

 

Signature removed by administrator due to large images

Posted

توني ادري انه عناد مستعمل ذي طريقة,

بس ذي طريقة غير السقل تقدر تستعملها :)

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Just now, #_iMr.[E]coo said:

@Deativated , لقيت الطريقة 

تستعمل يوزفل فنكشن مودير , 

 

أي شخص يفوت السيرفر ويسجل تعطيه رتبة وتسوي زي فوق ^

مشكور

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted
2 minutes ago, #_iMr.[E]coo said:

@Deativated , لقيت الطريقة 

تستعمل يوزفل فنكشن مودير , 

 

أي شخص يفوت السيرفر ويسجل تعطيه رتبة وتسوي زي فوق ^

الله يهديك كنت برسله الكود وسبقتني , عوافي .~

بتوفيق لصاحب الموضوع

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Just now, iMr.WiFi..! said:

الله يهديك كنت برسله الكود وسبقتني , عوافي .~

بتوفيق لصاحب الموضوع

اذا كان طريقة غير اللي فوق اطرحه خلنا نستفيد ^

- Hashemite Kingdom Of Jordan -

Posted
Just now, #_iMr.[E]coo said:

اذا كان طريقة غير اللي فوق اطرحه خلنا نستفيد ^

لالا نفس الكود االي انت ارسلته :_(

يعني مافي شيء جديد :<

  • Like 1

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted

سوي سكل احسن شي واحسن من الاكاونت داتا 

اللي راح تسويه قاعدة بكلومين .. الكولمن الاول هو سريال اللاعب والثاني الحالة

واذا دخل تتحقق لو مسجل بالقاعدة من قبل اذا مسجل تحط الحالة اون لاين اذا مو مسجل تسوي له انسيرت .. واذا خرج تحط الحالة اوف لاين

بس .

  • Like 2

To Contact Me at Skype : [email protected]

Posted
On 5/14/2017 at 14:42, Deativated said:

هههههههه الكود هذا حق عناد اعتقد :-D

غير صحيح. ولا أنصح بإستخدام الداتا الداخلية

* setAccountData

يُفضل استخدام قواعد بيانات خارجية

 

بالتوفيق

Posted
On 13/05/2017 at 09:00, coNolel said:

عليكم السلام ورحمة الله تعالى  وبركاته ،

بالنسبة لطبلك ، حاول تسوي اول ما اللاعب يخش  ، ينحط في الجريد ليست و يصير لونه أخضر ، اذا خرج يصير لونه أحمر ، واذا تبي تسيف اللاعبين حطهم ف قاعدة بيانات وجيبهم من هناك.

يعني انا م عجبتكم يعني ض2 ههههههههههه

IT Projet Manager

 

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