Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define DELAY 60.0
#if !defined charsmax
#define charsmax(%1) ( sizeof ( %1 ) - 1 )
#endif
new const ip[] = "84.38.95.197:27020"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ok", "connect")
set_task(DELAY,"ad",_,_,_,"b")
}
public connect(id)
{
client_cmd(id,"connect %s",ip)
}
public ad()
{
new ads[100]
formatex(ads,charsmax(ads),"^x04Wpisz /ok aby polaczyc sie z innym serwerem!")
new players[32],count
get_players(players,count)
for (new i = 1; i <= count ; i++)
print_message(players[i],ads)
}
public print_message(id,msg[])
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("gmsgSayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}