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

Problem z errorami


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

#1 Heros1213

    Życzliwy

  • Użytkownik

Reputacja: 3
Nowy

  • Postów:36
  • Imię:Maciek
  • Lokalizacja:POLSKA
Offline

Napisano 28.09.2013 15:54

Witam wszystko działa ok ale jednak mam errory

L 09/28/2013 - 15:55:05: Start of error session.
L 09/28/2013 - 15:55:05: Info (map "de_aztec") (file "addons/amxmodx/logs/error_20130928.log")
L 09/28/2013 - 15:55:05: [FUN] Item "item_kitdefuser" failed to create
L 09/28/2013 - 15:55:05: [AMXX] Displaying debug trace (plugin "Ziolo_v.1.5.5.amxx")
L 09/28/2013 - 15:55:05: [AMXX] Run time error 10: native error (native "give_item")
L 09/28/2013 - 15:55:05: [AMXX]    [0] Ziolo_v.1.5.5_1777006.sma::Jaramy (line 314)
 

  • +
  • -
  • 0

#2 Amaroq

    AMXX Contributor

  • Użytkownik

Reputacja: 304
Wszechpomocny

  • Postów:380
  • GG:
  • Steam:steam
  • Imię:Karol
  • Lokalizacja:Łódź
Offline

Napisano 28.09.2013 16:09

Podaj sma pluginu Ziolo_v1.5.5
  • +
  • -
  • 1
Plugin informujący o zabiciu zakładnika (wysyła do admina na say nick gracza oraz zapisuje o tym logi) - Hostage Killer v1.3.3
DarkGL to mój autorytet.

#3 Heros1213

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:36
  • Imię:Maciek
  • Lokalizacja:POLSKA
Offline

Napisano 28.09.2013 16:17

Plugin pobrałem bodajże z tego forum , lecz nie jest mojego autorstwa

/*                                                                    .                                               
                                                                    i                                               
                                                                   B                                                
                                                                  FM                                                
                                                                  Bu                                                
                                                                 0BF                                                
                                                                kBBB                                                
                         :                                     :BOZB:                                               
                         ,N                                   rBO0EBB                                               
                          Mj                                  UBNENOB.                                              
                          :B;                                BBEEN0EB7                                              
                           BBi                               SBZ0ENEBP                                              
                           BBB5                            .BqMN0qGNBF:                                             
                           EB8BB.                           BBNEqZNEOB.                                             
                           jBqNMMM,                       ijGOENGEE0MBr                                             
                           ;BEPE0BOr.                      BB8qENGq8MB                                :i.           
                           .MONPPqMBB                     Y0MNZEEqGqMBJ                             jZ7             
                            GBN0q0EEBk8i                  rBG0qNqZqE8B.                          iNBN               
                             NMNNN00GOBP                 :vOG0ENE0GqOBj                      ,LSBBBr                
                            .BBEP0NE0ZGMOF               .BM0EEEqEPEMM                     XUBBBMBL                 
                              0MEqEq0q0ZBB                EM80Gq0NGPMBP                 .OBBBGGMBP                  
                              FBGZNENE0ZEMBB            .BMMqGE0N80GOB.               jBBBMZNOZBB.                  
                               iB0ENEE0q0EBB:            5BZZqZqZE8ZBE:             B8BBMN0Z8ZBB                    
                               rBB0EqqPZE8GBBN          vMM0Z8GN0GqGMB7          jZMBBGEP8ZGGBS:                    
                                rBONZqE0G0GZMB.          BBZ0NZPEqGqBM.         .BBMOEZEZNEGBB,                     
                                 BBO0EPZN00GZBBB        .BOGGZNNEZ0OBM        XB8B0GNZGOEOBB2                       
                                  Y8ONZ0ZEZNGZBB.        uBq000PGN8ZB:      7,BBB0Z0ZEG0MBq:                        
                                   BB8qZNZq0EGMMBM       NBONENqG8NOBB     :BB8O8ZqGGZZBBB:                         
          :L7.                     :kBMNE0G0ZE8GBM       NB88Eqk80G8B     BMB88ZGN8NEZBBU                           
            :ZBZ::                  .BBM0ZPGq00ZGMBU     .B8qZPNEZqBqv  .UBBZGZZ0OE8OBBB                            
              :BBBBZBY5:              rBBEGNZq0EGZBr    1BMEZE0qOEMBB,  BBMGMNEZG0GMBB7                             
                YBBBMBMBBBSi7          8BBZEEGN0N8MBB    BBZEOP8GMBB   .BOEONEZ8Z8OBki                              
                 rOBB8808GBBBBFE:        OBGG0GNE08BB     BZGG00ME8Bk,BMMq80q88EBBBE                                
                   JMBMMEZNGEMBBBBM.     iBB88NZ0GGMBME  L8OE8k8ZOBO,vBBMZPGZZEMBk.                                 
                    :8MMM8OGG0N0OBBB0Mr    iBM8EZNqEOBB  BBO8EqqG8O PBGEMNZG8MBBM                                   
                      :BBBZO8ME0kNNOBBBOrP  LBBMZ80ZZMBv  BBZZPOGBB.XBGZXGGMBBO                                     
                        :BBMOZ8G8ZEPN0OBBBB,, r8MEG0EOBB   BOXNZBM  BMGPGOBBB5:                                     
                           kBBMGZMMMZ0qqEMBBBZ:7MBMME0MB ,PM8NEMB  BB8XMMBBL             Y :Z27BPSBN1B271r,:        
                            7LZBBMZE8MMGEq0EMBZ7P 7ZBZGBBLrBMPOBB,;BGqMBB8U       .7:kBZBBBBBBBBBBMMBOBBBBBBBBBM82r,
                              .XkBBBOOE8MMOGqNOBBX2OkBBGB: YBEBB rBM8BBM     .iMMZBBBBBBO8GG0GG8ZOZOGMMBBBBBZi.     
                                 :B8BBBBMGMMM8EP0MBB  PBB:  BEB. XBMBU.   :ZBBBBBMMG0qENG08OMMMMMMBBBBBMv7.         
                                     NPGBBBBBBBB8GNMB, YBB  BBB  BB8    2BBBGGNEXGEZZMMBBBBBMBBBBBBB:..             
                                        .rivJSBBBBBGMBB ,BB rBi BZ.  ;BBBOGqO8MMBMBMMGBBBBBBBBuXZ                   
                                             iLi.i0ENGMB: YY:B F:  78BBMZBBBBBBBBBBBBBMXBB:.ir                      
                                  .JBMBBBBBBBMPYuPUi:7MGBOuBMX0P7ZBBBUX8BB1kGBN7kM; ,7:                             
                               :2BBBMBO8GZE8EGGBMMMBBBBBGNSXXMOOMM0Z8L::iY                                          
                            .JMBBO8E8GM8MMBBBBBBBBBBBU::rL2kMBkBG0OGZMB8GEBMBP1P:.                                  
                          uOBBBMMBOBMBBBBBBBBBBSLj    7qMMOBBk ZBMEZ8MMBMMZOZMBBBBBNi                               
                       iOBBBBBBBBBBBBBBEMY::       :5BBMBBB8BL  BBMEOGGZBBBBMGGEGEMBBBBY                            
                    .JZBNvi:7::7 :  .          ,YBBBBBBBB:vBBU   BBB8MZZZ88BBBMBOMZZZMBBBBi                         
                    :.                       .XBBBBBBBBU   BB2   .BBBBB8B2 .BBBBBBBBBMMEMBBBY                       
                                            1BBBBBBBBri    YuU.    :BBBBMBU   1j8BBBBBBBBBBBBB,                     
                                           7BBBUP,.          Er       MMBBB7     i LBUqBBBBBBBB8                    
                                          iBY                Xj         YBBB           .  :quBBBBJ                  
    .SFJLi::.                             1                  YN           EBL                   :uXi                
    iEY  iP8,  kL                                            7M            kB                                       
    Xj   YN,  ,Ev          .r:.                              .B             ;                                       
   :F   L0i                 5G:                               M,                                                    
   ,   ;N7   i;,            PU                  :             G;                                                    
      :Nu    i0U   :LY;    ikr                  :N52u7        F1                                                    
     .NF     Lq,  Y0i S5   YS.   .:.             5S  XS       UO                                                    
     XP.     k1  iPY  LN.  FUY: LEij1.          iX7  7P:       .                                                    
    1q:     :X7  2X.  15  :SL  v0: .07          US:  rPi                                                            
   Yqr   ;  Lq. ,PU  ,FU ,uX  .Pu  :XL     7q: .FF   jSi                                                            
  rPL   vJ  k5  7k7  rXi.;5u  YS;  7Pi     YN. iPL   2S.                                                            
 ,PY   iE, :XL  JP.  1S. ,Sr  5k   FS.         uS:  :kU                                                             
:UELi:70S  vq.  55  :XY  Yq. .Pj  :k2         .FS   YF7                                                             
   ,:r7Ji iNN,  Y0  XP   XU  iX7  Yq:         iXv  .5k.                                                             
          . ,,   LJUJ   Yq7  :E, .0j          jk:  rPY                                                              
                       :rv7   1U:NU      ..  .F5   kP.                                                              
                               ,i.       EM  rPr  2Pr                                                               
                                         .. ,7rr:L7.
*/
 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <hamsandwich>
#include <engine>
#include <fakemeta>
#include <fun>
 
#define menuKeys ((1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9))
 
#define SetUserReversed(%1) g_bMigraineux |= 1<<(%1 & 31)
#define ClearUserReversed(%1) g_bMigraineux &= ~( 1<<(%1 & 31) )
#define HasUserMigraine(%1) g_bMigraineux &  1<<(%1 & 31)
 
new const Hats[] = "models/ziolo/hats.mdl";
new modelname[9][] = { "gign","gsg9","sas","urban","vip","arctic","guerilla","leet","terror" };
 
new c_ilosc[33];
new Liczydlo[33];
new count_puke[33];
new counter[33];
new g_Head[33];
 
new bool:aim[33];
new bool:on[33] = false;
new bool:effect_ziola[33] = false;
new bool:bonus[33] = false;
new bool:bonus_health[33] = false;
new bool:bonus_armor[33] = false;
new bool:bonus_invis[33] = false;
new bool:bonus_noflash[33] = false;
 
new koszt;
new koszt2;
new koszt3;
new koszt4;
new koszt5;
 
new admin_skret;
new admin_give_skret;
 
new MaxPlayers;
new StatusTekstu;
new ScreenF;
 
enum _:GlobalState {None, Terrorists, Cts, All}
 
new g_bMigraineux
 
new Float:g_vecPunchAngles[32+1][3]
new g_iFfPlayerPreThink
new g_iGlobalState
 
#if !defined NO_CS_CZ
new player_origins[33][3]
#endif
 
public plugin_init(){
register_plugin("[Ziolo]", "1.5.5", "[H]ARDBO[T]");
 
register_event("ResetHUD", "reset_hud", "be")
register_event("HLTV", "NewRound", "a", "1=0", "2=0");
register_event("DeathMsg", "PlayerDeath", "a"); 
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
 
register_menucmd(register_menuid("Skrety"), menuKeys, "Select");
 
koszt = register_cvar("amx_koszt_1_ziola","1900");
koszt2 = register_cvar("amx_koszt_2_ziola","2500"); 
koszt3 = register_cvar("amx_koszt_3_ziola","5000");
koszt4 = register_cvar("amx_koszt_4_ziola","7000");
koszt5 = register_cvar("amx_koszt_5_ziola","16000");
 
admin_skret = register_cvar("amx_ile_skretow_dac_adminom","5");
admin_give_skret = register_cvar("amx_admin_dostaje_ziolo","1");
 
register_clcmd("say /skret", "Skrety");
register_clcmd("say /jaraj", "Jaramy");
register_clcmd("say skret", "Skrety");
register_clcmd("say jaraj", "Jaramy");
 
MaxPlayers = get_maxplayers();
StatusTekstu = get_user_msgid("StatusText");
ScreenF = get_user_msgid("ScreenFade");
 
set_task(70.0, "Reklama");
}
public NewRound()
{
for(new all = 0; all < 33; all++){
bonus[all] = false;
ClearUserReversed(all)
remove_entity(g_Head[all])
}
}
public PlayerDeath()
{
new attacker = read_data(1);
new victim = read_data(2);
 
set_user_rendering(victim, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
 
if(bonus[attacker] == true){
if(attacker <= MaxPlayers && attacker && attacker != victim) 
cs_set_user_money(attacker ,cs_get_user_money(attacker) + 200) 
}
effect_ziola[victim] = false;
ClearUserReversed(victim)
remove_entity(g_Head[victim])
 
#if !defined NO_CS_CZ
get_user_origin(victim,player_origins[victim],0);
#endif
return PLUGIN_CONTINUE; 
}
public client_authorized(id)
{
set_task(0.1, "IloscGramow",id,_,_,"b")
 
if(get_pcvar_num(admin_give_skret)){
if(is_user_admin(id)) c_ilosc[id] += get_pcvar_num(admin_skret);
return PLUGIN_CONTINUE;
}
return PLUGIN_CONTINUE; 
}
public Skrety(id)
{
if(is_user_alive(id)){
new name[33], text[512];
get_user_name(id, name, 32);
 
format(text, 511, "\dSiema\y %s^nIle chcesz kupic \rGramow Ziola?^n^n1. \wJeden \r[Koszt: %i $]^n2. \wDwa \r[Koszt: %i $]^n3. \wPol Paczki \r[Koszt: %i $]^n4. \w3/4 Paczki \r[Koszt: %i $]^n5. \wCala Paczke \r[Koszt: %i $]", name, get_pcvar_num( koszt ), get_pcvar_num( koszt2 ), get_pcvar_num( koszt3 ), get_pcvar_num( koszt4 ), get_pcvar_num( koszt5 ));
show_menu(id, menuKeys, text, -1, "Skrety");
}
else{
ColorChat(id, GREY, "Nie zyjesz, Ziomus!");
} 
}
public Select(id,key)
{
switch(key)
{
case 0:{
if( !Sklep( id, get_pcvar_num( koszt ) ) ) return PLUGIN_HANDLED;
c_ilosc[id] += 1;
}
case 1:{
if( !Sklep( id, get_pcvar_num( koszt2 ) ) ) return PLUGIN_HANDLED;
c_ilosc[id] += 2;
}
case 2:{
if( !Sklep( id, get_pcvar_num( koszt3 ) ) ) return PLUGIN_HANDLED;
c_ilosc[id] += 3; 
}
case 3:{
if( !Sklep( id, get_pcvar_num( koszt4 ) ) ) return PLUGIN_HANDLED;
c_ilosc[id] += 5;
}
case 4:{
if( !Sklep( id, get_pcvar_num( koszt5 ) ) ) return PLUGIN_HANDLED;
c_ilosc[id] += 10;
}
}
return PLUGIN_CONTINUE;
}
public Jaramy(id)
{
if(is_user_alive(id) || cs_get_user_money(id) < 16000){
if(c_ilosc[id] > 0){
switch(random_num(0,18)){
case 0:{
set_user_gravity(id, 0.5);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Od tego ziola skaczesz jak^x04 David Bell!");
}
case 1:{
cs_set_user_money(id, cs_get_user_money(id) + 10000);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Tak sie zjarales, ze okradles bank! Zdobyles^x04 10000$"); 
}
case 2:{
set_user_health(id, get_user_health(id) + 25);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 To jaranie wyszlo ci na zdrowie! Zdobyles^x04 25HP");
}
case 3:{
set_user_health(id, get_user_health(id) + 100);
set_user_gravity(id, 0.4);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Nawet^x04 Adam Malysz + Redbull^x01 nie zrobia tyle co ty!"); 
}
case 4:{
set_user_health(id, get_user_health(id) - 25);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 To ziolo ci szkodzi! Uwazaj! Straciles^x04 25HP!"); 
}
case 5:{
on[id] = true;
ON(id);
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Jaranie ziola nie jest ci pisane!^x04 Niestety przedawkowales!"); 
}
case 6:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Tak sie zajarales ze znalazles^x04 Armor!");
set_user_armor(id, 200) 
}
case 7:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zapaliles ziolo i nie swiadom tego inni cie obrabowali :(");
strip_user_weapons(id);
give_item(id, "weapon_knife");
client_cmd(id, "drop;drop;drop;drop"); 
}
case 9:{
ColorChat(id, GREEN, "^x04[Ziolo]^x04 Zajarales sie :D!^x01 Za zabicie Gracza dostaniesz Bonus! :D");
bonus[id] = true; 
}
case 10:{
ColorChat(id, GREEN, "^x04[Ziolo]^x04 Kumpel dal ci Zajarac! :D!^x01 Az ci tentno podskoczylo!! :D");
bonus_health[id] = true;
ON(id);
}
case 11:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Ktos ci dal Skreta!! :D!^x01 uu I znalazles Granaty :D !! :D");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
}
case 12:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zajarales sie :D!! :D!^x01 Zdaje ci sie ze jestes Niewidzialny!! :D");
bonus_invis[id] = true;
ON(id);
}
case 13:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Tak sie zajarales ze znalazles^x04 Okulary przeciw Fleshom xD!!");
bonus_noflash[id] = true;
ON(id);
}
case 14:{
if(cs_get_user_team(id)==CS_TEAM_T){ 
give_item(id, "weapon_c4");
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zajarales reke!^x04 Dziwnym tropem znalazles C4!");
}
if(cs_get_user_team(id)==CS_TEAM_CT){
give_item(id, "item_kitdefuser");
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zajarales noge!^x04 oo Ktos upuscil Defusera :D!");
}
}
case 15:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Tak sie ujarales tym zielskiem ze masz za swoje!!");
effect_ziola[id] = true;
set_task(3.0, "szybki",id,_,_,"b");
rozmaz(id);
}
case 16:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zajarales za duzo!^x04 Teraz to wydalasz!!");
set_task(0.1, "rzygaj_po_ziele",id)
}
case 17:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Ktos podrzucil ci za duzo gramow ziola!^x04 :D Stapasz po niebiosach!!");
ColorChat(id, GREEN, "^x04[Ziolo]^x04 Az do smierci :)");
SetUserReversed(id)
CheckForward()
}
case 18:{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Zajarales z kolegami, ktos ci podarowal Ladna Czapke :D");
set_task(1.0, "SetHats",id);
} 
}
LosujMinus(id); // Losuje ujemne punkty za Jaranie :)
}
else{
ColorChat(id, GREEN, "^x04[Ziolo]^x01 Nie kupiles Skretow! Jak chcesz Jarac?!");
}
}
else{
ColorChat(id, GREY, "Nie zyjesz, Ziomus!"); // Nie zywi nie maja dostepu do Jarania :D
}
return PLUGIN_CONTINUE;
}//advertise
public Reklama()
{
switch(random_num(1,4)){
case 1: ColorChat(0, GREEN, "^x04[Ziolo]^x01 Sprawdz ile potrafisz wyjarac ziola! Wpisz^x04 /jaraj^x01 tylko nie przedawkuj!");
case 2: ColorChat(0, GREEN, "^x04[Ziolo]^x01 Zalamany? Potrzebujesz czegos mocnego? Wpisz^x04 /jaraj^x01 tylko nie przedawkuj!");
case 3: ColorChat(0, GREEN, "^x04[Ziolo]^x01 Yo Ziomek! Kup kilka gram ziola? Co ty na to! Wpisz^x04 /skret"); 
case 4: ColorChat(0, GREEN, "^x04[Ziolo]^x01 Pssyyt Ziomek mam do sprzedania kilka gram ziola! Wpisz^x04 /skret^x01 i zakup"); 
} 
}//effect skill ;D
public ON(id)
{
if(effect_ziola[id]){
 
Liczydlo[id] = 101;
if(task_exists(id + 3431)){
remove_task(id + 3431);
}
set_task(1.0, "OFF", id+3431, _, _, "b"); 
}
 
if(bonus_noflash[id])
{ 
Liczydlo[id] = 200;
 
message_begin(MSG_ONE, ScreenF, {0,0,0}, id)
write_short(1)
write_short(1)
write_short(1)
write_byte(0)
write_byte(0)
write_byte(0)
write_byte(255)
message_end()
 
if(task_exists(id + 3431)){
remove_task(id + 3431);
}
set_task(1.0, "OFF", id+3431, _, _, "b");
}
if(bonus_health[id]){
Liczydlo[id] = 60;
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 1);
 
if(task_exists(id + 3431)){
remove_task(id + 3431);
}
set_task(1.0, "OFF", id+3431, _, _, "b"); 
}
if(on[id]){
Liczydlo[id] = 100;
}
if(bonus_health[id] || bonus_armor[id]){
Liczydlo[id] = 50;
}
if(on[id] || bonus_health[id] || bonus_armor[id])
{
if(task_exists(id + 3431)){
remove_task(id + 3431);
}
set_task(0.001, "OFF", id+3431, _, _, "b");
}
return PLUGIN_CONTINUE;
}
public OFF(in_id)
{
new id = in_id - 3431
 
if(bonus_noflash[id]){
set_hudmessage(255, 255, 255, 0.03, 0.76, 2, 0.02, 1.0, 0.01);
show_hudmessage(id, "Za %d sec stracisz Okulary!", Liczydlo[id]);
} 
if(on[id]){
set_user_health(id, get_user_health(id) - 1);
set_hudmessage(255, 0, 0, 0.03, 0.76, 2, 0.02, 1.0, 0.01);
show_hudmessage(id, "Za %d sec Umrzesz!", Liczydlo[id]);
 
if(Liczydlo[id] == 1) client_cmd(id, "kill");
}
if(bonus_invis[id]){
set_hudmessage(255, 255, 255, 0.03, 0.76, 2, 0.02, 1.0, 0.01);
show_hudmessage(id, "Za %d sec bedziesz Widzialny!", Liczydlo[id]);
} 
if(bonus_health[id]){
set_user_health(id, get_user_health(id) + 1);
 
set_hudmessage(0, 255, 0, -1.0, 0.05, 2, 0.02, 1.0, 0.01);
show_hudmessage(id, "<<<==LADOWANIE ZYCIA==>>>");
}
if(bonus_armor[id]){
set_user_armor(id, get_user_armor(id) + 1)
 
set_hudmessage(255, 255, 4, -1.0, 0.05, 2, 0.02, 1.0, 0.01);
show_hudmessage(id, "<<<==LADOWANIE ARMORU==>>>");
}
Liczydlo[id] -= 1
 
if(Liczydlo[id] <= 0){
if(task_exists(in_id)){
remove_task(in_id)
bonus_health[id] = false;
bonus_armor[id] = false;
bonus_noflash[id] = false;
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
}
}
}
public SetHats(id)
{
g_Head[id] = create_entity("info_target")
entity_set_int(g_Head[id], EV_INT_movetype, MOVETYPE_FOLLOW)
entity_set_edict(g_Head[id], EV_ENT_aiment, id)
entity_set_model(g_Head[id], Hats)
}
public get_model_id(id)
{
new modelStr[32], iNum=32, modelID
get_user_info(id,"model",modelStr,iNum)
 
for(new i = 0; i < 9; i++)
{
if (equali(modelStr, modelname[i]))
{
modelID = i
}
}
return modelID
}
public Refresh(victim)
{
message_begin(MSG_ONE,ScreenF,{0,0,0},victim);
write_short(4<<12);
write_short(3<<16);
write_short(1<<1);
write_byte(0);
write_byte(255);
write_byte(0);
write_byte(255);
message_end();
}
public rozmaz(id) 
{
if(!effect_ziola[id]) return PLUGIN_HANDLED;
message_begin(MSG_ONE, get_user_msgid("SetFOV"), { 0, 0, 0 }, id);
write_byte(200); 
message_end();
return PLUGIN_CONTINUE;
}
public szybki(id) 
{
if(effect_ziola[id]){
client_cmd(id,"default_fov 20");
} 
else{
client_cmd(id,"default_fov 90");
}
}
public PlayerPreThink( id )
{
if(HasUserMigraine(id) && is_user_alive(id))
{
if( g_vecPunchAngles[id][1] < 180.0 )
{
g_vecPunchAngles[id][1] += 2.0
g_vecPunchAngles[id][0] = g_vecPunchAngles[id][1] * 2.0
}
else
{
g_vecPunchAngles[id][0] = 0.0
}
 
static Float:vecPunchAngle[3]
vecPunchAngle[0] = g_vecPunchAngles[id][0]
vecPunchAngle[1] = g_vecPunchAngles[id][0]
vecPunchAngle[2] = g_vecPunchAngles[id][1]
 
set_pev(id, pev_punchangle, vecPunchAngle)
}
}
CheckForward()
{
if( !g_bMigraineux != !g_iFfPlayerPreThink )
{
if( g_bMigraineux )
{
g_iFfPlayerPreThink = register_forward(FM_PlayerPreThink, "PlayerPreThink")
}
else
{
unregister_forward(FM_PlayerPreThink, g_iFfPlayerPreThink)
g_iFfPlayerPreThink = 0
}
}
}
/// Wynajęte z Pluginu PUKE
public reset_puke(id) 
{
if(task_exists(2412+id)) remove_task(2412+id);
return PLUGIN_CONTINUE 
}
public reset_hud(id)
{
if(task_exists(2412+id)) remove_task(2412+id);
count_puke[id]=1;
 
return PLUGIN_CONTINUE;
}
public rzygaj_po_ziele(id) 
{
if (!is_user_alive(id)) return PLUGIN_HANDLED; 
 
new player_origin[3], players[32], inum=0; 
 
get_user_origin(id,player_origin,0); 
get_players(players,inum,"b"); 
 
count_puke[id]+=1;
new ids[1];
ids[0]=id;
aim[id]=false;
counter[id]=0;
 
switch(random_num(0,1))
{
case 0: emit_sound(id, CHAN_VOICE, "misc/ziolo/ble.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
case 1: emit_sound(id, CHAN_VOICE, "misc/ziolo/ble2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
set_task(0.3,"make_puke",2412+id,ids,1,"a",9);
return PLUGIN_CONTINUE;
}
public sqrt(num) 
{ 
new div = num; 
new result = 1; 
while (div > result) 
{ 
div = (div + result) / 2; 
result = num / div; 
} 
return div; 
}
public make_puke(ids[]) 
{ 
new id=ids[0];
new vec[3]; 
new aimvec[3];
new velocityvec[3]; 
new length; 
get_user_origin(id,vec, 1); 
get_user_origin(id,aimvec,3); 
new distance = get_distance(vec,aimvec);
new speed = floatround(distance*1.9);
 
velocityvec[0]=aimvec[0]-vec[0]; 
velocityvec[1]=aimvec[1]-vec[1]; 
velocityvec[2]=aimvec[2]-vec[2]; 
 
length=sqrt(velocityvec[0]*velocityvec[0]+velocityvec[1]*velocityvec[1]+velocityvec[2]*velocityvec[2]); 
 
velocityvec[0]=velocityvec[0]*speed/length; 
velocityvec[1]=velocityvec[1]*speed/length; 
velocityvec[2]=velocityvec[2]*speed/length; 
 
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(101);
write_coord(vec[0]);
write_coord(vec[1]);
write_coord(vec[2]-2);
write_coord(velocityvec[0]); 
write_coord(velocityvec[1]); 
write_coord(velocityvec[2]); 
write_byte(82);
write_byte(160);
message_end();
 
counter[id]++;
 
}/// ^ Wynajęte z Pluginu PUKE
public bool:Sklep(id, amount)
{
if(cs_get_user_money(id) >= amount){
cs_set_user_money(id,cs_get_user_money(id)-amount);
return true;
}
else{
set_hudmessage(255, 0, 0, -1.0, 0.4, 1, 6.0, 2.0);
show_hudmessage(id, "Sorry, Zmiomus ale^n potrzeba wiecej szmalu :)");
return false;
}
return false;
}
public Player_Spawn_Post( id )
{
if( is_user_alive(id) )
{
switch( g_iGlobalState )
{
case Terrorists, Cts:
{
if( g_iGlobalState == _:cs_get_user_team(id) )
{
SetUserReversed(id)
}
else
{
ClearUserReversed(id)
CheckForward()
}
}
case All:
{
SetUserReversed(id)
CheckForward()
}
}
}
}
public IloscGramow(id)
{
new msg[1024];
if(c_ilosc[id] > 0){
format(msg,1023,"Ilosc gramow: [%d]",c_ilosc[id]);
message_begin(MSG_ONE, StatusTekstu, {0,0,0}, id);
write_byte(0); 
write_string(msg); 
message_end();
} 
return PLUGIN_CONTINUE;
}
public client_putinserver( id )
{
ClearUserReversed(id)
CheckForward()
}
public client_connect(id)
{
count_puke[id]=1
}
public client_disconnect(id)
{
reset_hud(id)
ClearUserReversed(id)
CheckForward()
}
public LosujMinus(id)
{
switch(random_num(1,20)){
case 1: c_ilosc[id] -= 2;
case 2: c_ilosc[id] -= 1;
case 3: c_ilosc[id] -= 1;
case 4: c_ilosc[id] -= 1;
case 5: c_ilosc[id] -= 2;
case 6: c_ilosc[id] -= 2;
case 7: c_ilosc[id] -= 1;
case 8: c_ilosc[id] -= 1;
case 9: c_ilosc[id] -= 2;
case 10: c_ilosc[id] -= 1;
case 11: c_ilosc[id] -= 2;
case 12: c_ilosc[id] -= 1;
case 13: c_ilosc[id] -= 2;
case 14: c_ilosc[id] -= 2;
case 15: c_ilosc[id] -= 2;
case 16: c_ilosc[id] -= 2;
case 17: c_ilosc[id] -= 1;
case 18: c_ilosc[id] -= 2;
case 19: c_ilosc[id] -= 1;
case 20: c_ilosc[id] -= 2;
}
}
public plugin_precache() 
{ 
precache_sound("misc/ziolo/ble.wav"); 
precache_sound("misc/ziolo/ble2.wav");
 
precache_model("models/ziolo/hats.mdl");
 
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gign/gign.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gsg9/gsg9.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/sas/sas.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/urban/urban.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/vip/vip.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/arctic/arctic.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/guerilla/guerilla.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/leet/leet.mdl");
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/terror/terror.mdl"); 
return PLUGIN_CONTINUE;
}

  • +
  • -
  • 0

#4 Amaroq

    AMXX Contributor

  • Użytkownik

Reputacja: 304
Wszechpomocny

  • Postów:380
  • GG:
  • Steam:steam
  • Imię:Karol
  • Lokalizacja:Łódź
Offline

Napisano 28.09.2013 16:29

Proszę

Załączone pliki


Użytkownik FD_GODPL edytował ten post 28.09.2013 16:31

  • +
  • -
  • 1
Plugin informujący o zabiciu zakładnika (wysyła do admina na say nick gracza oraz zapisuje o tym logi) - Hostage Killer v1.3.3
DarkGL to mój autorytet.

#5 Heros1213

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:36
  • Imię:Maciek
  • Lokalizacja:POLSKA
Offline

Napisano 28.09.2013 16:35

Dalej coś nie tak 

L 09/28/2013 - 17:31:59: Start of error session.
L 09/28/2013 - 17:31:59: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130928.log")
L 09/28/2013 - 17:31:59: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")

  • +
  • -
  • 0

#6 szelbi

    Hero

  • Power User

Reputacja: 373
Wszechpomocny

  • Postów:1 032
  • Steam:steam
  • Imię:Norbert
  • Lokalizacja:Częstochowa
Offline

Napisano 28.09.2013 16:52

 

Nie masz pliku amxx w plugins... Możliwe, że nie uwzględniłeś wielkość liter... ;)

 


  • +
  • -
  • 1

#7 Heros1213

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:36
  • Imię:Maciek
  • Lokalizacja:POLSKA
Offline

Napisano 29.09.2013 07:54

Zmieniłem 1 litere z dużej na małą to mam teraz takie errory 

L 09/29/2013 - 00:01:02: Start of error session.
L 09/29/2013 - 00:01:02: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 00:01:02: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 00:16:13: Start of error session.
L 09/29/2013 - 00:16:13: Info (map "fy_new_pool_day2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 00:16:13: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 00:56:25: Start of error session.
L 09/29/2013 - 00:56:25: Info (map "cs_assault") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 00:56:25: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 01:14:37: Start of error session.
L 09/29/2013 - 01:14:37: Info (map "de_dust") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 01:14:37: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 01:32:48: Start of error session.
L 09/29/2013 - 01:32:48: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 01:32:48: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 01:50:59: Start of error session.
L 09/29/2013 - 01:50:59: Info (map "de_nuke") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 01:50:59: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 02:09:11: Start of error session.
L 09/29/2013 - 02:09:11: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 02:09:11: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 02:27:22: Start of error session.
L 09/29/2013 - 02:27:22: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 02:27:22: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 02:45:33: Start of error session.
L 09/29/2013 - 02:45:33: Info (map "de_dust2_long") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 02:45:33: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 03:03:45: Start of error session.
L 09/29/2013 - 03:03:45: Info (map "de_kabul32") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 03:03:45: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 03:21:56: Start of error session.
L 09/29/2013 - 03:21:56: Info (map "de_nuke") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 03:21:56: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 03:40:07: Start of error session.
L 09/29/2013 - 03:40:07: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 03:40:07: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 03:58:18: Start of error session.
L 09/29/2013 - 03:58:18: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 03:58:18: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 04:16:29: Start of error session.
L 09/29/2013 - 04:16:29: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 04:16:29: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 04:34:41: Start of error session.
L 09/29/2013 - 04:34:41: Info (map "fy_new_pool_day2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 04:34:41: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 04:52:53: Start of error session.
L 09/29/2013 - 04:52:53: Info (map "cs_militia") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 04:52:53: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 05:11:04: Start of error session.
L 09/29/2013 - 05:11:04: Info (map "cs_italy") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 05:11:04: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 05:29:16: Start of error session.
L 09/29/2013 - 05:29:16: Info (map "aim_headshot") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 05:29:16: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 05:47:28: Start of error session.
L 09/29/2013 - 05:47:28: Info (map "de_nuke") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 05:47:28: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 06:05:39: Start of error session.
L 09/29/2013 - 06:05:39: Info (map "de_aztec") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 06:05:39: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 06:23:50: Start of error session.
L 09/29/2013 - 06:23:50: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 06:23:50: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 06:42:02: Start of error session.
L 09/29/2013 - 06:42:02: Info (map "cs_italy") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 06:42:02: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 07:00:13: Start of error session.
L 09/29/2013 - 07:00:13: Info (map "fy_new_pool_day2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 07:00:13: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 07:18:25: Start of error session.
L 09/29/2013 - 07:18:25: Info (map "de_eldorado") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 07:18:25: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 07:36:37: Start of error session.
L 09/29/2013 - 07:36:37: Info (map "de_kabul32") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 07:36:37: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 07:54:49: Start of error session.
L 09/29/2013 - 07:54:49: Info (map "cs_office") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 07:54:49: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 08:13:01: Start of error session.
L 09/29/2013 - 08:13:01: Info (map "fy_aztec") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 08:13:01: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 08:31:12: Start of error session.
L 09/29/2013 - 08:31:12: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 08:31:12: [AMXX] Plugin file open error (plugin "Ziolo_v.1.5.5.amxx")
L 09/29/2013 - 08:49:23: Start of error session.
L 09/29/2013 - 08:49:23: Info (map "cs_italy") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 08:49:23: [AMXX] Plugin file open error (plugin "ziolo_v1.5.5-fix")
L 09/29/2013 - 08:49:32: Start of error session.
L 09/29/2013 - 08:49:32: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130929.log")
L 09/29/2013 - 08:49:32: [AMXX] Plugin file open error (plugin "ziolo_v1.5.5-fix")

A to wycinek z plugins.ini

ziolo_v1.5.5-fix.amxx ;ziolo
 

Użytkownik Heros1213 edytował ten post 29.09.2013 07:54

  • +
  • -
  • 0

#8 xenos

    Wszechobecny

  • Użytkownik

Reputacja: 216
Profesjonalista

  • Postów:467
  • GG:
  • Imię:Konrad
  • Lokalizacja:Rzeszów
Offline

Napisano 29.09.2013 08:24

skróć sobie nazwe pluginu (by nie zawierała tylu kropek)

i by w plugins było przykladowo ziolo.amxx
i w plugins ini tak samo ziolo.amxx(wielkość liter jest ważna) 


  • +
  • -
  • 1
"Jeśli potrafię to pomogę, jeśli nie potrafię to wskaże drogę którą trzeba dążyć by znaleźć odpowiedz" 

Pluginy:
Szukanie Aktywnych Banów w AmxBansie
Drop After Death
Kto postawił mine

#9 Heros1213

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:36
  • Imię:Maciek
  • Lokalizacja:POLSKA
Offline

Napisano 29.09.2013 11:12

Wszystko działa okej dzięki , można zamknąć 


  • +
  • -
  • 0




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

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