Spoiler
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <fun>
#define PLUGIN "VIP_Cash"
#define VERSION "2.1"
#define AUTHOR "xxxxx"
#define hostName "[VIP]" //nazwa serwera
#define printComand 1 // jesli 1 to w nowuej rundzie pokazuje sie w chacie napis ze mozna uzyc komendy /vipy
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("moneyCount","1000");
register_logevent("newRound",2,"1=Round_Start");
register_clcmd("say /vipy", "printVip");
register_clcmd("say /vips", "printVip");
register_clcmd("say /kosztvip","koszt");
register_clcmd("say /przywileje","prz");
set_task(20.0,"spam",_,_,_,"b");
register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")
return PLUGIN_CONTINUE;
}
public prz(id)
{
ColorChat(id,GREEN,"Jako VIP Na Naszej Stronie Otrzymasz: Unikalna range na forum + 200 hp na start")
}
public koszt(id)
{
ColorChat(id,GREEN,"VIP Na Naszej sieci kosztuje jedyne 3,66 SMS Lub 5 zł Przelew")
}
public Nowa_Runda(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
set_user_health(id,200)
ColorChat(id,GREEN,"[xxx.pl]"Jako VIP na Naszym Serwerze Otrzymujesz 200hp na start:)")
}
public newRound()
{
new players[32];
new playersNum;
new player;
get_players(players, playersNum,"a");
for(new i=0;i<playersNum;i++)
{
player=players[i];
if(printComand==1)
{
ColorChat(player,BLUE,"%s^x01 Aby dostac informacje o ^x04Vipach^x01 wpisz ^x03/vipy", hostName);
}
return PLUGIN_CONTINUE;
}
}
public printVip(id)
{
new players[32];
new playersNum;
new player;
new vipNum=0;
ColorChat(id,BLUE,"%s^x04 Vipy^x01 online",hostName);
get_players(players, playersNum,"a");
{
vipNum++;
for(new i=0;i<playersNum;i++)
{
player=players[i];
new playerName[32];
get_user_name(player,playerName,31);
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
ColorChat(id,RED,"%s",playerName);
}
}
}
if(vipNum==0)
{
ColorChat(id,BLUE,"%s^x01 Brak ^x04Vipow^x01 na Serwerze", hostName);
}
return PLUGIN_HANDLED;
}
public spam()
{
ColorChat(0,RED,"Zapraszamy do Rejestracji na xxxx.pl")
}
public client_putinserver(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(0, "Przychodzi Vip!^n %s",name)
client_cmd(0,"spk misc/vip")
}
}
public plugin_precache()
{
precache_sound("misc/vip.wav")
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <fun>
#define PLUGIN "VIP_Cash"
#define VERSION "2.1"
#define AUTHOR "xxxxx"
#define hostName "[VIP]" //nazwa serwera
#define printComand 1 // jesli 1 to w nowuej rundzie pokazuje sie w chacie napis ze mozna uzyc komendy /vipy
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("moneyCount","1000");
register_logevent("newRound",2,"1=Round_Start");
register_clcmd("say /vipy", "printVip");
register_clcmd("say /vips", "printVip");
register_clcmd("say /kosztvip","koszt");
register_clcmd("say /przywileje","prz");
set_task(20.0,"spam",_,_,_,"b");
register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")
return PLUGIN_CONTINUE;
}
public prz(id)
{
ColorChat(id,GREEN,"Jako VIP Na Naszej Stronie Otrzymasz: Unikalna range na forum + 200 hp na start")
}
public koszt(id)
{
ColorChat(id,GREEN,"VIP Na Naszej sieci kosztuje jedyne 3,66 SMS Lub 5 zł Przelew")
}
public Nowa_Runda(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
set_user_health(id,200)
ColorChat(id,GREEN,"[xxx.pl]"Jako VIP na Naszym Serwerze Otrzymujesz 200hp na start:)")
}
public newRound()
{
new players[32];
new playersNum;
new player;
get_players(players, playersNum,"a");
for(new i=0;i<playersNum;i++)
{
player=players[i];
if(printComand==1)
{
ColorChat(player,BLUE,"%s^x01 Aby dostac informacje o ^x04Vipach^x01 wpisz ^x03/vipy", hostName);
}
return PLUGIN_CONTINUE;
}
}
public printVip(id)
{
new players[32];
new playersNum;
new player;
new vipNum=0;
ColorChat(id,BLUE,"%s^x04 Vipy^x01 online",hostName);
get_players(players, playersNum,"a");
{
vipNum++;
for(new i=0;i<playersNum;i++)
{
player=players[i];
new playerName[32];
get_user_name(player,playerName,31);
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
ColorChat(id,RED,"%s",playerName);
}
}
}
if(vipNum==0)
{
ColorChat(id,BLUE,"%s^x01 Brak ^x04Vipow^x01 na Serwerze", hostName);
}
return PLUGIN_HANDLED;
}
public spam()
{
ColorChat(0,RED,"Zapraszamy do Rejestracji na xxxx.pl")
}
public client_putinserver(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(0, "Przychodzi Vip!^n %s",name)
client_cmd(0,"spk misc/vip")
}
}
public plugin_precache()
{
precache_sound("misc/vip.wav")
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/