proszę zeby VIP mial ten model FPSBANANA > Skins > CS > L33t > Freddy Krueger flaga B . Oraz polaczyc z pluginem Zamknij_Oczy v 1.3 i zeby zamknac oczy tez mogl VIP czyli flaga B . + zrobic say /vips ktore pokazuje aktualnych vipow na serwerze. Najlepiej by bylo zeby wszystko bylo w jednym pluginie.
Zamknij oczy v 1.3
/* Zaminkj_Oczy v 1.3 by Makel*/
/************************************************#INCLUDES#****************************************/
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
#include <fakemeta>
/************************************************#DEFINES#*****************************************/
#define PLUGIN "Zamknij_Oczy"
#define VERSION "1.3"
#define AUTHOR "MaKeL"
new bool:oczy_a[33]
new g_msgScreenFade
new g_msgScreenFade_1
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ScreenFade", "eventFlash", "be", "4=255", "5=255", "6=255", "7>199")
register_event("BarTime", "bomb_defuse_cancelled", "b", "1=0")
register_forward(FM_PlayerPreThink,"oczy");
g_msgScreenFade = get_user_msgid("ScreenFade")
g_msgScreenFade_1 = get_user_msgid("ScreenFade")
register_logevent("KoniecRundy", 2, "1=Round_End")
}
public client_connect(id) {
oczy_a[id]=false
}
public client_disconnect(id) {
oczy_a[id]=false
}
public eventFlash(id)
{
new button = get_user_button(id)
if (!(button & IN_USE))
{
oczy_a[id] = true
new param[1]
param[0] = id
set_task(3.5,"flesh",123+id,param,1)
}
}
public flesh(param[])
{
new id = param[0]
oczy_a[id] = false
}
public oczy(id)
{
if (!oczy_a[id])
{
new button = get_user_button(id)
if (button & IN_USE)
{
message_begin(MSG_ONE,g_msgScreenFade,{0,0,0},id);
write_short( 1<<8 ) // fade lasts this long duration
write_short( 1<<8 ) // fade lasts this long hold time
write_short( 1<<1 ) // fade type (in / out)
write_byte(0) // red
write_byte(0) // green
write_byte(0) // blue
write_byte(255) // alpha
message_end()
message_begin(MSG_ONE, g_msgScreenFade_1, {0,0,0}, id)
write_short( 1<<1 ) // fade lasts this long duration
write_short( 1<<1 ) // fade lasts this long hold time
write_short(1<<1)
write_byte(0)
write_byte(0)
write_byte(0)
write_byte(255)
message_end()
}
}
}
public bomb_defusing (id)
{
oczy_a[id]=true
}
public bomb_defuse_cancelled(id)
{
oczy_a[id]=false
}
public KoniecRundy(id)
{
oczy_a[id]=false
}