Jump to content

ShAnKs_0

Members
  • Posts

    46
  • Joined

  • Last visited

1 Follower

About ShAnKs_0

  • Birthday 09/09/1999

Details

  • Gang
    Grove Street
  • Location
    Jordan
  • Occupation
    I'm Just playing ..
  • Interests
    servers , mods , maps ....

Recent Profile Visitors

962 profile views

ShAnKs_0's Achievements

Rat

Rat (9/54)

6

Reputation

  1. نسيت نقطة مهمة. إن اللوحات مؤقته يعني بعد فترة بنغير اللوحات ونظيف كمان مودات ان شاء الله
  2. بالنسبة للتصميم صراحةً ما دريت أن في تصميم مشابه او قريب للي سويناها بس بنحاول نغيره وشكرا على إقتراحك وتعليقك
  3. - بالنسبة للبداية والثلج بتنشال بعد فترة بس علشان عيد الميلاد والسنة الجديده والحقوق ان شاء الله بنسوي مثل ما قلت وشكراً على مرورك وتعليقك الجميل ❤
  4. لا والله بس شطحت واستعجلت وسويت فيها لغة عربية فصحة شويات وشكرا على تعليقك
  5. ✱| السلام عليكم ورحمة الله وبركاته |✱ __________________________________________________ ✱| أخباركم يا شباب عساكم بخير |✱ __________________________________________________ ✱| بقدم لكم اليوم حصريات سيرفر شباب المملكة الجديده والحصرية |✱ __________________________________________________ ✱| وأبي ارائكم وإقتراحاتكم وتقييمكم للسيرفر |✱ __________________________________________________ ﷽ 'صورة لأف '1 | freeroam : __________________________________________________ (صورة لإف '2' ( اخبار السيرفر | Twitter : __________________________________________________ ( صورة لإف '3' ( الوزنيات والتحكم بالموتر : __________________________________________________ ( صورة لإف '4' ( الإنتقالات و حفظ المكان : __________________________________________________ ( صورة لإف '5' ( شراء رتبة : __________________________________________________ ( صورة لإف '6' ( القوانين : __________________________________________________ ( صورة لإف '7' ( التحكم باللاعب - حفظ الشخصية : __________________________________________________ ( صورة لإف '9' ( الشيلات : __________________________________________________ ( صورة لإف '10' ( مهمة الحرب : - __________________________________________________ المابات صور للبداية : - __________________________________________________ صور لمنتجع شباب المملكة : __________________________________________________ صور لساحة القتال : __________________________________________________ صور لشارع الهجولة الجديد : __________________________________________________ صور للسيل : __________________________________________________ IP: mtasa://178.32.115.96:22003 __________________________________________________ ٱن شـاء اللـٌہ عجبكم السيرفر __________________________________________________ المودات والمابات كل فترة تتطور وتتحدث بشكل مستمر __________________________________________________ وشكرا لكم
  6. واصل يا بطل مود أكثر من رائع ء
  7. شكراً عآدي مفي مشكلة شكراً ع السكربت والملاحظة حقتك ء
  8. السلآم عليكم الحين لـو ابي زر بلوحة معينة يفتح لقروبات معينه مثلا لوحة قوانين حاط فيها زر مثلا نعدل القوانين الزر ذا ميقدر يفتحه الا الي عنده رتبت كونسل إلي هو ذا GUIEditor.button[2] = guiCreateButton(294, 299, 146, 26, "*[ إضافة قانون ]*", false, GUIEditor.window[1]) فـ الزبدة كيف أخلي الزر يفتح لرتبه معينه وشكراً
  9. السلام عليكم ي شباب أبي سكربت حق حماية سيريال من صكه ميوت او حساب معين وذا صكه يفك ميوت صاحب السيريال او الحساب وشكرا
  10. ERROR: Loading script failed : Last_Login/Last_server.lua:1: unexpected symbol near '-' جربت امحي -- الي ورا الكلمات بس نفس الوضع
  11. --[[function out( string ) outputDebugString( string ) end]] addEventHandler( 'onResourceStart', resourceRoot, function( ) --out( ' 1 ' ) if not ( xmlLoadFile( 'LastLogin.xml' ) ) then --out( ' 2 ' ) xmlSaveFile( xmlCreateFile( 'LastLogin.xml', 'LastLogin' ) ) end --out( ' 3 ' ) getAllAdminsAccounts( ) end ) function getTimeNow( ) local time = getRealTime( ) return string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute ) end function setUserName( sName, sData ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then local aChild = xmlCreateChild( lFile, 'aLastLogin' ) xmlNodeSetAttribute( aChild, 'sName', sName ) xmlNodeSetAttribute( aChild, 'sData', sData ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) end end function getUserName( sName ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlUnloadFile( lFile ) return true end end xmlUnloadFile( lFile ) return false end end function destoryUserName( sName ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlDestroyNode( gChildren ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) return true end end xmlUnloadFile( lFile ) end end function updateUserName( sName, sData ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sName' ) if ( gName == sName ) then xmlDestroyNode( gChildren ) xmlSaveFile( lFile ) xmlUnloadFile( lFile ) setUserName( sName, sData ) return true end end xmlUnloadFile( lFile ) end end function getAllAdminsAccounts( ) for _, aAccounts in next, getAccounts( ) do if hasObjectPermissionTo( 'user.' .. getAccountName( aAccounts ), 'general.adminpanel', true ) then if not( getUserName( getAccountName( aAccounts ) ) ) then --out( getAccountName( aAccounts ) ) setUserName( getAccountName( aAccounts ), getTimeNow( ) ) end end end end function isHGAP( aAccountName ) if hasObjectPermissionTo( 'user.' .. aAccountName, 'general.adminpanel', true ) then return true end return false end 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 ) function getDataTime( time ) --out( time ) if ( time ~= 'online' ) then local aYear, aMonth, aDay = string.match( time, '^(.-)-(.-)-(.-) (.-):(.-)$' ) local aYear1, aMonth1, aDay1 = string.match( getTimeNow( ), '^(.-)-(.-)-(.-) (.-):(.-)$' ) if ( aYear == aYear1 ) and ( aMonth == aMonth1 ) and ( aDay == aDay1 ) then return 'Today' elseif ( aYear == aYear1 ) and ( aMonth == aMonth1 ) and ( aDay ~= aDay1 ) then local aDay = ( aDay - 1 ) if ( aDay1 == string.format( '%02d', aDay ) ) then return 'Yesterday' elseif ( aMonth == aMonth1 ) and ( aDay1 ~= aDay ) then local aDay = ( aDay1 - aDay ) return math.abs( aDay ).. ' Day ago' end elseif ( aMonth ~= aMonth1 ) then return 'months ago' end end return ' ' end function getColorData( sData ) if ( sData == 'online' ) then return 0, 255, 0 elseif ( getDataTime( sData ) == 'Today' ) then return 255, 255, 0 elseif ( getDataTime( sData ) == 'Yesterday' ) then return 255, 255, 0 else return 255, 0, 0 end end function getAllData( ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do getCountOnlineAOtherwise( ) local gName = xmlNodeGetAttribute( gChildren, 'sName' ) local gData = xmlNodeGetAttribute( gChildren, 'sData' ) triggerClientEvent( 'onGetAllData', source, gName, gData, nOnline, nOfline, getColorData( gData ) ) end xmlUnloadFile( lFile ) end end addEvent( "aButtonRefresh", true ) addEventHandler( "aButtonRefresh", getRootElement( ), getAllData ) function getCountOnlineAOtherwise( ) local lFile = xmlLoadFile( 'LastLogin.xml' ) if ( lFile ) then nOnline = 0 nOfline = 0 for _, gChildren in ipairs( xmlNodeGetChildren( lFile ) ) do local gName = xmlNodeGetAttribute( gChildren, 'sData' ) if ( gName == 'online' ) then nOnline = ( nOnline + 1 ) --out( nOnline ) else nOfline = ( nOfline + 1 ) --out( nOfline ) end end xmlUnloadFile( lFile ) end end function delUsers ( ) for _, aAccounts in next, getAccounts( ) do if getUserName( getAccountName( aAccounts ) ) and not isHGAP( getAccountName( aAccounts ) ) then destoryUserName( getAccountName( aAccounts ) ) end end end delUsers ( ) .
×
×
  • Create New...