Raised This Month: $ Target: $400
 0% 

[REQ] CSGO Spawn protection show time in sm_csay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 01-05-2019 , 11:55   [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #1

Hello can somebody edit this plugin https://forums.alliedmods.net/showthread.php?p=2324123 to show how long will u have spawn protection in sm_csay.

Something like this:

Last edited by Sajmooooon; 01-05-2019 at 12:06.
Sajmooooon is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-05-2019 , 17:52   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #2

Before i edit it just confirming you want it instead of chat text you want it to be in a hint message?
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 01-06-2019 , 04:26   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #3

Quote:
Originally Posted by Mr.Freeman View Post
Before i edit it just confirming you want it instead of chat text you want it to be in a hint message?
Yes in a hint instead of chat text.
Sajmooooon is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-06-2019 , 12:17   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #4

To edit the text display change the following then recompile:

PHP Code:
CPrintToChat(i"%s%t"PREFIX"Spawn Protection Start"RoundToNearest(sptime)); 
change to

PHP Code:
PrintHintText(i"Spawn Protection\n%t""Spawn Protection Start"RoundToNearest(sptime)); 
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 01-06-2019 , 13:49   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #5

Quote:
Originally Posted by Mr.Freeman View Post
To edit the text display change the following then recompile:

PHP Code:
CPrintToChat(i"%s%t"PREFIX"Spawn Protection Start"RoundToNearest(sptime)); 
change to

PHP Code:
PrintHintText(i"Spawn Protection\n%t""Spawn Protection Start"RoundToNearest(sptime)); 

Colors are broken and it's possible to do countdown?

Last edited by Sajmooooon; 01-06-2019 at 14:22.
Sajmooooon is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 01-06-2019 , 17:02   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #6

I can add a timer to display the countdown for the client if you'd like and you can edit the text in the translation folder, simply remove {lightgreen} and {default}

If you are having trouble ill recompile it for you without translation files
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 01-07-2019 , 16:49   Re: [REQ] CSGO Spawn protection show time in sm_csay
Reply With Quote #7

Quote:
Originally Posted by Mr.Freeman View Post
I can add a timer to display the countdown for the client if you'd like and you can edit the text in the translation folder, simply remove {lightgreen} and {default}

If you are having trouble ill recompile it for you without translation files
Yep i found it in translation, thanks . Is it hard to do countdown ?
Sajmooooon is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode