#include <amxmodx>
#include <fun>
#include <colorchat>
#include <fakemeta>
public plugin_init() {
register_plugin("[JB] Podziel wiezniow", "1.0", "AztekHQS");
register_clcmd("say /podziel", "Podziel");
register_clcmd("say /niedziel", "NiePodziel");
}
public NiePodziel(id) {
if(!is_user_alive(id) || get_user_team(id) != 2 || jail_get_prowadzacy() != id) return 1;
for(new i = 1; i <= 32; i++) {
if(!is_user_alive(i) || get_user_team(i) != 1 || jail_get_prisoner_free(i) || jail_get_prisoner_ghost(i)) continue;
set_user_rendering(i);
}
return 1;
}
public Podziel(id) {
if(!is_user_alive(id) || get_user_team(id) != 2 || jail_get_prowadzacy() != id) return 1;
new bool:team;
for(new i = 1; i <= 32; i++) {
if(!is_user_alive(i) || get_user_team(i) != 1 || jail_get_prisoner_free(i) || jail_get_prisoner_ghost(i)) continue;
if(team) {
set_pev(i, pev_body, 1);
client_cmd(i, "spk vox/yellow");
set_user_rendering(i, kRenderFxGlowShell, 255, 255, 0, kRenderNormal, 5)
client_print(i, print_center, "Masz kolor: Zolty")
}
else {
set_pev(i, pev_body, 2);
client_cmd(i, "spk vox/white");
set_user_rendering(i, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 5)
client_print(i, print_center, "Masz kolor: Bialy")
}
ColorChat(i, GREEN, "[PIEKIELNE WIEZIENIE]^x01 Masz kolor: %s", team ? "Zolty" : "Bialy");
team = !team;
}
return 1;
}
dodalam przyokacji aby tylko prowadzacy mogl uzywac komendy /podziel i /niedziel
jesli nie chesz tego to usun 2x || jail_get_prowadzacy() != id
Użytkownik Asiap edytował ten post 06.05.2015 01:54