azoozalmalki711 Posted January 17, 2018 Share Posted January 17, 2018 ذا الكلنت ----------------------------- -- Created By 3NAD -- [email protected] ----------------------------- ----------------------- -- Settings ----------------------- onAdminLoginMsg = 'قام صاحب السيرفر بتسجيل دخولة الى السيرفر' onEnterCarMsg = 'نورت موتورك يا كنق' -- ' ' علامات التنصيص مطلوبة ----------------------- -- Events ----------------------- addEvent ( "onAdminLogin", true ) addEvent ( "onVehicleEnter", true ) ----------------------- -- Create Label ----------------------- function centerLabel ( center_label ) local screenW, screenH = guiGetScreenSize ( ) local labelW, labelH = guiGetSize ( center_label, false ) local x, y = ( screenW - labelW ) / 2, ( screenH - labelH ) / 2 guiSetPosition ( center_label, x, y, false ) end Label = guiCreateLabel ( 0, 0, 655, 500, "", false ) centerLabel ( Label ) guiLabelSetHorizontalAlign ( Label, "center", true ) guiSetFont( Label, guiCreateFont( "Font.ttf", 13 ) ) guiSetProperty ( Label, "Disabled", "True" ) guiMoveToBack ( Label ) ----------------------- -- onAdminLogin ----------------------- addEventHandler ( "onAdminLogin", root, function ( Admin ) if Admin then if isTimer ( theTimer ) then for _, timer3NADValue in ipairs ( getTimers ( 10000, 500 ) ) do killTimer ( timer3NADValue ) end end guiSetText ( Label, Admin.." "..onAdminLoginMsg ) playSoundFrontEnd ( 45 ) setTimer ( guiSetText, 10000, 1, Label, "" ) theTimer = setTimer( function ( ) guiLabelSetColor ( Label, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 500, 0 ) end end ) ----------------------- -- onVehicleEnter ----------------------- addEventHandler ( "onVehicleEnter", root, function ( ) if isTimer ( theTimer ) then for _, timer3NADValue in ipairs ( getTimers ( 10000, 500 ) ) do killTimer ( timer3NADValue ) end end guiSetText ( Label, getPlayerName ( localPlayer ):gsub("#%x%x%x%x%x%x", "").." "..onEnterCarMsg ) playSoundFrontEnd ( 30 ) setTimer ( guiSetText, 10000, 1, Label, "" ) theTimer = setTimer ( function ( ) guiLabelSetColor ( Label, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 500, 0 ) end ) وذا السيرفر ----------------------------- -- Created By 3NAD -- [email protected] ----------------------------- ----------------------- -- Settings ----------------------- groupAdmins = 'Console' -- ' ' علامات التنصيص مطلوبة ----------------------- -- Admin Login ----------------------- addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( groupAdmins ) ) then triggerClientEvent ( "onAdminLogin", root, getPlayerName ( source ):gsub("#%x%x%x%x%x%x", "") ) end end ) ----------------------- -- Enter Vehicle ----------------------- addEventHandler ( "onVehicleStartEnter", root, function ( source ) triggerClientEvent ( source, "onVehicleEnter", source ) end ) Link to comment
#Soking Posted January 18, 2018 Share Posted January 18, 2018 onPlayerLogin if ( ... ) then -- Account Name outputChatBox Link to comment
Doffy Posted January 18, 2018 Share Posted January 18, 2018 9 minutes ago, #Soking said: onPlayerLogin if ( ... ) then -- Account Name outputChatBox Link to comment
#Soking Posted January 18, 2018 Share Posted January 18, 2018 حسب مايبي انه يطلع رساله لما يسجل دخوله ض Link to comment
azoozalmalki711 Posted January 20, 2018 Author Share Posted January 20, 2018 ما فهمت زبط الكود وارسله من جديد ابيه لرتبة معينة يطلع الكلام 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