Jump to content

TABOOT

Members
  • Posts

    4
  • Joined

  • Last visited

Details

  • Gang
    [6ArH]
  • Occupation
    Civil Engineer.
  • Interests
    Learning to code LUA

TABOOT's Achievements

Vic

Vic (3/54)

0

Reputation

  1. الي بسويه اني اشغل خصائص محددة ل اشخاص بسيريالات و حسابات معينة فقط.
  2. اشتغل اخوي لاكن الحين الي صار يوم اخش بحساب Temperrr ما القا فيه الخصائص و الزائر او اي حساب ثاني عنده الخصائص الكود حقي كذا.. SSerial = { ['Temperrr'] = '6C797A27C0E907998DB44774CFA6A9F3', } function chatSoundColor ( ) local theCurrentAccount = getPlayerAccount( source ) local Serial = SSerial[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then return end else triggerClientEvent ( getRootElement(), "onPlaysounds", resourceRoot ) cancelEvent() local chatterName = getPlayerName ( source ) outputChatBox ("#ff0000[#ffffffV#000000.#ffffffI#000000.#FFFFFFP#FF0000]"..chatterName, getRootElement(), r, g, b, true ) end end addEventHandler("onPlayerChat", getRootElement(), chatSoundColor)
  3. السلام عليكم ورحمة الله و بركاته و بعد... مشكلتي هي اني لما احاول اجيب اسم الحساب او السيريال من ال table يطلعلي الخطأ التالي في الكونسل... lua:6: Bad argument @ 'getAccountName' [Expected account at argument 1, got number '0'] الكود الي فيه الخطأ: SSerial = { ['Temperrr'] = '5C797A27C0E907998DB44774CFA6A9F3', } function chatSoundColor ( _, theCurrentAccount ) local Serial = SSerial[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then return end end end addEventHandler("onPlayerChat", getRootElement(), chatSoundColor)
×
×
  • Create New...