English Warning of the Bomb Tried to Be Planted Outside icon

7 comments
23.07.18 02:02:36 am
like 1 likes it!
507 b, 13 Downloads
Taskin
User
Offline Off
Hello, this is my very first script.

> Description
This script provides; a little warning when a bomb planter tries to plant outside the field(s).

If there is a problem you're getting, please tell me.

Special thanks to user Masea.
edited 1×, last 23.07.18 09:53:36 am
This file is unreviewed!
It may contain dangerous, inappropriate or poor contents. Use at your own risk.

Comments

7 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
25.07.18 01:24:48 am
like I like it!
Up
BcY
User
Offline Off
Take a cookie.
23.07.18 01:02:56 pm
Up
Cure Pikachu
User
Offline Off
user Taskin has written:
About your third paragraph, I actually do not see the point, what do you want me to do?

At first I wanted to say "Raise the timer from 1000 to 5000", but after a little rest, what if you switch to cs2d cmd hudtxt2? That way you kill the fadeout effect and you can have the warning message up for as long as you want, free from client settings. That makes it uh... "idiot-proof"?
23.07.18 10:34:54 am
Up
Masea
Super User
Offline Off
@user Gaios: Well, there is currently not.
23.07.18 10:15:33 am
Up
Gaios
Security Supporter
Offline Off
But
there's default notification
by a client
23.07.18 09:58:06 am
Up
Taskin
User
Offline Off
@user Rainoth: It was supposed to be
msg2
anyway. I just forget it, sorry about that.

@user Cure Pikachu: About your first paragraph, I had no idea as well however I'll think about it in the future. About your second paragraph, it seems more sensible, I fixed it as that. About your third paragraph, I actually do not see the point, what do you want me to do?

Please check the code now, thank you guys.
23.07.18 02:35:39 am
Up
Cure Pikachu
User
Offline Off
• Attempting to plant the bomb is done using the attack button, which your script assumes it's LMB (majority will use this anyway), but it will cause problems for anybody using another button, like RMB (left-handers anyone?) for example. But, since there's no other alternative... (Attempting to plant the bomb does not trigger the cs2d lua hook attack hook, I tried)
•
msg("You can't plant the bomb because you are not in the field.")
should be
msg2(id,"You can't plant the bomb because you are not in the field.@C")
. It should only notify the bomber and not everyone else, not to mention it's also more "in your face" like in actual CS cause the message is in the center.
• The cooldown of 1 second that you implemented does not really mitigate the potential spam considering that hud_saytext_time and hud_centertext_time defaults to 10s and 5s respectively.
edited 1×, last 23.07.18 05:43:42 am
23.07.18 02:30:56 am
Up
Rainoth
Moderator
Offline Off
Start using msg2 instead of msg, otherwise a player can spam that message in the server.
To the start Previous 1 Next To the start