AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Timer ? (https://forums.alliedmods.net/showthread.php?t=82562)

DaniDin 12-25-2008 18:14

Timer ?
 
Hi
i want to do every 10 sec print all client "Server by me"

Starsailor 12-25-2008 18:30

Re: Timer ?
 
1 Attachment(s)
PHP Code:


#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Task"
#define VERSION "1.0"
#define AUTHOR "Starsailor"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(10.0,"Printinfo",0,_,_,"b")
}

public 
Printinfo() {
    
client_print(0,print_chat,"Server by Me")
    



DaniDin 12-25-2008 19:32

Re: Timer ?
 
10x dud
do you kbow how i do connect to sql in localhost and chaked in user table in userid if the id = 1 so the user will get kick ?

ianglowz 12-25-2008 21:29

Re: Timer ?
 
Can we set the time?

One 12-25-2008 21:31

Re: Timer ?
 
Quote:

Originally Posted by ianglowz (Post 733212)
Can we set the time?

lol? what do u mean?

PHP Code:

    set_task(10.0,"Printinfo",0,_,_,"b"

i think u wanna have this on longer time?

exam for 1 min.

PHP Code:

    set_task(60.0,"Printinfo",0,_,_,"b")
//just edit 60.0 << this is the time in sec. 


ianglowz 12-25-2008 21:40

Re: Timer ?
 
Thx to you.I also think must change that.But I think let Expert do it.:)


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

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