It is currently 23 Feb 2019 23:29



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 3 posts ] 
 Knife Menu Furien [rezolvat] 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 10 Jan 2019 02:21
Posts: 35
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Plugin Cerut: Meniu de cutite pentru furien
Descriere (adica ce face el mai exact): Sa fie cate 3 cutite la Player si 3 cutite la VIP (la vip sa aibe DMG 2X mai mare)

* Sa fie si cu p_knife si v_knife * sa vada si CT ce cutit are furienu in mana

Serverul ruleaza (HLDS/ReHLDS): ReHLDS
Versiune AMX Mod X: -
Modul Serverului: Furien

Multumesc anticipat


Last edited by Radu eXtream on 28 Jan 2019 02:20, edited 2 times in total.

Marcat ca rezolvat.



27 Jan 2019 16:15
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1964
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
| Afiseaza codul
Code:
#include <amxmodx>
#include <fun>
#include <fakemeta>

#pragma tabsize 0

new g_knife[33];

//VIP
new const VIP_v_km[][] =//DOAR MODELELE VIP CU V_
{
   "models/knife/v_vk1.mdl",
   "models/knife/v_vk2.mdl",
   "models/knife/v_vk3.mdl"
}
new const VIP_p_km[][] =//DOAR MODELELE VIP CU P_
{
   "models/knife/p_vk1.mdl",
   "models/knife/p_vk2.mdl",
   "models/knife/p_vk3.mdl"
}
//--
new const PL_v_km[][] =//DOAR MODELELE NORMALE CU V_
{
   "models/knife/v_pk1.mdl",
   "models/knife/v_pk2.mdl",
   "models/knife/v_pk3.mdl"
}
new const PL_p_km[][] =//DOAR MODELELE NORMALE CU P_
{
   "models/knife/p_pk1.mdl",
   "models/knife/p_pk2.mdl",
   "models/knife/p_pk3.mdl"
}

#define VIP_FLAG ADMIN_LEVEL_H
#define is_user_vip(%0)   (get_user_flags(%0)&VIP_FLAG)

public plugin_init() {
   register_clcmd("say /ks", "cmd_knife")
   register_clcmd("say_team /ks", "cmd_knife")
   
   register_event("CurWeapon","Event_CurWeapon","be","1=1");
}

public plugin_precache()
{
   for (new i; i <= sizeof VIP_v_km; i++)   precache_model(VIP_v_km[i]);
   for (new i; i <= sizeof VIP_p_km; i++)   precache_model(VIP_p_km[i]);
   
   for (new i; i <= sizeof PL_v_km; i++)   precache_model(PL_v_km[i]);
   for (new i; i <= sizeof PL_p_km; i++)   precache_model(PL_p_km[i]);
}

public client_putinserver(client)   if(is_user_connected(client)&&!is_user_bot(client))   g_knife[client] = 0;

public Event_CurWeapon(client){
   if (read_data(2) == CSW_KNIFE&&is_user_alive(client))
   {
      if(is_user_vip(client))
      {
         switch(g_knife[client])
         {
            case 0:
            {
               set_pev(client,pev_viewmodel2,VIP_v_km[0]);
               set_pev(client,pev_weaponmodel2,VIP_p_km[0]);
            }
            case 1:
            {
               set_pev(client,pev_viewmodel2,VIP_v_km[1]);
               set_pev(client,pev_weaponmodel2,VIP_p_km[1]);
            }
            case 2:
            {
               set_pev(client,pev_viewmodel2,VIP_v_km[2]);
               set_pev(client,pev_weaponmodel2,VIP_p_km[2]);
            }
         }
      }
      else
      {
         switch(g_knife[client])
         {
            case 3:
            {
               set_pev(client,pev_viewmodel2,PL_v_km[0]);
               set_pev(client,pev_weaponmodel2,PL_p_km[0]);
            }
            case 4:
            {
               set_pev(client,pev_viewmodel2,PL_v_km[1]);
               set_pev(client,pev_weaponmodel2,PL_p_km[1]);
            }
            case 5:
            {
               set_pev(client,pev_viewmodel2,PL_v_km[2]);
               set_pev(client,pev_weaponmodel2,PL_p_km[2]);
            }
         }
      }
   }
}

public cmd_knife(id){
   if(is_user_alive(id))
   {
      new knife = menu_create("Select your Knife", "cmd_knife_h");
      
      //VIP
      menu_additem(knife,"ASDASDSA","1",is_user_vip(id));
      menu_additem(knife,"ASDASDSA","2",is_user_vip(id));
      menu_additem(knife,"ASDASDSA","3",is_user_vip(id));
      //-----
      menu_additem(knife,"ASDASDSA","4");
      menu_additem(knife,"ASDASDSA","5");
      menu_additem(knife,"ASDASDSA","6");
      
      
      menu_display(id,knife);
   }
}

public cmd_knife_h(client, knife, item)
{
   if(item == MENU_EXIT||!is_user_alive(client))
   {
      menu_destroy(knife);
      return;
   }
   
   g_knife[client] = item;
   give_item(client,"weapon_knife")
   Event_CurWeapon(client)
   engclient_cmd(client,"weapon_knife")
}


27 Jan 2019 21:23
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0

Joined: 10 Jan 2019 02:21
Posts: 35
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Mersi


28 Jan 2019 00:29
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: eSeTY., glmmlg and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group