Descărcare: Sursa
#include <amxmodx>
#include <colorchat>
new pcvar_info
new const zemlje[][] =
{
"\ySerbia", "\yCroatia", "\yBosnia and Herzegovina", "\yMontenegro", "\yMacedonia", "\yBulgaria",
"\rRomania", "\yKosovo", "\yAlbania", "\yBrazil", "\yPakistan", "\yPoland", "\ySlovenia", "\yItaly"
}
public plugin_init()
{
register_plugin("How to boost server", "3.0", "Ikac")
register_clcmd("say /boost", "Boost")
register_clcmd("say_team /boost", "Boost")
pcvar_info=register_cvar("htbs_info", "600")
set_task(get_pcvar_float(pcvar_info), "Info" , _ , _ , _ , "b")
}
public Boost(id)
{
client_print(id, print_center, "More info in chat!")
ColorChat(id, GREEN, "[BOOST]^1 You can boost if you're from one of these countries!")
set_task(3.0, "Menu", id)
return PLUGIN_CONTINUE
}
public Menu(id)
{
new naslov[60]
new menuitem[65]
format(naslov, 59, "\rHow to boost?:");
new menu = menu_create(naslov, "menu_handler");
for(new i=0;i<sizeof zemlje;i++)
{
formatex(menuitem, charsmax(menuitem), "%s", zemlje);
menu_additem(menu, menuitem);
}
menu_display(id, menu);
}
public menu_handler(id, menu, item)
{
if(item==MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
new ip[32], ime[32]
get_user_ip(0, ip, charsmax(ip))
get_user_name(id, ime, 31)
switch(item)
{
case 0: ColorChat(id, TEAM_COLOR, "^1[Poruka Srbija]:^4 100 GTRS %s %s^1 Poslati na broj:^3 1310", ip, ime)
case 1: ColorChat(id, TEAM_COLOR, "^1[Poruka Croatia]:^4 TXT GTRS %s %s^1 Poslati na broj:^3 866866", ip, ime)
case 2: ColorChat(id, TEAM_COLOR, "^1[Poruka BIH]:^4 TXT GTRS %s %s^1 Poslati na broj:^3 091810700", ip, ime)
case 3: ColorChat(id, TEAM_COLOR, "^1[Poruka Crna Gora]:^4 FOR GTRS %s %s^1 Poslati na broj:^3 14741", ip, ime)
case 4: ColorChat(id, TEAM_COLOR, "^1[Poruka Macedonia]:^4 TAP GTRS %s %s^1 Ispratete na broj:^3 141551", ip, ime)
case 5: ColorChat(id, TEAM_COLOR, "^1[Suobshtenie Bulgaria]:^4 TXT GTRS %s %s^1 Izprashtam do:^3 1916", ip, ime)
case 6: ColorChat(id, TEAM_COLOR, "^1[Mesaj Romania]:^4 TXT GTRS %s %s^1 Trimite la numarul:^3 1235", ip, ime)
case 7: ColorChat(id, TEAM_COLOR, "^1[Mesazh Kosovo]:^4 TXT GTRS %s %s^1 Dergoj ne numer:^3 55050", ip, ime)
case 8: ColorChat(id, TEAM_COLOR, "^1[Mesazh Albania]:^4 TXT GTRS %s %s^1 Dergoj ne numer:^3 54345", ip, ime)
case 9: ColorChat(id, TEAM_COLOR, "^1[Mensagem Brazil]:^4 FOR GTRS %s %s^1 Enviar o numero:^3 49602", ip, ime)
case 10: ColorChat(id, TEAM_COLOR, "^1[Message Pakistan]:^4 FOR GTRS %s %s^1 Send to the number:^3 5716", ip, ime)
case 11: ColorChat(id, TEAM_COLOR, "^1[Wiadomosc Poland]:^4 TXT GTRS %s %s^1 Wyslij na numer:^3 7668", ip, ime)
case 12: ColorChat(id, TEAM_COLOR, "^1[Sporocilo Slovenia]:^4 TXT GTRS %s %s^1 Poslji za stevilka:^3 3838", ip, ime)
case 13: ColorChat(id, TEAM_COLOR, "^1[Messaggio Italy]:^4 TXT1 GTRS %s %s^1 Inviare al numero:^3 4885886", ip, ime)
}
return PLUGIN_CONTINUE
}
public Info() ColorChat(0, GREEN, "[BOOST]^1 To boost our server type in chat^3 /boost")
#include <colorchat>
new pcvar_info
new const zemlje[][] =
{
"\ySerbia", "\yCroatia", "\yBosnia and Herzegovina", "\yMontenegro", "\yMacedonia", "\yBulgaria",
"\rRomania", "\yKosovo", "\yAlbania", "\yBrazil", "\yPakistan", "\yPoland", "\ySlovenia", "\yItaly"
}
public plugin_init()
{
register_plugin("How to boost server", "3.0", "Ikac")
register_clcmd("say /boost", "Boost")
register_clcmd("say_team /boost", "Boost")
pcvar_info=register_cvar("htbs_info", "600")
set_task(get_pcvar_float(pcvar_info), "Info" , _ , _ , _ , "b")
}
public Boost(id)
{
client_print(id, print_center, "More info in chat!")
ColorChat(id, GREEN, "[BOOST]^1 You can boost if you're from one of these countries!")
set_task(3.0, "Menu", id)
return PLUGIN_CONTINUE
}
public Menu(id)
{
new naslov[60]
new menuitem[65]
format(naslov, 59, "\rHow to boost?:");
new menu = menu_create(naslov, "menu_handler");
for(new i=0;i<sizeof zemlje;i++)
{
formatex(menuitem, charsmax(menuitem), "%s", zemlje);
menu_additem(menu, menuitem);
}
menu_display(id, menu);
}
public menu_handler(id, menu, item)
{
if(item==MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_CONTINUE
}
new ip[32], ime[32]
get_user_ip(0, ip, charsmax(ip))
get_user_name(id, ime, 31)
switch(item)
{
case 0: ColorChat(id, TEAM_COLOR, "^1[Poruka Srbija]:^4 100 GTRS %s %s^1 Poslati na broj:^3 1310", ip, ime)
case 1: ColorChat(id, TEAM_COLOR, "^1[Poruka Croatia]:^4 TXT GTRS %s %s^1 Poslati na broj:^3 866866", ip, ime)
case 2: ColorChat(id, TEAM_COLOR, "^1[Poruka BIH]:^4 TXT GTRS %s %s^1 Poslati na broj:^3 091810700", ip, ime)
case 3: ColorChat(id, TEAM_COLOR, "^1[Poruka Crna Gora]:^4 FOR GTRS %s %s^1 Poslati na broj:^3 14741", ip, ime)
case 4: ColorChat(id, TEAM_COLOR, "^1[Poruka Macedonia]:^4 TAP GTRS %s %s^1 Ispratete na broj:^3 141551", ip, ime)
case 5: ColorChat(id, TEAM_COLOR, "^1[Suobshtenie Bulgaria]:^4 TXT GTRS %s %s^1 Izprashtam do:^3 1916", ip, ime)
case 6: ColorChat(id, TEAM_COLOR, "^1[Mesaj Romania]:^4 TXT GTRS %s %s^1 Trimite la numarul:^3 1235", ip, ime)
case 7: ColorChat(id, TEAM_COLOR, "^1[Mesazh Kosovo]:^4 TXT GTRS %s %s^1 Dergoj ne numer:^3 55050", ip, ime)
case 8: ColorChat(id, TEAM_COLOR, "^1[Mesazh Albania]:^4 TXT GTRS %s %s^1 Dergoj ne numer:^3 54345", ip, ime)
case 9: ColorChat(id, TEAM_COLOR, "^1[Mensagem Brazil]:^4 FOR GTRS %s %s^1 Enviar o numero:^3 49602", ip, ime)
case 10: ColorChat(id, TEAM_COLOR, "^1[Message Pakistan]:^4 FOR GTRS %s %s^1 Send to the number:^3 5716", ip, ime)
case 11: ColorChat(id, TEAM_COLOR, "^1[Wiadomosc Poland]:^4 TXT GTRS %s %s^1 Wyslij na numer:^3 7668", ip, ime)
case 12: ColorChat(id, TEAM_COLOR, "^1[Sporocilo Slovenia]:^4 TXT GTRS %s %s^1 Poslji za stevilka:^3 3838", ip, ime)
case 13: ColorChat(id, TEAM_COLOR, "^1[Messaggio Italy]:^4 TXT1 GTRS %s %s^1 Inviare al numero:^3 4885886", ip, ime)
}
return PLUGIN_CONTINUE
}
public Info() ColorChat(0, GREEN, "[BOOST]^1 To boost our server type in chat^3 /boost")
Nume plugin: Info Boost
Versiune: 3.0
Instalare:
1. Compilati HowToBoostV1.sma [Please login or register to view this link] si urcati HowToBoostV1.amxx in addons/amxmodx/plugins
2. Intrati in addons/amxmodx/configs/plugins.ini si adaugati:
Code: Select all
HowToBoostV1.amxx
Comenzi (daca necesita): -
Module necesare (pentru rularea si activarea pluginului corect): -