[REQ] Add .ini file

Sup, could you exchange "new const messages" with .ini file? :




PHP Code:







#include <amxmodx> 

new g_MsgSayTextMsg

new const messages[][] =
{
        
/*MESSAGE*/
}

public 
plugin_init()
{
        
set_task60.0"Show_ColorMessage"___"b" )
    
        
g_MsgSayText get_user_msgid"SayText" )
}

public 
Show_ColorMessage()
{
        if( !
get_playersnum() ) return

        
ColorMessage0messagesMsg ] )
     
        if( ++
Msg == sizeof messages Msg 0
}

ColorMessage( const iReceiver, const iSender 1, const fmt[], any:Click post title for more details

        new 
szMessage192 
        
vformatszMessagecharsmaxszMessage ), fmt

        
message_beginiReceiver MSG_ONE_UNRELIABLE MSG_BROADCASTg_MsgSayText_iReceiver 
      &nbs p; 
write_byteiSender 
        
write_stringszMessage 
        
message_end() 












Orignal From: [REQ] Add .ini file

No comments

Not a single link is allowed to submit in comment :o