Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
artifik
- Membru, skill 0
- Posts: 52
- Joined: 13 Jun 2012, 11:38
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 9 times
- Been thanked: 1 time
-
Contact:
13 May 2013, 11:18
de ceva timp imi apare eroarea asta
Code: Select all
L 05/13/2013 - 11:09:46: Start of error session.
L 05/13/2013 - 11:09:46: Info (map "fy_buzzkill") (file "addons/amxmodx/logs/error_20130513.log")
L 05/13/2013 - 11:09:46: [CSTRIKE] Invalid player 4
L 05/13/2013 - 11:09:46: [AMXX] Run time error 10 (plugin "amx_adminmodel.amxx") (native "cs_get_user_team") - debug not enabled!
L 05/13/2013 - 11:09:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
am incercat si cu admin_striper_model tot la fel.
-
munir
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
- Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
-
Contact:
13 May 2013, 11:25
Pune in fata la plugin:
Vine cam asa:
Si apoi lasa-mi log-ul din consola / sau daca tot iti apare.
Retras
-
artifik
- Membru, skill 0
- Posts: 52
- Joined: 13 Jun 2012, 11:38
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 9 times
- Been thanked: 1 time
-
Contact:
13 May 2013, 20:24
asta e eroarea din consola
Code: Select all
L 05/13/2013 - 20:22:35: [CSTRIKE] Invalid player 3
L 05/13/2013 - 20:22:35: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/13/2013 - 20:22:35: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/13/2013 - 20:22:35: [AMXX] [0] 2552.attach::resetModel (line 74)
-
munir
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
- Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
-
Contact:
13 May 2013, 20:27
artifik wrote:asta e eroarea din consola
Code: Select all
L 05/13/2013 - 20:22:35: [CSTRIKE] Invalid player 3
L 05/13/2013 - 20:22:35: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/13/2013 - 20:22:35: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/13/2013 - 20:22:35: [AMXX] [0] 2552.attach::resetModel (line 74)
Lasa .sma de la amx_adminmodel.
Retras
-
artifik
- Membru, skill 0
- Posts: 52
- Joined: 13 Jun 2012, 11:38
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 9 times
- Been thanked: 1 time
-
Contact:
13 May 2013, 21:04
acesta e
Code: Select all
/*##########################################################################
##
## -- 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 :)
##
## 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 :)
##
##
##########################################################################*/
#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
}
-
artifik
- Membru, skill 0
- Posts: 52
- Joined: 13 Jun 2012, 11:38
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 9 times
- Been thanked: 1 time
-
Contact:
17 May 2013, 00:29
poti rezolva pluginu?
-
munir
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
- Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
-
Contact:
17 May 2013, 11:17
Vezi asa:
- .sma | Afiseaza codul
#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) {
if (get_user_team( id ) == 1 ) {
cs_set_user_model(id, "admin_te")
}
else if(get_user_team( id ) == 2 ) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
Sincer, eu n-am folosit niciodata,
cs_get_user_team( ). Eu folosesc doar
get_user_team( ) si e destul de bun. Nu am erori, merge perfect.
Retras
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
17 May 2013, 13:46
- | Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
public plugin_init()
{
register_plugin("Admin Model", "1.0 cyby version", "cyby")
RegisterHam(Ham_Spawn, "player", "player_spawn", 1)
}
public plugin_precache()
{
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
}
public client_disconnect(id)
{
remove_task(id)
}
public player_spawn(id)
{
if(!is_user_alive(id) || ~get_user_flags(id) & ADMIN_KICK)
{
return PLUGIN_HANDLED
}
set_task(0.2, "set_model", id)
return PLUGIN_CONTINUE
}
public set_model(id)
{
if(get_user_team(id) == 1)
cs_set_user_model(id, "admin_te")
else if(get_user_team(id) == 2)
cs_set_user_model(id, "admin_ct")
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
Users browsing this forum: No registered users and 74 guests