!# H E R O ,_ Posted January 8, 2019 Share Posted January 8, 2019 ســلام عــلـــيــــكـــــــمء ,ابــى فــكشــنـــاتء صــك الاعــب بـــاند وكتــابــة الــســببعــن طــريــق ايــديــت نــكــتب به الســيريالوايديـــــت نــكــتـــب الــســبب بـــةء فــكــشــنــات وبــحــاول و اوريكم محـاولاتي لــو ف شــيء خــطـــآء Link to comment
nxFairlywell Posted January 9, 2019 Share Posted January 9, 2019 (edited) وعليكم السلام ورحمة الله وبركاته ban addBan ( [ string IP, string Username, string Serial, player responsibleElement, string reason, int seconds = 0 ] ) string guiGetText ( element guiElement ) -- السبب string guiGetText ( element guiElement ) -- السريال bool triggerServerEvent ( string event, element theElement, [arguments...] ) --[[ reason = guiGetText( reason_edit ) serial = guiGetText( serial_edit ) triggerServerEvent( "onClientBanPlayer", localPlayer, serial, reason ) -- بعدين تسوي الحدث في السيرفر بنفس الحدث اللي بالترايقر -- و تحط الدالة اللي تحت addBan ]]-- Edited January 9, 2019 by NX_CI 1 Link to comment
!# H E R O ,_ Posted January 9, 2019 Author Share Posted January 9, 2019 2 hours ago, NX_CI said: وعليكم السلام ورحمة الله وبركاته ban addBan ( [ string IP, string Username, string Serial, player responsibleElement, string reason, int seconds = 0 ] ) string guiGetText ( element guiElement ) -- السبب string guiGetText ( element guiElement ) -- السريال bool triggerServerEvent ( string event, element theElement, [arguments...] ) --[[ reason = guiGetText( reason_edit ) serial = guiGetText( serial_edit ) triggerServerEvent( "onClientBanPlayer", localPlayer, serial, reason ) -- بعدين تسوي الحدث في السيرفر بنفس الحدث اللي بالترايقر -- و تحط الدالة اللي تحت addBan ]]-- مــشـــكـــــــــور ء Link to comment
!# H E R O ,_ Posted January 9, 2019 Author Share Posted January 9, 2019 محاولاتي --client addEventHandler("onClientGUIClick",root, function () if source == button2 then if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then serial = guiGetText( edit1 ) reason = guiGetText( edit2 ) triggerServerEvent( "onClientBanPlayer", localPlayer, serial, reason ) end end end ) --Server addEvent( 'onClientBanPlayer' , true ) function banSerial (serial, reason) addBan( nil, nil, serial, source, reason ) end addEventHandler( 'onClientBanPlayer' , root , banSerial) *.. اتمني لو في شئ غلط .. تقولي عشان اصلح من اخطائي Link to comment
nxFairlywell Posted January 9, 2019 Share Posted January 9, 2019 36 minutes ago, #Bad_Boy, said: محاولاتي --client addEventHandler("onClientGUIClick",root, function () if source == button2 then if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then serial = guiGetText( edit1 ) reason = guiGetText( edit2 ) triggerServerEvent( "onClientBanPlayer", localPlayer, serial, reason ) end end end ) --Server addEvent( 'onClientBanPlayer' , true ) function banSerial (serial, reason) addBan( nil, nil, serial, source, reason ) end addEventHandler( 'onClientBanPlayer' , root , banSerial) *.. اتمني لو في شئ غلط .. تقولي عشان اصلح من اخطائي كل شي اشوفه تمام , جربته ؟ Link to comment
!# H E R O ,_ Posted January 9, 2019 Author Share Posted January 9, 2019 29 minutes ago, NX_CI said: كل شي اشوفه تمام , جربته ؟ *.. حــلــتــهــا .. الخــطــاء كـــان مــنــي مــشــكــور Link to comment
!# H E R O ,_ Posted January 30, 2019 Author Share Posted January 30, 2019 (edited) On 09/01/2019 at 14:14, #Bad_Boy, said: -- Edited January 30, 2019 by #Bad_Boy, 2 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