User
Pass
2FA
 
 

Problema Sv

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone
Author Message875
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 20-08-2015, 13:18:03 | Translate post to: ... (Click for more languages)

Dece scrie de cum incepe runda Furien pot plata boomba si daca ma duc la X scri ca boomba poate fi plantata in ultimele 60sec se poate sa fie din pluginul de baza? Eu vreu ca boomba sa fie platata in ultimele 60sec si sa scrie atunci ca boomba poate fi plantata.




Si vreu un plugin pentru events Happy Hour sa faca toate preturile de la shop la jumatatate. Trebuie sa va las ceva pt asta?

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
-P!C@-

[Simply Normal]



Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086, Topics: 1601
Location: Constanta

Reputation: 1870.3
Votes: 781

Post Posted: 20-08-2015, 20:06:04 | Translate post to: ... (Click for more languages)

Poftim:
Spoiler:




0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 20-08-2015, 20:11:13 | Translate post to: ... (Click for more languages)

Rezolvat. SI celalalt?
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 20-08-2015, 20:37:12 | Translate post to: ... (Click for more languages)

PT celalalte tr shop-ul.


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 20-08-2015, 20:47:37 | Translate post to: ... (Click for more languages)

Poftim:
Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "Furien Shop Menu"
#define VERSION "0.1"
#define AUTHOR "freakz"

// -- || Take Damage
#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )
new g_iMaxPlayers;

// -- || Bool's
new bool:superknife [ 33 ];

// -- || Constante
new const v_superknife [ 66 ] = "models/v_sk.mdl";   //
new const p_superknife [ 64 ] = "models/p_sk.mdl";   //

new const PICK_AMMO[]                   = "items/9mmclip1.wav";

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   // -- || Chat
   register_clcmd( "say shop", "ShopCmd");
   register_clcmd( "say /shop", "ShopCmd");
   
   register_clcmd( "say_team shop", "ShopCmd");
   register_clcmd( "say_team /shop", "ShopCmd");
   
   // -- || Event's
   register_event("DeathMsg", "eDeath", "a")
   register_event ( "CurWeapon", "CurrWeapon", "be", "1=1" );
   
   // -- || HamSandwich
   RegisterHam ( Ham_TakeDamage, "player", "Player_TakeDamage" );
   RegisterHam ( Ham_Spawn, "player", "Spawn", true );
   
   // -- || TakeDamage
   g_iMaxPlayers = get_maxplayers (    );
   // Add your code here...
}

public eDeath ( ) {
   
   if ( superknife [ read_data ( 2 ) ] ) {
      
      superknife [ read_data ( 2 ) ] = false;
   }
}

public plugin_precache ( ) {
   
   //Super-Knife
   precache_model ( v_superknife );
   precache_model ( p_superknife );
   precache_sound(PICK_AMMO);
}

public client_disconnect ( id ) {
   superknife[ id ] = false;
}
public Spawn( id ) {
   
   if(get_user_team(id) == 1) {
      fm_strip_user_weapons(id) ;
      fm_give_item(id, "weapon_knife") ;
      fm_give_item(id, "weapon_hegrenade");
      
      fm_give_item(id, "weapon_flashbang");
      cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
      
      fm_give_item(id, "weapon_smokegrenade");   
   }
   if(get_user_team(id) == 2) {
      fm_strip_user_weapons(id) ;
      fm_give_item(id, "weapon_knife") ;
      fm_give_item(id, "weapon_hegrenade");
      
      fm_give_item(id, "weapon_smokegrenade");
      
      superknife[ id ] = false;
   }
   
}
public CurrWeapon ( id ) {
   
   if ( superknife [ id ] && get_user_weapon ( id ) == CSW_KNIFE ) {
      
      set_pev ( id, pev_viewmodel2, v_superknife );
      set_pev ( id, pev_weaponmodel2, p_superknife );
   }
}
public ShopCmd(id) {
   
   new iMoney = cs_get_user_money(id);
   switch(get_user_team(id))
   {
      case 1:
      {
         new Titlu[101];
         formatex(Titlu, 100, "\yFurien Shop^n\yBani Tai:\r%d$", iMoney);
         new ShopMenu = menu_create(Titlu, "weaponshandler"); 
         
         if(iMoney < 10000) {
            menu_additem(ShopMenu, "Super Knife   \d10000$", "1", 0);
         }
         else
         {
            menu_additem(ShopMenu, "Super Knife   \y9000$", "1", 0);
         }
         if(iMoney < 3000) {
            menu_additem(ShopMenu, "\r+50 \wHP   \d3000$", "2", 0); 
         }
         else
         {
            menu_additem(ShopMenu, "\r+50 \wHP   \y3000$", "2", 0); 
         }
         if(iMoney < 500) {
            menu_additem(ShopMenu, "\r+50\w AP   \d500$", "3", 0);
         }
         else
         {
            menu_additem(ShopMenu, "\r+50\w AP   \y500$", "3", 0);   
         }
         if(iMoney < 3000) {
            menu_additem(ShopMenu, "He Grenade   \d3000$", "4", 0);
         }
         else
         {
            menu_additem(ShopMenu, "He Grenade   \y3000$", "4", 0);
         }
         
         menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL); 
         
         menu_display(id, ShopMenu, 0);
      }
      case 2:
      {
         new Titlu[101];
         formatex(Titlu, 100, "\yAnti-Furien Shop^n\yBani Tai:\r%d$", iMoney);
         new ShopMenu = menu_create( Titlu, "weaponshandler"); 
         
         if(iMoney < 500) {
            menu_additem(ShopMenu, "Defuse KIT   \d500$", "1", 0);
         }
         else
         {
            menu_additem(ShopMenu, "Defuse KIT   \y500$", "1", 0);
         }
         if(iMoney < 3000) {
            menu_additem(ShopMenu, "\r+50 \wHP   \d3000$", "2", 0);
         }
         else
         {
            menu_additem(ShopMenu, "\r+50 \wHP   \y3000$", "2", 0); 
         }
         if(iMoney < 500) {
            menu_additem(ShopMenu, "\r+50\w AP   \d500$", "3", 0);
         }
         else
         {
            menu_additem(ShopMenu, "\r+50\w AP   \y500$", "3", 0); 
         }
         if(iMoney < 6000) {
            menu_additem(ShopMenu, "He Grenade   \d6000$", "4", 0);
         }
         else
         {
            menu_additem(ShopMenu, "He Grenade   \y6000$", "4", 0); 
         }
         
         menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL); 
         
         menu_display(id, ShopMenu, 0);
      }
   }
   return 1;
}

public weaponshandler(id, ShopMenu, item) 
   { 
   if( item == MENU_EXIT ) 
      { 
      menu_destroy(ShopMenu); 
      return PLUGIN_HANDLED; 
   } 
   new data[6], iName[64]; 
   new access, callback; 
   menu_item_getinfo(ShopMenu, item, access, data,5, iName, 63, callback); 
   new key = str_to_num(data); 
   
   switch(key) 
   { 
      case 1: 
      { 
         switch(get_user_team(id))
         {
            case 1:
            {
               if(superknife[ id ]) {
                  ColorChat(id, "^x04[Shop]^x01 Ai deja super knife.");
                  return 1;
               }
               else
               {
                  new iMoney = cs_get_user_money(id) - 10000;
                  if(iMoney < 0) {
                     ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
                  }
                  else
                  {
                     emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                     superknife[ id ] = true;
                     CurrWeapon(id);
                     cs_set_user_money(id, iMoney);
                  }
               }
            }
            case 2:
            {
               new iMoney = cs_get_user_money(id) - 500;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                  fm_give_item ( id, "item_thighpack" );
                  cs_set_user_money(id, iMoney);
               }
            }
         }
         
      }
      case 2:   
      { 
         switch(get_user_team(id))
         {
            case 1:
            {
               new iMoney = cs_get_user_money(id) - 3000;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  new iHealth = get_user_health(id);
                  if(iHealth >= 250) {
                     ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de hp.");
                  }
                  else
                  {
                     emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                     fm_set_user_health(id, iHealth + 50);
                     cs_set_user_money(id, iMoney);
                  }
               }
            }
            case 2:
            {
               new iMoney = cs_get_user_money(id) - 3000;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  new iHealth = get_user_health(id);
                  if(iHealth >= 250) {
                     ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de hp.");
                  }
                  else
                  {
                     emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                     fm_set_user_health(id, iHealth + 50);
                     cs_set_user_money(id, iMoney);
                  }
               }
            }
         } 
         
      } 
      case 3:   
      { 
         switch(get_user_team(id))
         {
            case 1:
            {
               new iMoney = cs_get_user_money(id) - 500;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  new iArmor = get_user_armor(id);
                  if(iArmor >= 200) {
                     ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de ap.");
                  }
                  else
                  {
                     emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                     fm_set_user_armor(id, iArmor + 50);
                     cs_set_user_money(id, iMoney);
                  }
               }
            }
            case 2:
            {
               new iMoney = cs_get_user_money(id) - 500;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  new iArmor = get_user_armor(id);
                  if(iArmor >= 200) {
                     ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de ap.");
                  }
                  else
                  {
                     emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                     fm_set_user_armor(id, iArmor + 50);
                     cs_set_user_money(id, iMoney);
                  }
               }
            }
         } 
         
      } 
      case 4: 
      { 
         switch(get_user_team(id))
         {
            case 1:
            {
               new iMoney = cs_get_user_money(id) - 3000;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                  fm_give_item ( id, "weapon_hegrenade" );
                  cs_set_user_money(id, iMoney);
               }
            }
            case 2:
            {
               new iMoney = cs_get_user_money(id) - 6000;
               if(iMoney < 0) {
                  ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani.");
               }
               else
               {
                  emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
                  fm_give_item ( id, "weapon_hegrenade" );
                  cs_set_user_money(id, iMoney);
               }
            }
         } 
         
      }
   } 
   
   
   
   menu_destroy(ShopMenu); 
   return PLUGIN_HANDLED; 
}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits )  {
   if ( IsPlayer ( iAttacker ) ) {
      if( iInflictor == iAttacker && superknife [ iAttacker ] && is_user_alive( iAttacker ) && get_user_weapon( iAttacker ) == CSW_KNIFE && get_user_team( iAttacker ) == 1 ) {
         SetHamParamFloat( 4, fDamage * 3.0);
         return HAM_HANDLED;
      }
   }
   
   return HAM_IGNORED;
}

stock ColorChat(const id, const input[], any:...) {
   new count = 1, players[32];
   static msg[191];
   vformat(msg, 190, input, 3);
   
   replace_all(msg, 190, "!x04", "^4");
   replace_all(msg, 190, "!x01", "^1");
   replace_all(msg, 190, "!x03", "^3");
   
   if(id) players[0] = id;
   else get_players(players, count, "ch"); {
      for(new i = 0; i < count; i++) {
         if(is_user_connected(players[i])) {
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
   }
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 23-08-2015, 23:12:31 | Translate post to: ... (Click for more languages)

Cineva? Ti-am dat shopu.
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 23-08-2015, 23:37:21 | Translate post to: ... (Click for more languages)

Zi intervalul cand sa fie la jumatate -_-.


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 23-08-2015, 23:39:27 | Translate post to: ... (Click for more languages)

Intre orele 12:00 si 13:00
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 23-08-2015, 23:41:23 | Translate post to: ... (Click for more languages)

Verifica pm-ul le testezi si imi spui.


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by destroi112, 06 September 2015 12:22



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone  


The time now is 23-06-2025, 10:12:42
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password