0


i have problem with this script... it makes every1 that saysth say with blue text, i just want 1 person or all ct's have blue txt

my code(i know sth is wron ;) ):

adminList = {myUSGN}
function isAdmin(id)
       for _, usgn in ipairs(adminList) do
                if player(id,'usgn') == usgn then
                        return true
               end
        end
        return false
end
addhook([[team]],[[blutxt]])
function blutxt(id,team)
    if team == 2 and rp_ct==true then
        return(true)
    else
        return(false)
    end
end
addhook([[say]],[[admintxt]])
function admintxt(id,txt)
    if isAdmin then
        if not blutxt==false then
            msg("©000050255"..player(id,"name")..": "..txt)
            return 1
        else
            return 0
        end
        else
            return 0
        end
    end
end
flag offensive
asked 2010-09-25 12:06:06.278737
1
add comment
1 Answers:
0


ok did it... just added a joinscript with the array blutxt and just for the team 2 and then said blutxt[id]==true :D and now i can write in blue when im admin...

permanent link | flag offensive
answered 2010-09-25 16:18:24.636248
1
add comment
Your answer:
You are now not logged in but you can answer first and then login
toggle preview



Tags:

× 1

Asked: 1 year, 7 months ago

Seen: 860 times

Last updated: 1 year, 7 months ago

Related questions


Made with Django.