Serwery wiaderko.com Zwiń / Rozwiń kategorię

HashJama [TP] 193.33.176.148:27015 | tp.wiaderko.com status serwera HashJama [TP] połącz

HashJama CS:GO [DM] 193.33.176.53:27015 | dm.wiaderko.com status serwera HashJama CS:GO [DM] połącz

HashJama CS:GO [FFA] 193.33.176.15:27015 | ffa.wiaderko.com status serwera HashJama CS:GO FFA [FFA] połącz

HashJama [TeamSpeak 3] 62.210.99.220:9987 | ts.wiaderko.com status serwera HashJama [TP ELITE] 62.210.99.220:27015 połącz

SPONSOR:
pukawka.pl

Nabór na JUNIOR ADMINA forum - Więcej informacji > Klik <
Pokaż wyniki od 1 do 7 z 7
  1. #1
    Lamka Awatar layka_LUBII
    Dołączył
    Sep 2012
    Wiek
    19
    Posty
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Knife model plugin

    Hello I need do plugin on select knife model
    Knife menu for CT and T team

    T menu

    1.Normal Knife
    2-White Knife
    3.Blood Knife

    CT menu


    1.Normalni Knife
    2.Gold Knife
    3.Black Knife

    register_clcmd( "say /knife", "display_knife") //Otvara Knife menu

    Thank you

  2. #2
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    25
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  3. #3
    Lamka Awatar layka_LUBII
    Dołączył
    Sep 2012
    Wiek
    19
    Posty
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Knife model plugin

    I know change knife model and I want have a menu on select knife model
    ______________________________________________________________
    This plugin working but when I am Terorist and select is knife model and transform Conter-Terorist team that not show knife :D
    HELP ME !!



    Kod:
    public display_knife(id) 
    {
             if(get_user_team(id) == 1)
             {
       if(HasSuperKnife[id] == false)
                    {
                    new menuBody[512]
                    add(menuBody, 511, "\rKnife Skiny \w(\r/knife\w)^n^n")
                    add(menuBody, 511, "\r1.^t\wNormalni Knife^n")
                    add(menuBody, 511, "\r2.^t\wSilver Knife^n")
                    add(menuBody, 511, "\r3.^t\wBlood Knife^n^n")
                    add(menuBody, 511, "\r0.^t\wExit^n")
               
                    new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
                    show_menu(id, keys, menuBody, -1, "Knife Mod")
                    }
                    else
                    {
                    client_print(id, print_center, "Nemuzes si vybrat knife skyni kdyz mas SuperKnife!")
                    }
    }
    
    
    else if(get_user_team(id) == 2)
    {
                    new menuBody[512]
                    add(menuBody, 511, "\rKnife Skyni \w(\r/knife\w)^n^n")
                    add(menuBody, 511, "\r1.^t\wNormalni Knife^n")
                    add(menuBody, 511, "\r2.^t\wGold Knife^n")
                    add(menuBody, 511, "\r3.^t\wBlack Knife^n^n")
                    add(menuBody, 511, "\r0.^t\wExit^n")
               
                    new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
                    show_menu(id, keys, menuBody, -1, "Knife Mod")
                    }
    }
    
    
    public knifemenu(id, key) {
                if(get_user_team(id) == 1)
                {
                    switch(key)
                    {
                                    case 0: SetKnife(id , 4)
                                    case 1: SetKnife(id , 0)
                                    case 2: SetKnife(id , 1)
                                    default: return PLUGIN_HANDLED
                    }
                }
                if(get_user_team(id) == 2)
                {
                    switch(key)
                    {
                                    case 0: SetKnife(id , 4)
                                    case 1: SetKnife(id , 2)
                                    case 2: SetKnife(id , 3)
                                    default: return PLUGIN_HANDLED
                    }
                }
                return PLUGIN_HANDLED
    }
    
    public SetKnife(id , Knife) {
                    knife_model[id] = Knife
               
                    new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
                    if ( Weapon != CSW_KNIFE )
                                    return PLUGIN_HANDLED
               
                    new vModel[56]
               
                    switch(Knife)
                    {
                                    case 0: {
                     if(get_user_team(id) == 1)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_furien1.mdl")
                      }
                                    }
                                    case 1: {
                     if(get_user_team(id) == 1)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_furien2.mdl")
                      }
                                    }
                                    case 2: {
                     if(get_user_team(id) == 2)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_anti1.mdl")
                            }
                                    }
                                    case 3: {
                                                    {
                     if(get_user_team(id) == 2)
                                                    format(vModel,55,"models/knife-mod/v_anti2.mdl")
                      }
                                    }
                 case 4: {
                                                    {
                                                    format(vModel,55,"models/v_knife.mdl")
                      }
                                    }
                    }
               
                    entity_set_string(id, EV_SZ_viewmodel, vModel)
               
                    return PLUGIN_HANDLED; 
    }
    
    public CurWeapon(id)
    {
                    SetKnife(id, knife_model[id])             
    }
    Ostatnio edytowane przez layka_LUBII ; 30-07-2013 o 10:15

  4. #4
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    25
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Knife model plugin

    Post complete code.
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  5. #5
    Lamka Awatar layka_LUBII
    Dołączył
    Sep 2012
    Wiek
    19
    Posty
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Knife model plugin

    HELLPP MEE

    Kod:
    /* Plugin generated by AMXX-Studio */
    
    #include <amxmodx>
    #include <amxmisc>
    #include <engine>
    #include <cstrike>
    #include <fun>
    
    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "author"
    
    new knife_model[33]
    new g_Menu 
    
    public plugin_init() {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	
    	register_event("CurWeapon","CurWeapon","be","1=1")
    	register_clcmd("say /knife", "display_knife")
    	g_Menu = register_menuid("Knife Mod")
    	register_menucmd(g_Menu, 1023, "knifemenu")
    }
    
    
    
    public display_knife(id) 
    {
             if(get_user_team(id) == 1)
             {
                    new menuBody[512]
                    add(menuBody, 511, "\rKnife Skiny \w(\r/knife\w)^n^n")
                    add(menuBody, 511, "\r1.^t\wNormalni Knife^n")
                    add(menuBody, 511, "\r2.^t\wSilver Knife^n")
                    add(menuBody, 511, "\r3.^t\wBlood Knife^n^n")
                    add(menuBody, 511, "\r0.^t\wExit^n")
               
                    new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
                    show_menu(id, keys, menuBody, -1, "Knife Mod")
    }
    
    
    else if(get_user_team(id) == 2)
    {
                    new menuBody[512]
                    add(menuBody, 511, "\rKnife Skyni \w(\r/knife\w)^n^n")
                    add(menuBody, 511, "\r1.^t\wNormalni Knife^n")
                    add(menuBody, 511, "\r2.^t\wGold Knife^n")
                    add(menuBody, 511, "\r3.^t\wBlack Knife^n^n")
                    add(menuBody, 511, "\r0.^t\wExit^n")
               
                    new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )
                    show_menu(id, keys, menuBody, -1, "Knife Mod")
                    }
    }
    
    
    public knifemenu(id, key) {
    				if(get_user_team(id) == 1)
    				{
                    switch(key)
                    {
                                    case 0: SetKnife(id , 4)
                                    case 1: SetKnife(id , 0)
                                    case 2: SetKnife(id , 1)
                                    default: return PLUGIN_HANDLED
                    }
    				}
    				if(get_user_team(id) == 2)
    				{
                    switch(key)
                    {
                                    case 0: SetKnife(id , 4)
                                    case 1: SetKnife(id , 2)
                                    case 2: SetKnife(id , 3)
                                    default: return PLUGIN_HANDLED
                    }
    				}
    				return PLUGIN_HANDLED
    }
    
    public SetKnife(id , Knife) {
                    knife_model[id] = Knife
               
                    new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
                    if ( Weapon != CSW_KNIFE )
                                    return PLUGIN_HANDLED
               
                    new vModel[56]
               
                    switch(Knife)
                    {
                                    case 0: {
    					  if(get_user_team(id) == 1)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_furien1.mdl")
    					   }
                                    }
                                    case 1: {
    					  if(get_user_team(id) == 1)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_furien2.mdl")
    					   }
                                    }
                                    case 2: {
    					  if(get_user_team(id) == 2)
                                                    {
                                                    format(vModel,55,"models/knife-mod/v_anti1.mdl")
    				            }
                                    }
                                    case 3: {
                                                    {
    					  if(get_user_team(id) == 2)
                                                    format(vModel,55,"models/knife-mod/v_anti2.mdl")
    					   }
                                    }
    			    case 4: {
                                                    {
                                                    format(vModel,55,"models/v_knife.mdl")
    					   }
                                    }
                    }
               
                    entity_set_string(id, EV_SZ_viewmodel, vModel)
               
                    return PLUGIN_HANDLED; 
    }
    
    public CurWeapon(id)
    {
                    SetKnife(id, knife_model[id])             
    }

  6. #6
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    25
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Knife model plugin

    Kod php:
    knife_model[id] = Knife 
    You're using switch for that. There's your problem.
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  7. #7
    Lamka Awatar layka_LUBII
    Dołączył
    Sep 2012
    Wiek
    19
    Posty
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Knife model plugin

    Please all code

Podobne wątki

  1. Plugin na knife
    By dawid35456 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 28-02-2011, 17:47
  2. [Steam & Non Steam] Model lub plugin HLTV
    By Gaznik in forum Problemy z CS 1.6 oraz CS:Condition Zero
    Odpowiedzi: 0
    Ostatni post / autor: 16-01-2011, 20:53
  3. plugin model dziewczyny
    By cooldarek in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 30-06-2009, 13:51
  4. Knife Restart! Pomozcie napisac plugin :D
    By Kolorszczak in forum Amx Mod X
    Odpowiedzi: 4
    Ostatni post / autor: 30-01-2008, 17:30
  5. Player Model - plugin
    By SoulsHunter in forum Amx Mod X
    Odpowiedzi: 3
    Ostatni post / autor: 14-07-2007, 00:44

Odwiedzający poszukiwali:

knife model .amxx

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •