Raised This Month: $ Target: $400
 0% 

who can tell me ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-24-2009 , 05:01   who can tell me ?
Reply With Quote #1

for example
PHP Code:
public plugin_init()
{
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
register_logevent("NewRound"2"0=World triggered""1=Round_Start")
}
public 
NewRound()
{
new 
players[32], pnum
get_players
(playerspnum)
for (new 
0pnumi++)
{
new 
id players[i]
client_print(idprint_chat"This is a example")
}

Is this code will send chat message to everyone who put in server when round start ?
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-24-2009 , 05:20   Re: who can tell me ?
Reply With Quote #2

Yes, but you could pass id=0 so it prints to all players :

PHP Code:
public plugin_init()
{
     
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
     
register_logevent("NewRound"2"0=World triggered""1=Round_Start")
}

public 
NewRound()
{
     
client_print(0print_chat"This is a example")

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 07-24-2009 , 07:06   Re: who can tell me ?
Reply With Quote #3

thx..I will remember it!
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Reply


Thread Tools
Display Modes

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 18:23.


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