Forum

> > CS2D > Scripts > Building Kill Messages
Forums overviewCS2D overview Scripts overviewLog in to reply

English Building Kill Messages

2 replies
To the start Previous 1 Next To the start

old Building Kill Messages

BcY
Reviewer Off Offline

Quote
I need this lua.Can someone make it for me please?

When a turret killed by Ts there should be a message.
and when a turret killed by CTs there should be a message too

old Re: Building Kill Messages

Deleted User

Quote
1
2
3
4
5
6
7
addhook('objectkill', 'objkill_')
function objkill_(obj, id)
     if object(obj, 'type') == 8 then
          local str = (player(id, 'team') == 1 and "TERRORIST MESSAGE" or "CT MESSAGE" )
          msg(str)
	 end
end
Didn't tested it tho.
Edit: Added different messages for CT/T
Edit2: Tested/Fixed, try now
edited 3×, last 18.01.13 09:38:12 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview