Raised This Month: $ Target: $400
 0% 

[TF2]How to do text in the chat


Post New Thread Reply   
 
Thread Tools Display Modes
onv
Senior Member
Join Date: Feb 2011
Old 04-18-2011 , 17:08   Re: [TF2]How to do text in the chat
Reply With Quote #11

Ok , so , it will be executed automaticly ?




Thanks for your help , i will re-go in this forum if i have another probleme ;D

EDIT:I tested , it's dont worked .

I waited 150 seconds (i puted this in the .smx) and nothing exept the message of the amplifier ;I installed it a few weeks ago.

So , i did something wrong ?

Thanks

Last edited by onv; 04-19-2011 at 08:18.
onv is offline
onv
Senior Member
Join Date: Feb 2011
Old 04-19-2011 , 08:17   Re: [TF2]How to do text in the chat
Reply With Quote #12

Also , can i copy the .smx , and change the extention to .sp and put it in sourcemod/scrpiting ?
onv is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-19-2011 , 08:28   Re: [TF2]How to do text in the chat
Reply With Quote #13

PHP Code:
public OnMapStart()
{
    
CreateTimer(10.0PrintMsg_TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE)
}

public 
Action:PrintMsg(Handle:timer
{
    static 
NumPrinted 0
    
if (NumPrinted++ >= 5)
    {
        
PrintToChatAll("\x03Warning! This is a message.")
        
NumPrinted 0
        
return Plugin_Stop
    
}

    
PrintToChatAll("\x05Message count = %d"NumPrinted);
    return 
Plugin_Continue

smx to sp no. you put it in your plugins folder? is it listed when you do "sm plugins list" on server console?
__________________
Silvers is offline
onv
Senior Member
Join Date: Feb 2011
Old 04-19-2011 , 08:49   Re: [TF2]How to do text in the chat
Reply With Quote #14

Ok , I just create a .sp file , puted the code , run the compiler.exe and now , i cant launch the source multiplayer dedicated server.

It's crash after "Preparing to lauch Source Mulitiplayer Dedicated Server"

Wtf ?
onv is offline
onv
Senior Member
Join Date: Feb 2011
Old 04-19-2011 , 08:49   Re: [TF2]How to do text in the chat
Reply With Quote #15

Quote:
Originally Posted by Silvers View Post
PHP Code:
public OnMapStart()
{
    
CreateTimer(10.0PrintMsg_TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE)
}

public 
Action:PrintMsg(Handle:timer
{
    static 
NumPrinted 0
    
if (NumPrinted++ >= 5)
    {
        
PrintToChatAll("\x03Warning! This is a message.")
        
NumPrinted 0
        
return Plugin_Stop
    
}

    
PrintToChatAll("\x05Message count = %d"NumPrinted);
    return 
Plugin_Continue

smx to sp no. you put it in your plugins folder? is it listed when you do "sm plugins list" on server console?
Yes.
onv is offline
onv
Senior Member
Join Date: Feb 2011
Old 04-20-2011 , 10:24   Re: [TF2]How to do text in the chat
Reply With Quote #16

"is it listed when you do "sm plugins list" on server console?"

It is , when i do sm plugins 22. (I called it Recall message")
onv is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-20-2011 , 10:49   Re: [TF2]How to do text in the chat
Reply With Quote #17

Well I dunno, it works for me.
__________________
Silvers is offline
Malak044
Member
Join Date: Feb 2011
Location: héhéhé
Old 04-20-2011 , 10:52   Re: [TF2]How to do text in the chat
Reply With Quote #18

dont wanna kill your dreams but anyway ... why doing something like that when DJ Tsunami have done this => http://forums.alliedmods.net/showthread.php?p=592536
__________________
Malak044 is offline
onv
Senior Member
Join Date: Feb 2011
Old 04-23-2011 , 03:07   Re: [TF2]How to do text in the chat
Reply With Quote #19

Quote:
Originally Posted by Malak044 View Post
dont wanna kill your dreams but anyway ... why doing something like that when DJ Tsunami have done this => http://forums.alliedmods.net/showthread.php?p=592536
Can i change the text of the adverts ?

If yes , how ?



thanks , i think i will donate.....hmm..NO.
onv 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 23:19.


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