Raised This Month: $51 Target: $400
 12% 

How to make a timer which then Says to the client something


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marcin
New Member
Join Date: Jun 2008
Old 08-13-2008 , 02:29   How to make a timer which then Says to the client something
Reply With Quote #1

I Want it to alert the client , lets say I will give 30s to answer the menu and I will make timer at 20s Then it will warn him with a message

How do I do this because I keep on getting errors.
Marcin is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 08-14-2008 , 08:45   Re: How to make a timer which then Says to the client something
Reply With Quote #2

Code:
//Call this where you want to start the 20 second timer:
CreateTimer(20.0, WarnClient, Client);
Code:
//Insert this somewere in your function, obviously not within another:
public Action:WarnClient(Handle:Timer, any:Client)
{
 
 //Print:
 PrintToChat(Client, "[SM] <Insert Warning Message Here>");
}
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 08-14-2008 , 09:26   Re: How to make a timer which then Says to the client something
Reply With Quote #3

Code:
//Insert this somewere in your function, obviously not within another: public Action:WarnClient(Handle:Timer, any:Client) {     //Print:     if(IsClientConnected(Client)) // Safety Check just incase client leaves     {          PrintToChat(Client, "[SM] <Insert Warning Message Here>");     } }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
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 23:46.


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