AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Chat Message Evry 30 sec (https://forums.alliedmods.net/showthread.php?t=127750)

DIREKTOR 05-24-2010 12:34

Chat Message Evry 30 sec
 
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

Exolent[jNr] 05-24-2010 12:57

Re: Chat Message Evry 30 sec
 
Use set_task().

lucas_7_94 05-24-2010 13:14

Re: Chat Message Evry 30 sec
 
Quote:

Originally Posted by Exolent[jNr] (Post 1189870)
Use set_task().

or GHW messages.

Amonel 05-24-2010 13:30

Re: Chat Message Evry 30 sec
 
welcome info :/

Brreaker 05-24-2010 13:45

Re: Chat Message Evry 30 sec
 
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");



#8 SickneSS 05-24-2010 14:17

Re: Chat Message Evry 30 sec
 
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); 


drekes 05-24-2010 14:18

Re: Chat Message Evry 30 sec
 
PHP Code:

public plugin_init()
    
set_task(30.0"ChatMessage"0__"b")

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


Exolent[jNr] 05-24-2010 14:22

Re: Chat Message Evry 30 sec
 
... 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.

#8 SickneSS 05-24-2010 14:22

Re: Chat Message Evry 30 sec
 
Quote:

Originally Posted by #8 SickneSS (Post 1189936)
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 (Post 1189938)
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] (Post 1189942)
... 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.

hleV 05-24-2010 14:27

Re: Chat Message Evry 30 sec
 
Quote:

Originally Posted by #8 SickneSS (Post 1189943)
This will be show every 30 seconds after the player join to server.

32 players - 32 tasks. Useless.
Quote:

Originally Posted by #8 SickneSS (Post 1189943)
This will be show every 30 seconds to all players.

32 players - 1 task. Better.


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

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