Raised This Month: $ Target: $400
 0% 

Timer ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DaniDin
Member
Join Date: Oct 2008
Old 12-25-2008 , 18:14   Timer ?
Reply With Quote #1

Hi
i want to do every 10 sec print all client "Server by me"
DaniDin is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-25-2008 , 18:30   Re: Timer ?
Reply With Quote #2

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")
    

Attached Files
File Type: sma Get Plugin or Get Source (printinfo.sma - 586 views - 307 Bytes)
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
DaniDin
Member
Join Date: Oct 2008
Old 12-25-2008 , 19:32   Re: Timer ?
Reply With Quote #3

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 ?
DaniDin is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-25-2008 , 21:29   Re: Timer ?
Reply With Quote #4

Can we set the time?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-25-2008 , 21:31   Re: Timer ?
Reply With Quote #5

Quote:
Originally Posted by ianglowz View Post
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. 
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-25-2008 , 21:40   Re: Timer ?
Reply With Quote #6

Thx to you.I also think must change that.But I think let Expert do it.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz 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 09:09.


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