 |
|
Veteran Member
Join Date: Oct 2004
Location: US
|

08-29-2008
, 19:18
Re: Where is the error
|
#4
|
Try this. I created a function for the SayText message.
PHP Code:
#include <amxmodx>
new maxplayers new gmsgSayText
public plugin_init() { register_plugin("Contacto", "1.00", "Moke") register_clcmd("say /admin", "contacto")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText") }
public contacto(id) { SayText(id, "^x04[hns] Abierta la inscripcion de nuevos adms : ^[email protected]")
return PLUGIN_CONTINUE }
SayText( id , message[] , any:... ) { if( id > ( maxplayers - 1 ) ) return 0
if( id > 0 && ( !is_user_alive( id ) || is_user_bot( id ) ) ) return 0
static msg[252] vformat( msg[1] , 251 , message , 3 );
if( !id ) { for( new i = 0; i < maxplayers; i++ ) { if( !is_user_connected( i ) || is_user_bot( i ) ) continue
message_begin( MSG_ONE , gmsgSayText , {0,0,0} , id ) write_byte( id ) write_string( message ) message_end() } } else { message_begin( MSG_ONE , gmsgSayText , {0,0,0} , id ) write_byte( id ) write_string( message ) message_end() }
return 1 }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116
I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
Last edited by v3x; 08-29-2008 at 19:26.
|
|
|
|