Raised This Month: $ Target: $400
 0% 

Remind everyone when (X) seconds passed.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-20-2013 , 04:40   Re: Remind everyone when (X) seconds passed.
Reply With Quote #1

Quote:
Originally Posted by yokomo View Post
A simple code:
PHP Code:
#include <amxmodx>

#define Seconds 600.0

public plugin_init()
{
    
register_plugin("Reminder All""0.0.1""wbyokomo")
    
    
remove_task(6132)
    
set_task(Seconds"TaskRemindAll"6132)
}

public 
TaskRemindAll()
{
    
client_print(0print_chat"10 minutes have passed, now Admins can Vote For Mod.")

Thanks this one is working.
But thanks to everyone for your helps
Edit: Why remove_task(6132)? What 6132 defines? Latest HLDS ?? LOL
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins

Last edited by HalfLife; 08-20-2013 at 04:40.
HalfLife is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 08-20-2013 , 04:47   Re: Remind everyone when (X) seconds passed.
Reply With Quote #2

Quote:
Originally Posted by HalfLife View Post
Thanks this one is working.
But thanks to everyone for your helps
Edit: Why remove_task(6132)? What 6132 defines? Latest HLDS ?? LOL
It just a task index. You can use any value you want but make sure it on integer. Use > 32 is better. Because 1~32 is for player.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-20-2013 , 05:04   Re: Remind everyone when (X) seconds passed.
Reply With Quote #3

Quote:
Originally Posted by yokomo View Post
It just a task index. You can use any value you want but make sure it on integer. Use > 32 is better. Because 1~32 is for player.
Thanks!
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife 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 15:51.


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