Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

S1: s2VIP


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
5 odpowiedzi w tym temacie

#1 PakoCsJednosc

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:24
Offline

Napisano 29.09.2017 22:02

Wygenerowanej nowego vipa i teraz jak pisze coś na say'u to pisze s1 : s2
Moż ktoś wie jak to skonfigurować lub naprawić
  • +
  • -
  • 0

#2 heniu1111

    Ja zjadłem ciastko ^^

  • Power User

Reputacja: 149
Zaawansowany

  • Postów:568
  • GG:
  • Imię:heniu
  • Lokalizacja:zapomniałem
Offline

Napisano 29.09.2017 23:01

Podeślij sma


  • +
  • -
  • 0

Zawsze służę pomocą, pomogę na tyle ile jestem wstanie  :)

 

Poradnik do instalacji AmxBans: https://www.youtube....h?v=fYq5iKQhVIM

 

Link do lekkiej "modyfikacji" AmxBans: https://amxx.pl/topi...ndpost&p=733955

 


#3 PakoCsJednosc

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:24
Offline

Napisano 30.09.2017 08:30


 

/* VIP JAILBREAK BY dEAL /*

#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
 
#define IsPlayer(%1) (1<=%1<=maxPlayers)
 
forward amxbans_admin_connect(id);
 
new CsArmorType:armortype, bool:g_FreezeTime, bool:g_Vip[33], g_Hudmsg, ioid,
maxPlayers, skoki[33];
 
new const g_Prefix[] = "Vip Chat";
 
public plugin_init(){
register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
RegisterHam(get_player_resetmaxspeed_func(), "player", "fw_Player_ResetMaxSpeed", 1);
register_logevent("logevent_round_start", 2, "1=Round_Start");
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
register_forward(FM_CmdStart, "CmdStartPre");
RegisterHam(Ham_TakeDamage, "player", "takeDamage", 0);
register_event("DeathMsg", "DeathMsg", "a");
register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
register_clcmd("say_team", "VipChat");
register_message(get_user_msgid("SayText"),"handleSayText");
g_Hudmsg=CreateHudSyncObj();
}
public client_authorized(id){
if(get_user_flags(id) & 262144 == 262144){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
set_hudmessage(24, 190, 220, 0.25, 0.2, 0, 6.0, 6.0);
ShowSyncHudMsg(0, g_Hudmsg, "Vip %s wbija na serwer !",g_Name);
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
set_user_gravity(id, 755.0/800.0);
skoki[id]=1;
set_user_health(id, get_user_health(id)+60);
cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+100, 300), armortype);
cs_set_user_nvg(id);
}
Ham:get_player_resetmaxspeed_func(){
#if defined Ham_CS_Player_ResetMaxSpeed
return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
#else
return Ham_Item_PreFrame;
#endif
}
public fw_Player_ResetMaxSpeed(id){
if(g_Vip[id]){
if(is_user_alive(id)){
fw_Player_ResetMaxSpeedVip(id);
}
}
}
public logevent_round_start(){
g_FreezeTime=false;
}
public event_new_round(){
g_FreezeTime=true;
}
public fw_Player_ResetMaxSpeedVip(id){
if(!g_FreezeTime){
set_user_maxspeed(id,get_user_maxspeed(id) + 40);
}
}
public CmdStartPre(id, uc_handle){
if(g_Vip[id]){
if(is_user_alive(id)){
CmdStartPreVip(id, uc_handle);
}
}
}
public CmdStartPreVip(id, uc_handle){
new flags = pev(id, pev_flags);
if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
--skoki[id];
new Float:velocity[3];
pev(id, pev_velocity,velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id,pev_velocity,velocity);
} else if(flags & FL_ONGROUND && skoki[id]!=-1){
skoki[id] = 1;
}
}
public plugin_cfg(){
maxPlayers=get_maxplayers();
}
public takeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(((IsPlayer(idattacker) && is_user_connected(idattacker) && g_Vip[idattacker] && (ioid=idattacker)) ||
(ioid=pev(idinflictor, pev_owner) && IsPlayer(ioid) && is_user_connected(ioid) && g_Vip[ioid]))){
damage*=(100+30)/100;
}
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
 
if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
DeathMsgVip(killer,victim,read_data(3));
}
}
public DeathMsgVip(kid,vid,hs){
set_user_health(kid, min(get_user_health(kid)+(hs?10:5),130));
}
public VipStatus(){
new id=get_msg_arg_int(1);
if(is_user_alive(id) && g_Vip[id]){
set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4);
}
}
public VipChat(id){
if(g_Vip[id]){
new g_Msg[256],
g_Text[256];
 
read_args(g_Msg,charsmax(g_Msg));
remove_quotes(g_Msg);
 
if(g_Msg[0] == '*' && g_Msg[1]){
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
 
formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]);
 
for(new i=1;i<33;i++){
if(is_user_connected(i) && g_Vip[i])
ColorChat(i, GREEN, "%s", g_Text);
}
return PLUGIN_HANDLED_MAIN;
}
}
return PLUGIN_CONTINUE;
}
public handleSayText(msgId,msgDest,msgEnt){
new id = get_msg_arg_int(1);
 
if(is_user_connected(id) && g_Vip[id]){
new szTmp[256],szTmp2[256];
get_msg_arg_string(2,szTmp, charsmax(szTmp))
 
new szPrefix[64] = "^x04[VIP]";
 
if(!equal(szTmp,"#Cstrike_Chat_All")){
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2)," ");
add(szTmp2,charsmax(szTmp2),szTmp);
}
else{
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 :  %s2");
}
set_msg_arg_string(2,szTmp2);
}
return PLUGIN_CONTINUE;
}
public amxbans_admin_connect(id){
client_authorized(id);
}
VIP.SMA


 

;; SUPER VIP JAILBREAK BY dEAL ;;

#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
 
#define IsPlayer(%1) (1<=%1<=maxPlayers)
 
forward amxbans_admin_connect(id);
 
new CsArmorType:armortype, bool:g_FreezeTime, bool:g_Vip[33], g_Hudmsg, ioid,
maxPlayers, skoki[33];
 
new const g_Prefix[] = "Vip Chat";
 
public plugin_init(){
register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
RegisterHam(get_player_resetmaxspeed_func(), "player", "fw_Player_ResetMaxSpeed", 1);
register_logevent("logevent_round_start", 2, "1=Round_Start");
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
register_forward(FM_CmdStart, "CmdStartPre");
RegisterHam(Ham_TakeDamage, "player", "takeDamage", 0);
register_event("DeathMsg", "DeathMsg", "a");
register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
register_clcmd("say /svip", "ShowMotd");
register_clcmd("say_team", "VipChat");
register_message(get_user_msgid("SayText"),"handleSayText");
g_Hudmsg=CreateHudSyncObj();
}
public client_authorized(id){
if(get_user_flags(id) & 524288 == 524288){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
set_hudmessage(24, 190, 220, 0.25, 0.2, 0, 6.0, 6.0);
ShowSyncHudMsg(0, g_Hudmsg, "SVIP %s wbija na serwer !",g_Name);
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
set_user_gravity(id, 690.0/800.0);
skoki[id]=2;
set_user_health(id, get_user_health(id)+100);
cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+120, 340), armortype);
new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
give_item(id, "weapon_smokegrenade");
++sgnum;
cs_set_user_nvg(id);
}
Ham:get_player_resetmaxspeed_func(){
#if defined Ham_CS_Player_ResetMaxSpeed
return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
#else
return Ham_Item_PreFrame;
#endif
}
public fw_Player_ResetMaxSpeed(id){
if(g_Vip[id]){
if(is_user_alive(id)){
fw_Player_ResetMaxSpeedVip(id);
}
}
}
public logevent_round_start(){
g_FreezeTime=false;
}
public event_new_round(){
g_FreezeTime=true;
}
public fw_Player_ResetMaxSpeedVip(id){
if(!g_FreezeTime){
set_user_maxspeed(id,get_user_maxspeed(id) + 60);
}
}
public CmdStartPre(id, uc_handle){
if(g_Vip[id]){
if(is_user_alive(id)){
CmdStartPreVip(id, uc_handle);
}
}
}
public CmdStartPreVip(id, uc_handle){
new flags = pev(id, pev_flags);
if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
--skoki[id];
new Float:velocity[3];
pev(id, pev_velocity,velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id,pev_velocity,velocity);
} else if(flags & FL_ONGROUND && skoki[id]!=-1){
skoki[id] = 2;
}
}
public plugin_cfg(){
maxPlayers=get_maxplayers();
}
public takeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(((IsPlayer(idattacker) && is_user_connected(idattacker) && g_Vip[idattacker] && (ioid=idattacker)) ||
(ioid=pev(idinflictor, pev_owner) && IsPlayer(ioid) && is_user_connected(ioid) && g_Vip[ioid]))){
damage*=(100+50)/100;
}
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
 
if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
DeathMsgVip(killer,victim,read_data(3));
}
}
public DeathMsgVip(kid,vid,hs){
set_user_health(kid, min(get_user_health(kid)+(hs?15:10),100));
}
public VipStatus(){
new id=get_msg_arg_int(1);
if(is_user_alive(id) && g_Vip[id]){
set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4);
}
}
public ShowMotd(id){
show_motd(id, "svip.txt", "Informacje o vipie");
}
public VipChat(id){
if(g_Vip[id]){
new g_Msg[256],
g_Text[256];
 
read_args(g_Msg,charsmax(g_Msg));
remove_quotes(g_Msg);
 
if(g_Msg[0] == '*' && g_Msg[1]){
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
 
formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]);
 
for(new i=1;i<33;i++){
if(is_user_connected(i) && g_Vip[i])
ColorChat(i, GREEN, "%s", g_Text);
}
return PLUGIN_HANDLED_MAIN;
}
}
return PLUGIN_CONTINUE;
}
public handleSayText(msgId,msgDest,msgEnt){
new id = get_msg_arg_int(1);
 
if(is_user_connected(id) && g_Vip[id]){
new szTmp[256],szTmp2[256];
get_msg_arg_string(2,szTmp, charsmax(szTmp))
 
new szPrefix[64] = "^x04[SVIP]";
 
if(!equal(szTmp,"#Cstrike_Chat_All")){
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2)," ");
add(szTmp2,charsmax(szTmp2),szTmp);
}
else{
add(szTmp2,charsmax(szTmp2),szPrefix);
add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 :  %s2");
}
set_msg_arg_string(2,szTmp2);
}
return PLUGIN_CONTINUE;
}
public amxbans_admin_connect(id){
client_authorized(id);
}
SuperVip.sma

 

 


  • +
  • -
  • 0

#4 PakoCsJednosc

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:24
Offline

Napisano 30.09.2017 21:05

Ktoś POMOŻE??


  • +
  • -
  • 0

#5 zbyciu

    Pomocny

  • Użytkownik

Reputacja: 2
Nowy

  • Postów:51
Offline

Napisano 01.10.2017 10:50

Usuń prefixy, zawsze valve musi coś naknocić

 


  • +
  • -
  • 0

#6 heniu1111

    Ja zjadłem ciastko ^^

  • Power User

Reputacja: 149
Zaawansowany

  • Postów:568
  • GG:
  • Imię:heniu
  • Lokalizacja:zapomniałem
Offline

Napisano 02.10.2017 17:26

Ktoś POMOŻE??

 

Proszę 


 
/* VIP JAILBREAK BY dEAL /*
#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
 
#define IsPlayer(%1) (1<=%1<=maxPlayers)
 
forward amxbans_admin_connect(id);
 
new CsArmorType:armortype, bool:g_FreezeTime, bool:g_Vip[33], g_Hudmsg, ioid,
maxPlayers, skoki[33];
 
new const g_Prefix[] = "Vip Chat";
 
public plugin_init(){
register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
RegisterHam(get_player_resetmaxspeed_func(), "player", "fw_Player_ResetMaxSpeed", 1);
register_logevent("logevent_round_start", 2, "1=Round_Start");
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
register_forward(FM_CmdStart, "CmdStartPre");
RegisterHam(Ham_TakeDamage, "player", "takeDamage", 0);
register_event("DeathMsg", "DeathMsg", "a");
register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
register_clcmd("say_team", "VipChat");
register_message(get_user_msgid("SayText"),"handleSayText");
g_Hudmsg=CreateHudSyncObj();
}
public client_authorized(id){
if(get_user_flags(id) & 262144 == 262144){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
set_hudmessage(24, 190, 220, 0.25, 0.2, 0, 6.0, 6.0);
ShowSyncHudMsg(0, g_Hudmsg, "Vip %s wbija na serwer !",g_Name);
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
set_user_gravity(id, 755.0/800.0);
skoki[id]=1;
set_user_health(id, get_user_health(id)+60);
cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+100, 300), armortype);
cs_set_user_nvg(id);
}
Ham:get_player_resetmaxspeed_func(){
#if defined Ham_CS_Player_ResetMaxSpeed
return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
#else
return Ham_Item_PreFrame;
#endif
}
public fw_Player_ResetMaxSpeed(id){
if(g_Vip[id]){
if(is_user_alive(id)){
fw_Player_ResetMaxSpeedVip(id);
}
}
}
public logevent_round_start(){
g_FreezeTime=false;
}
public event_new_round(){
g_FreezeTime=true;
}
public fw_Player_ResetMaxSpeedVip(id){
if(!g_FreezeTime){
set_user_maxspeed(id,get_user_maxspeed(id) + 40);
}
}
public CmdStartPre(id, uc_handle){
if(g_Vip[id]){
if(is_user_alive(id)){
CmdStartPreVip(id, uc_handle);
}
}
}
public CmdStartPreVip(id, uc_handle){
new flags = pev(id, pev_flags);
if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
--skoki[id];
new Float:velocity[3];
pev(id, pev_velocity,velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id,pev_velocity,velocity);
} else if(flags & FL_ONGROUND && skoki[id]!=-1){
skoki[id] = 1;
}
}
public plugin_cfg(){
maxPlayers=get_maxplayers();
}
public takeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(((IsPlayer(idattacker) && is_user_connected(idattacker) && g_Vip[idattacker] && (ioid=idattacker)) ||
(ioid=pev(idinflictor, pev_owner) && IsPlayer(ioid) && is_user_connected(ioid) && g_Vip[ioid]))){
damage*=(100+30)/100;
}
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
 
if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
DeathMsgVip(killer,victim,read_data(3));
}
}
public DeathMsgVip(kid,vid,hs){
set_user_health(kid, min(get_user_health(kid)+(hs?10:5),130));
}
public VipStatus(){
new id=get_msg_arg_int(1);
if(is_user_alive(id) && g_Vip[id]){
set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4);
}
}
public VipChat(id){
if(g_Vip[id]){
new g_Msg[256],
g_Text[256];
 
read_args(g_Msg,charsmax(g_Msg));
remove_quotes(g_Msg);
 
if(g_Msg[0] == '*' && g_Msg[1]){
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
 
formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]);
 
for(new i=1;i<33;i++){
if(is_user_connected(i) && g_Vip[i])
ColorChat(i, GREEN, "%s", g_Text);
}
return PLUGIN_HANDLED_MAIN;
}
}
return PLUGIN_CONTINUE;
}
public handleSayText(msgId,msgDest,msgEnt){	

    new id = get_msg_arg_int(1);
    
    if(is_user_connected(id) && g_Vip[id]){  
    
    new szTmp[192], szTmp2[192];
    get_msg_arg_string(2, szTmp, charsmax(szTmp));
    
    new szPrefix[64] = "^x04[VIP]";
    
    if(!equal(szTmp,"#Cstrike_Chat_All")){
        add(szTmp2, charsmax(szTmp2), "^x01");
        add(szTmp2, charsmax(szTmp2), szPrefix);
        add(szTmp2, charsmax(szTmp2), " ");
        add(szTmp2, charsmax(szTmp2), szTmp);
    }
    else{
        new szPlayerName[64];
        get_user_name(id, szPlayerName, charsmax(szPlayerName));
        
        get_msg_arg_string(4, szTmp, charsmax(szTmp)); 
        set_msg_arg_string(4, "");
    
        add(szTmp2, charsmax(szTmp2), "^x01");
        add(szTmp2, charsmax(szTmp2), szPrefix);
        add(szTmp2, charsmax(szTmp2), "^x03 ");
        add(szTmp2, charsmax(szTmp2), szPlayerName);
        add(szTmp2, charsmax(szTmp2), "^x01 :  ");
        add(szTmp2, charsmax(szTmp2), szTmp)
    }
    
    set_msg_arg_string(2, szTmp2);
    }
    return PLUGIN_CONTINUE;
}
public amxbans_admin_connect(id){
client_authorized(id);
}

Supervip

;; SUPER VIP JAILBREAK BY dEAL ;;
#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
 
#define IsPlayer(%1) (1<=%1<=maxPlayers)
 
forward amxbans_admin_connect(id);
 
new CsArmorType:armortype, bool:g_FreezeTime, bool:g_Vip[33], g_Hudmsg, ioid,
maxPlayers, skoki[33];
 
new const g_Prefix[] = "Vip Chat";
 
public plugin_init(){
register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
RegisterHam(get_player_resetmaxspeed_func(), "player", "fw_Player_ResetMaxSpeed", 1);
register_logevent("logevent_round_start", 2, "1=Round_Start");
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
register_forward(FM_CmdStart, "CmdStartPre");
RegisterHam(Ham_TakeDamage, "player", "takeDamage", 0);
register_event("DeathMsg", "DeathMsg", "a");
register_message(get_user_msgid("ScoreAttrib"), "VipStatus");
register_clcmd("say /svip", "ShowMotd");
register_clcmd("say_team", "VipChat");
register_message(get_user_msgid("SayText"),"handleSayText");
g_Hudmsg=CreateHudSyncObj();
}
public client_authorized(id){
if(get_user_flags(id) & 524288 == 524288){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
set_hudmessage(24, 190, 220, 0.25, 0.2, 0, 6.0, 6.0);
ShowSyncHudMsg(0, g_Hudmsg, "SVIP %s wbija na serwer !",g_Name);
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
set_user_gravity(id, 690.0/800.0);
skoki[id]=2;
set_user_health(id, get_user_health(id)+100);
cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+120, 340), armortype);
new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
give_item(id, "weapon_smokegrenade");
++sgnum;
cs_set_user_nvg(id);
}
Ham:get_player_resetmaxspeed_func(){
#if defined Ham_CS_Player_ResetMaxSpeed
return IsHamValid(Ham_CS_Player_ResetMaxSpeed)?Ham_CS_Player_ResetMaxSpeed:Ham_Item_PreFrame;
#else
return Ham_Item_PreFrame;
#endif
}
public fw_Player_ResetMaxSpeed(id){
if(g_Vip[id]){
if(is_user_alive(id)){
fw_Player_ResetMaxSpeedVip(id);
}
}
}
public logevent_round_start(){
g_FreezeTime=false;
}
public event_new_round(){
g_FreezeTime=true;
}
public fw_Player_ResetMaxSpeedVip(id){
if(!g_FreezeTime){
set_user_maxspeed(id,get_user_maxspeed(id) + 60);
}
}
public CmdStartPre(id, uc_handle){
if(g_Vip[id]){
if(is_user_alive(id)){
CmdStartPreVip(id, uc_handle);
}
}
}
public CmdStartPreVip(id, uc_handle){
new flags = pev(id, pev_flags);
if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
--skoki[id];
new Float:velocity[3];
pev(id, pev_velocity,velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id,pev_velocity,velocity);
} else if(flags & FL_ONGROUND && skoki[id]!=-1){
skoki[id] = 2;
}
}
public plugin_cfg(){
maxPlayers=get_maxplayers();
}
public takeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(((IsPlayer(idattacker) && is_user_connected(idattacker) && g_Vip[idattacker] && (ioid=idattacker)) ||
(ioid=pev(idinflictor, pev_owner) && IsPlayer(ioid) && is_user_connected(ioid) && g_Vip[ioid]))){
damage*=(100+50)/100;
}
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
 
if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
DeathMsgVip(killer,victim,read_data(3));
}
}
public DeathMsgVip(kid,vid,hs){
set_user_health(kid, min(get_user_health(kid)+(hs?15:10),100));
}
public VipStatus(){
new id=get_msg_arg_int(1);
if(is_user_alive(id) && g_Vip[id]){
set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4);
}
}
public ShowMotd(id){
show_motd(id, "svip.txt", "Informacje o vipie");
}
public VipChat(id){
if(g_Vip[id]){
new g_Msg[256],
g_Text[256];
 
read_args(g_Msg,charsmax(g_Msg));
remove_quotes(g_Msg);
 
if(g_Msg[0] == '*' && g_Msg[1]){
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
 
formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]);
 
for(new i=1;i<33;i++){
if(is_user_connected(i) && g_Vip[i])
ColorChat(i, GREEN, "%s", g_Text);
}
return PLUGIN_HANDLED_MAIN;
}
}
return PLUGIN_CONTINUE;
}
public handleSayText(msgId,msgDest,msgEnt){	

    new id = get_msg_arg_int(1);
    
    if(is_user_connected(id) && g_Vip[id]){  
    
    new szTmp[192], szTmp2[192];
    get_msg_arg_string(2, szTmp, charsmax(szTmp));
    
    new szPrefix[64] = "^x04[SVIP]";
    
    if(!equal(szTmp,"#Cstrike_Chat_All")){
        add(szTmp2, charsmax(szTmp2), "^x01");
        add(szTmp2, charsmax(szTmp2), szPrefix);
        add(szTmp2, charsmax(szTmp2), " ");
        add(szTmp2, charsmax(szTmp2), szTmp);
    }
    else{
        new szPlayerName[64];
        get_user_name(id, szPlayerName, charsmax(szPlayerName));
        
        get_msg_arg_string(4, szTmp, charsmax(szTmp));
        set_msg_arg_string(4, "");
    
        add(szTmp2, charsmax(szTmp2), "^x01");
        add(szTmp2, charsmax(szTmp2), szPrefix);
        add(szTmp2, charsmax(szTmp2), "^x03 ");
        add(szTmp2, charsmax(szTmp2), szPlayerName);
        add(szTmp2, charsmax(szTmp2), "^x01 :  ");
        add(szTmp2, charsmax(szTmp2), szTmp)
    }
    
    set_msg_arg_string(2, szTmp2);
    }
    return PLUGIN_CONTINUE;
}
public amxbans_admin_connect(id){
client_authorized(id);
}

Sory że tak długo ale nie miałem dużo czasu  ^^  Sprawdź 

 

Usuń prefixy, zawsze valve musi coś naknocić

Jeżeli nic nie wnosisz do tematu to się nie wypowiadaj  :facepalm:  :facepalm2:


  • +
  • -
  • 0

Zawsze służę pomocą, pomogę na tyle ile jestem wstanie  :)

 

Poradnik do instalacji AmxBans: https://www.youtube....h?v=fYq5iKQhVIM

 

Link do lekkiej "modyfikacji" AmxBans: https://amxx.pl/topi...ndpost&p=733955

 





Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych