./BlackBird# Posted June 24, 2013 Posted June 24, 2013 getAccountData setAccountData زي setElementData getElementData بس هاذي للحساب
iMr.Dawix~# Posted June 24, 2013 Posted June 24, 2013 getAccountData setAccountData زي setElementData getElementData بس هاذي للحساب الفرق بينهم انه الي تحفظ بالحساب الي هي اكونت داتا تطلع وتدخل وتسجل دخول ما تروح لكن الألمنت داتا لو طلعت ودخلت تروح
./BlackBird# Posted June 24, 2013 Posted June 24, 2013 getAccountData setAccountData زي setElementData getElementData بس هاذي للحساب الفرق بينهم انه الي تحفظ بالحساب الي هي اكونت داتا تطلع وتدخل وتسجل دخول ما تروح لكن الألمنت داتا لو طلعت ودخلت تروح + ان سيت المينت داتا للالمينت اما سيت اكاونت داتا للحساب
iPrestege Posted June 24, 2013 Posted June 24, 2013 ممكن مثال ؟ addCommandHandler('hi', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then setAccountData ( getPlayerAccount ( player ),'aChatHi','Hi @ '..getPlayerName ( player )..'' ) end end ) addCommandHandler('results', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then outputChatBox ( getAccountData ( getPlayerAccount ( player ),'aChatHi' ) ) end end )
BadBoy Posted June 24, 2013 Author Posted June 24, 2013 ممكن مثال ؟ addCommandHandler('hi', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then setAccountData ( getPlayerAccount ( player ),'aChatHi','Hi @ '..getPlayerName ( player )..'' ) end end ) addCommandHandler('results', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then outputChatBox ( getAccountData ( getPlayerAccount ( player ),'aChatHi' ) ) end end ) مـآفهمـت
K1NG Posted June 24, 2013 Posted June 24, 2013 ممكن مثال ؟ addCommandHandler('hi', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then setAccountData ( getPlayerAccount ( player ),'aChatHi','Hi @ '..getPlayerName ( player )..'' ) end end ) addCommandHandler('results', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then outputChatBox ( getAccountData ( getPlayerAccount ( player ),'aChatHi' ) ) end end ) هنا التحقق من بلاير ماله أي داعي أبداً ، المفروض تحقق إذا تم جلب حساب اللاعب ثم تتحقق إذا حسابه مهو زائر .. addCommandHandler ( 'hi', function ( player ) local acc = getPlayerAccount ( player ) if ( acc ) and not ( isGuestAccount ( acc ) ) then setAccountData ( acc, 'aChatHi', 'Hi @ ' .. getPlayerName ( player ) ) end end ) addCommandHandler ( 'results', function ( player ) local acc = getPlayerAccount ( player ) if ( acc ) and not ( isGuestAccount ( acc ) ) then outputChatBox ( getAccountData ( acc, 'aChatHi' ) or 'N/A' ) end end ) مـآفهمـت وشوف النتيجة بنفسكـ /results ثم إكتب بالشات /hi روح للسيرفر وسجل دخولكـ ثم إكتب بالشات
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