w7sH Posted August 7, 2018 Share Posted August 7, 2018 اللسلام عليكم عندي هذا الكود ضايفه لمود التاقات حقي للاعب اللي يحمل بس المشكله اذا كان يحمل مايطلع كلام له فالشات بس يطلع كلمة الانتظار اذا كرر بس مايقدر يتكلم اللاعبب هذا الكود if isGuestAccount ( acc ) and getPlayerTeam(source) and getPlayerTeam(source) == getTeamFromName('Download') then if ( flood[source] ) and ( isTimer ( flood[source] ) ) then cancelEvent ( ) remaining, _, _ = getTimerDetails ( flood[source] ) outputChatBox ( "* Please wait " .. math.floor ( remaining / 7000 ) .. " sec", source, 255, 0, 0, true ) return end flood[source] = setTimer ( function ( ) end, 5000, 1 ) cancelEvent() outputChatBox('[ #0060c0Downloading #ffffff]#FF4400#FFFFFF '..getPlayerName(source)..': #FFffff'..text..'', 255, 255, 255, true) elseif isGuestAccount ( acc ) and getPlayerTeam(source) then if ( flood[source] ) and ( isTimer ( flood[source] ) ) then cancelEvent ( ) remaining, _, _ = getTimerDetails ( flood[source] ) outputChatBox ( "* Please wait " .. math.floor ( remaining / 1000 ) .. " sec", source, 255, 0, 0, true ) return end flood[source] = setTimer ( function ( ) end, 5000, 1 ) cancelEvent() outputChatBox('[ #0060c0-- #ffffff]#FF4400#FFFFFF '..getPlayerName(source)..' ..text..' ', 255, 255, 255, true) Link to comment
MrKAREEM Posted August 7, 2018 Share Posted August 7, 2018 وضح المشكلة + ليه تكرر اكواد ؟؟ زي الكود دا if isGuestAccount ( acc ) and getPlayerTeam(source) and getPlayerTeam(source) == getTeamFromName('Download') then تقدر تستخدم كدة if isGuestAccount ( acc ) and getPlayerTeam(source) == getTeamFromName('Download') then Link to comment
w7sH Posted August 7, 2018 Author Share Posted August 7, 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