#Dr.BnG Posted September 13, 2016 Share Posted September 13, 2016 السلام عليكم ورحمة الله وبركاته انا سويت لوحة تاجات وابي احط خاصية لو كتبت تاج باف 8 يقفل التاج الخاص ويجي تاج الرتبة ولو كتبتها تاني يفتح التاج الخاص ويقفل تاج الرتبة مستر جراند مسويها وهذا كوده بس ما اعرف وين احط الكود احد يساعدني --------------------------------- addCommandHandler( 'myTag', function( myself ) local ifData = dbQuery( tagsDBconnect, ' SELECT * FROM `TagsMan` WHERE serial = ? ', getPlayerSerial( myself ) ) local dbData = dbPoll( ifData, -1 ) if ( type ( dbData ) == 'table' and #dbData == 0 or not dbData ) then return end local TagString = dbData[1]['tag'] local TagState = dbData[1]['state'] if ( TagState == 'Enabled' ) then local state = 'Disabled' outputChatBox( 'Tags system : #FFFFFF Your tag has been : #FF0000' .. state, myself, 0, 255, 0, true ) dbExec( tagsDBconnect, ' UPDATE `TagsMan` SET serial = ?, name = ?, tag = ?, state = ? WHERE serial = ? ', getPlayerSerial( myself ), getPlayerName( myself ), TagString, state, getPlayerSerial( myself ) ) takeTagsFromDB() else local state = 'Enabled' outputChatBox( 'Tags system : #FFFFFF Your tag has been : #1EFF00' .. state, myself, 0, 255, 0, true ) dbExec( tagsDBconnect, ' UPDATE `TagsMan` SET serial = ?, name = ?, tag = ?, state = ? WHERE serial = ? ', getPlayerSerial( myself ), getPlayerName( myself ), TagString, state, getPlayerSerial( myself ) ) takeTagsFromDB() end end ) ----------------------------------- Link to comment
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