Raised This Month: $ Target: $400
 0% 

Display Message to players based on connection time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 10-10-2012 , 03:12   Display Message to players based on connection time
Reply With Quote #1

I want a message to display to specific players whose connection time has reached 3 hours and every 3 hours thereafter (at 6 hours, at 9 hours, etc.). I was looking through the forum and wiki and i found GetClientTime in the reservedslot plugin but i dont know how to call it with the time restraints.

Does anyone know how?
PAL-18 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 10-10-2012 , 05:44   Re: Display Message to players based on connection time
Reply With Quote #2

You could hook an event like round_start and check all clients' times on there, or you could make a repeat timer with a 1 second interval and check there.
Then just check GetClientTime() and check against 3 hours, remember that GetClientTime() returns in seconds.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING

Last edited by minimoney1; 10-10-2012 at 05:45.
minimoney1 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 20:08.


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