Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Admins model,prosze zajrzyj tutaj.


  • Zamknięty Temat jest zamknięty
4 odpowiedzi w tym temacie

#1 Over

    Życzliwy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:30
  • GG:
  • Lokalizacja:Wieluń / Biała
Offline

Napisano 17.01.2010 03:22

Witam ponownie. Próbowałem przerobić sobie ten plugin na flage " r - custom level F" ale nie dałem rady. Pomoże ktoś ?

/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 
## 
## 
##########################################################################*/	


#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        register_plugin("AMX Admin Model", "1.1.1", "whitemike")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/admin_ct/admin_ct.mdl")
        precache_model("models/player/admin_te/admin_te.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "admin_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "admin_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}


Użytkownik Over edytował ten post 17.01.2010 03:35

  • +
  • -
  • 0

#2 honey

    Wszechmogący

  • Zbanowany

Reputacja: 124
Zaawansowany

  • Postów:606
  • Steam:steam
  • Lokalizacja:n / a
Offline

Napisano 17.01.2010 07:18

/*########################################################################## 

## 

## -- www.SteamTools.net 

## ___ _____ ___ ___ _ __ _ ___ ___ _____ _ 

## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | | 

## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | | 

## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | | 

## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___ 

## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____| 

## 

## |__ |__ o _|_ ___ __ __ o |__, ___ 

## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_ 

## | 

## 

## Originated as a simple idea back in 2004, it was forgotten due to 

## lack of my 'Small' coding skills. However I have progressed in recent 

## months and somehow crossed that old post with this concept in it. So 

## naturally I challenged myself to see if I could do it, and voila! I 

## could <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 

## 

## Once you join, you play a normal person for the first round, and for 

## all remaining rounds your CT or TE models are custom. They now read 

## "ADMIN" on front and back, and also have small "A" patches on the arms. 

## I designed these models myself, it's very easy, just bring the textures 

## into photoshop, tweak out, and replace. 

## 

## Enjoy! 

## 

## 

## CHANGELOG 

##------------------------------------------------------------------------ 

## 2) v1.1.1 - Fixed missing event 

## 1) v1.1.0 - Fixed VIP and other model bugs 

## 

## 

## INSTALLATION 

##------------------------------------------------------------------------ 

## 1) Unzip (which you may have done already) 

## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 

## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 

## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 

## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 

## 

## 

## 

## THE CVARs 

##------------------------------------------------------------------------ 

## 

## No CVARs for this plugin <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 

## 

## 

##########################################################################*/ 





#include <amxmodx>

#include <amxmisc>

#include <cstrike>



public plugin_init() {

 register_plugin("AMX Admin Model", "1.1.1", "whitemike")

 register_event("ResetHUD", "resetModel", "b")

 return PLUGIN_CONTINUE

}



public plugin_precache() {

 precache_model("models/player/admin_ct/admin_ct.mdl")

 precache_model("models/player/admin_te/admin_te.mdl")



 return PLUGIN_CONTINUE

}



public resetModel(id, level, cid) {

 if (get_user_flags(id) & ADMIN_LEVEL_F) {

 new CsTeams:userTeam = cs_get_user_team(id)

 if (userTeam == CS_TEAM_T) {

 cs_set_user_model(id, "admin_te")

 }

 else if(userTeam == CS_TEAM_CT) {

 cs_set_user_model(id, "admin_ct")

 }

 else {

 cs_reset_user_model(id)

 }

 }



 return PLUGIN_CONTINUE

}







#3 Over

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:30
  • GG:
  • Lokalizacja:Wieluń / Biała
Offline

Napisano 17.01.2010 13:25

Dzięki! Mam problem chciałem zmienić te ścieżki z modelami, ale nie dałem rady, dasz rade je zmienić na models/player/overmodel_tt i models/player/overmodel_ct albo podobnie, tylko żeby były inne niż te. Bardzo mi zależy
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")

Tutaj plugin, w który nie daje rady zmienić ścieżek.

/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> 
## 
## 
##########################################################################*/	


#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        register_plugin("AMX Admin Model", "1.1.1", "whitemike")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/admin_ct/admin_ct.mdl")
        precache_model("models/player/admin_te/admin_te.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "admin_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "admin_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}


Użytkownik Over edytował ten post 17.01.2010 13:25

  • +
  • -
  • 0

#4 mgr inż. Pavulon

    C35H60Br2N2O4

  • Przyjaciel

Reputacja: 1725
Godlike

  • Postów:6881
  • Steam:steam
  • Imię:Konrad
  • Lokalizacja:Koniecpol
Offline

Napisano 17.01.2010 13:28

Nazwa folderu w którym jest model musi być taka sama jak model.
Czyli dla modelu overmodel_tt.mdl dajesz ścieżkę models/player/overmodel_tt/overmodel_tt.mdl
  • +
  • -
  • 0

#5 Over

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:30
  • GG:
  • Lokalizacja:Wieluń / Biała
Offline

Napisano 17.01.2010 13:33

Podziękował :) To ja zabieram sie do pracy :]
  • +
  • -
  • 0




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

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