Raised This Month: $ Target: $400
 0% 

Chat Message Evry 30 sec


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-24-2010 , 14:22   Re: Chat Message Evry 30 sec
Reply With Quote #1

Quote:
Originally Posted by #8 SickneSS View Post
PHP Code:
#include <amxmodx>

public plugin_init()
         
register_plugin"W""T""F");

public 
client_connect(id)
         
set_task(30.0"Message"id__"b");
    
public 
Message(id)
        
client_printidprint_chat"HI");

public 
client_disconnect(id)
        
remove_task(id); 
This will be show every 30 seconds after the player join to server.

Quote:
Originally Posted by drekes View Post
PHP Code:
public plugin_init()
    
set_task(30.0"ChatMessage"0__"b")

public 
ChatMessage()
    
client_print(0print_chat"Welcome to our server!"
This will be show every 30 seconds to all players.
Quote:
Originally Posted by Exolent[jNr] View Post
... Why is everyone posting an example of something so simple?
I already told him to use set_task(), and you can find out how to use it properly by going to the funcwiki.
Because some ppl don't understand all functions or don't know how to made it.

Last edited by #8 SickneSS; 05-24-2010 at 14:28.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-24-2010 , 14:27   Re: Chat Message Evry 30 sec
Reply With Quote #2

Quote:
Originally Posted by #8 SickneSS View Post
This will be show every 30 seconds after the player join to server.
32 players - 32 tasks. Useless.
Quote:
Originally Posted by #8 SickneSS View Post
This will be show every 30 seconds to all players.
32 players - 1 task. Better.
__________________
hleV 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 05:22.


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