Raised This Month: $ Target: $400
 0% 

Chat Message Evry 30 sec


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DIREKTOR
Senior Member
Join Date: Jan 2010
Location: On server
Old 05-24-2010 , 12:34   Chat Message Evry 30 sec
Reply With Quote #1

well i need code to will i add to my plugin(i dont wanna new plugin) that will show Chat message evry 30 sec "Welcome to Our srw blabalbal"

i just wanna add that line to my plugin
__________________
Quote:
Originally Posted by KadiR View Post
Learn the fucking server rules you idiot.
DIREKTOR is offline
Send a message via MSN to DIREKTOR
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-24-2010 , 12:57   Re: Chat Message Evry 30 sec
Reply With Quote #2

Use set_task().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 05-24-2010 , 13:14   Re: Chat Message Evry 30 sec
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Use set_task().
or GHW messages.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Amonel
Senior Member
Join Date: May 2009
Old 05-24-2010 , 13:30   Re: Chat Message Evry 30 sec
Reply With Quote #4

welcome info :/
Amonel is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-24-2010 , 13:45   Re: Chat Message Evry 30 sec
Reply With Quote #5

PHP Code:
public plugin_init() {
    
register_event("HLTV""eNewRound""a""1=0""2=0");
}
public 
eNewRound() {
    
set_task(30.0"ChatMessage");
    return 
PLUGIN_CONTINUE;
}
public 
ChatMessage() {
    
client_print(0print_chat"Welcome to our server!");
    
set_task(30.0"ChatMessage");

__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-24-2010 , 14:17   Re: Chat Message Evry 30 sec
Reply With Quote #6

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

Last edited by #8 SickneSS; 05-24-2010 at 14:23.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-24-2010 , 14:18   Re: Chat Message Evry 30 sec
Reply With Quote #7

PHP Code:
public plugin_init()
    
set_task(30.0"ChatMessage"0__"b")

public 
ChatMessage()
    
client_print(0print_chat"Welcome to our server!"
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-24-2010 , 14:22   Re: Chat Message Evry 30 sec
Reply With Quote #8

... 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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-24-2010 , 14:22   Re: Chat Message Evry 30 sec
Reply With Quote #9

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 #10

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