i,xAhmed Posted March 26, 2018 Share Posted March 26, 2018 function canPlayerAccessStaffManager(player) return exports.integration:isPlayerTrialAdmin(player) or exports.integration:isPlayerSupporter(player) or exports.integration:isPlayerVCTMember(player) or exports.integration:isPlayerLeadScripter(player) or exports.integration:isPlayerMappingTeamLeader(player) end Link to comment
^iiEcoo'x_) Posted March 26, 2018 Share Posted March 26, 2018 function canPlayerAccessStaffManager(player) if ( getPlayerSerial ( player ) == '8272910229' ) then return true end end Link to comment
i,xAhmed Posted April 13, 2018 Author Share Posted April 13, 2018 شكرا لك ضبط بس ابي اكثر من شخص يحط سريال مو بس انا Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 local Serial = [ "44" ] = true, } isPlayerHaveSerial = function ( player ) local serial = getPlayerSerial ( player ) if ( serial ) then if Serial [ serial ] then return true end end end مثال if isPlayerHaveSerial ( element ) then Link to comment
PleaseHelp Posted April 13, 2018 Share Posted April 13, 2018 Just now, -Le[3]bA. said: local Serial = [ "44" ] = true, } isPlayerHaveSerial = function ( player ) local serial = getPlayerSerial ( player ) if ( serial ) then if Serial [ serial ] then return true end end end مثال if isPlayerHaveSerial ( element ) then دي طريقة ثانية انا افضلها بس هو شكله يبغا حق DABL Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 م راح تفرق يسويها كذا عادي الي يريحه * if getPlayerSerial ( player ) == '8272910229' or getPlayerSerial ( player ) == '33' then 1 minute ago, PleaseHelp said: دي طريقة ثانية انا افضلها بس هو شكله يبغا حق DABL Link to comment
PleaseHelp Posted April 13, 2018 Share Posted April 13, 2018 7 hours ago, i,xAhmed said: بس ابي اكثر من شخص يحط سريال مو بس انا تفضل اخوي عدلت على كود DABL function canPlayerAccessStaffManager(player) if ( getPlayerSerial ( player ) == '82729109' or '6655556' or '755627' ) then return true end end Just now, -Le[3]bA. said: م راح تفرق يسويها كذا عادي الي يريحه * if getPlayerSerial ( player ) == '8272910229' or getPlayerSerial ( player ) == '33' then انا ساعدته بتصحيح كود DABL شوف الكود Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 Just now, PleaseHelp said: تفضل اخوي عدلت على كود DABL function canPlayerAccessStaffManager(player) if ( getPlayerSerial ( player ) == '82729109' or '6655556' or '755627' ) then return true end end غلط, شوف الكود حقي فوق 1 minute ago, -Le[3]bA. said: م راح تفرق يسويها كذا عادي الي يريحه * if getPlayerSerial ( player ) == '8272910229' or getPlayerSerial ( player ) == '33' then Link to comment
PleaseHelp Posted April 13, 2018 Share Posted April 13, 2018 Just now, -Le[3]bA. said: غلط, شوف الكود حقي فوق انا مسوى خاصية ومسويها بطريقتي طلعت صح Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 if ( getPlayerSerial ( player ) == '82729109' or '6655556' or '755627' ) then اعتقد انها غلط على حسب خبرتي في البرمحه لانك لازم تسوي التحقق كذا if getPlayerSerial ( player ) == '8272910229' or getPlayerSerial ( player ) == '33' or getPlayerSerial ( player ) == '22' then Link to comment
PleaseHelp Posted April 13, 2018 Share Posted April 13, 2018 4 minutes ago, -Le[3]bA. said: if ( getPlayerSerial ( player ) == '82729109' or '6655556' or '755627' ) then اعتقد انها غلط على حسب خبرتي في البرمحه لانك لازم تسوي التحقق كذا if getPlayerSerial ( player ) == '8272910229' or getPlayerSerial ( player ) == '33' or getPlayerSerial ( player ) == '22' then يب يب معلش لخبطت شوى انا صح كلامك نسيت اضيف الضايفه انت Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 Just now, PleaseHelp said: يب يب معلش لخبطت شوى انا صح كلامك نسيت اضيف الضايفه انت عادي ولا يهمك كلنا نغلط. Link to comment
PleaseHelp Posted April 13, 2018 Share Posted April 13, 2018 3 minutes ago, -Le[3]bA. said: عادي ولا يهمك كلنا نغلط. صدقت والله عندك سكايب ؟ Link to comment
Adham Posted April 13, 2018 Share Posted April 13, 2018 2 minutes ago, PleaseHelp said: صدقت والله عندك سكايب ؟ live:fd8177eecc9b38f1 Link to comment
i,xAhmed Posted April 14, 2018 Author Share Posted April 14, 2018 شكرا لكم كلكم , من آول شخص لاخر شخص سآعدني Link to comment
PleaseHelp Posted April 14, 2018 Share Posted April 14, 2018 1 hour ago, i,xAhmed said: شكرا لكم كلكم , من آول شخص لاخر شخص سآعدني ِ Any Time . . ! Link to comment
SycroX Posted April 14, 2018 Share Posted April 14, 2018 3 hours ago, i,xAhmed said: شكرا لكم كلكم , من آول شخص لاخر شخص سآعدني ذي طريقه اسهل اذا تحب local serials = {"serial", "serial2", "serial3"} function canPlayerAccessStaffManager(player) local serial = getPlayerSerial(player) for _,s in ipairs(serials) do if s == serial then return true end end return false end 1 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