Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function table.contains(table,element)
- for key,value in pairs(table) do
- if value==element then
- return true
- end
- end
- return false
- end
- system.disableChatCommandDisplay("t")
- function eventChatCommand(name,command)
- local split=string.find(message," ") or #message+1
- local cmd=string.sub(message,1,split-1)
- local args=string.sub(message,split+1)
- if cmd=="t" then
- if table.contains(teamRed,name) then
- for redName=1,#teamRed do
- tfm.exec.chatMessage('<V>['..name..']<font color="#c08181"> '..args..'</font>',teamRed[redName])
- end
- elseif table.contains(teamBlue,name) then
- for blueName=1,#teamBlue do
- tfm.exec.chatMessage('<V>['..name..']<font color="#7f8abd"> '..args..'</font>',teamBlue[blueName])
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment