PDA

View Full Version : cerere Messages_show compiled



eL^Dinamic
29-10-2013, 11:17 PM
/*
^x01 -> culoare galbena.
^x03 -> culoare rosie
^x02 -> culori pentru. echipe rosu la Tero,Albastru la CT , gri la Spectator
*/

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Messages Shower"
#define VERSION "2.0"
#define AUTHOR "SuNLiNE"

#define ADVERTISING_TIME 30.0 // intervalul de secunde intre mesaje

stock const messages[][] = {

"[p4f] Nu injurati pe server (gag/llama/kick)!",
"[p4f] Nu faceti reclama la alte server ! (banip)",
"[p4f] Nu folositi coduri (ban/addban/banip) !",
"[p4f] Iti multumim ca ai ales ************** ! !",
"[p4f] Pentru a vedea admini online admin_who !",
"[InFo] Muzuic Live server /listen",
"[p4f] ADD TO FAVORITES **************| IP ************** (THANKS)",
"[p4f] Admini] Nu Schimbati harta FARA VOT!",
"[Info] Pentru orice greseala suporti consecintele!!!",
"[FUN] Respecte si vei fi respectat",
"[FUN] Jocul este FREE cu conditia TS BMB/CT DEFUSE riscati slap/slay/kick",
}


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

set_task(ADVERTISING_TIME, "show_messages", _, _, _,"b");
}

public show_messages()
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);

new players[32], num, id;
get_players(players, num);

for(new i = 0 ; i < num ; i++)
{
id = players[i]

message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
write_byte(id);
write_string(Buffer);
message_end();
}
}

public show_messages()
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);

new players[32], num, id;
get_players(players, num);

for(new i = 0 ; i < num ; i++)
{
id = players[i]

message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
write_byte(id);
write_string(Buffer);
message_end();
}
}

Tiger
29-10-2013, 11:31 PM
Te-as ruga sa nu mai faci reclama la alte comunitati/servere . Iti recomand sa folosesti Auto Message Displayer (<b>You have to register to ba able to see this link</b>), deoarece este usor de instalat, mesajele fiind usor de modificat (nu necesita recompilarea pluginului, ci doar editarea fisierului messages.ini) si de asemenea, ofera suport si pentru mesaje de tip HUD .

Power.
30-10-2013, 09:36 PM
Poftim, in caz ca nu te razgandesti sa folosesti pluginul dat de Tiger.


#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Messages Shower"
#define VERSION "2.0"
#define AUTHOR "SuNLiNE"

#define ADVERTISING_TIME 30.0 // intervalul de secunde intre mesaje

stock const messages[][] = {

"[p4f] Nu injurati pe server (gag/llama/kick)!",
"[p4f] Nu faceti reclama la alte server ! (banip)",
"[p4f] Nu folositi coduri (ban/addban/banip) !",
"[p4f] Iti multumim ca ai ales ************** ! !",
"[p4f] Pentru a vedea admini online admin_who !",
"[InFo] Muzuic Live server /listen",
"[p4f] ADD TO FAVORITES **************| IP ************** (THANKS)",
"[p4f] Admini] Nu Schimbati harta FARA VOT!",
"[Info] Pentru orice greseala suporti consecintele!!!",
"[FUN] Respecte si vei fi respectat",
"[FUN] Jocul este FREE cu conditia TS BMB/CT DEFUSE riscati slap/slay/kick"
}


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

set_task(ADVERTISING_TIME, "show_messages", _, _, _,"b");
}

public show_messages()
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);

new players[32], num, id;
get_players(players, num);

for(new i = 0 ; i < num ; i++)
{
id = players[i]

message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
write_byte(id);
write_string(Buffer);
message_end();
}
}