Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Admin Models

by Zor · 2006-07-08 · 114 replies · 63207 views · 29 downloads

Read the thread (115 posts)

From the first post

Only for Amxmodx v1.75a / DoDx 1.75
n
n
This plugin will allow you to have your admins have their own sets of skins that all players who join your server will see. This will also alow you to easily Identify your own Clan Members.
n
n
//    v0.1     - Be!n//    v0.2    - Added the dod_set_bodyn//    v0.3    - Added the ability to set the model body for each person dod_set_bodyn//        - Added menu for higher level admins to fiddle with their bodiesn//    v0.4    - Updated for DoDx 1.75n//    v0.4a    - Fixed error in dod_client_changeteam where user joins spectatorn//    v0.5    - Major fix, non admin players were getting models as the tracking numbern//        was not getting reset when an admin dropped/quit/spectatedn//    v0.5a    - Fixed up some errors picked up by =|[76AD]|= TatsuSaisein//	v0.5b	- Added setting to change who can have the skin n//	0.5b-1	- Fixed by Fysiks (debug cvar fix)

nThe following is the Models Used with this plugin:
nhttps://www.dodplugins.net/forums/files/DoD_Admin_Models.zip

Files

dod_adminmodels.sma Plugin Source 10 KB 29 dl Download Compile

Archived builds from the server loose

These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.

dod_adminmodels_117.sma v0.3 9 KB Download Compile
dod_adminmodels.sma v0.3 9 KB Download Compile
dod_modelbody_test.sma v1.0 2 KB Download Compile
DoD_Admin_Models.zip Archive 8 MB Download

The thread

All 115 posts from 33 people on DoD Admin Models, kept as they were written.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
07-08-2006, 09:34 AM #1

Only for Amxmodx v1.75a / DoDx 1.75nnThis plugin will allow you to have your admins have their own sets of skins that all players who join your server will see. This will also alow you to easily Identify your own Clan Members.nn

//    v0.1     - Be!n//    v0.2    - Added the dod_set_bodyn//    v0.3    - Added the ability to set the model body for each person dod_set_bodyn//        - Added menu for higher level admins to fiddle with their bodiesn//    v0.4    - Updated for DoDx 1.75n//    v0.4a    - Fixed error in dod_client_changeteam where user joins spectatorn//    v0.5    - Major fix, non admin players were getting models as the tracking numbern//        was not getting reset when an admin dropped/quit/spectatedn//    v0.5a    - Fixed up some errors picked up by =|[76AD]|= TatsuSaisein//	v0.5b	- Added setting to change who can have the skin n//	0.5b-1	- Fixed by Fysiks (debug cvar fix)n
nThe following is the Models Used with this plugin:nhttps://www.dodplugins.net/forums/files/DoD_Admin_Models.zip

Z zak1212
posted here
Posts: 12
Threads: 2
Joined: Jul 2005
07-11-2006, 12:49 PM #2

Shame this didnt compile.rnrnthe amxmodx compiler gives this errorrnrn/home/groups/amxmodx/tmp3/phpAU4HDd.sma(193) : error 017: undefined symbol "dod_set_body"rn/home/groups/amxmodx/tmp3/phpAU4HDd.sma(207) : error 017: undefined symbol "dod_set_body"rnrn rnrnany ideas

R raphxyz
posted here
Posts: 28
Threads: 5
Joined: Sep 2005
07-11-2006, 01:44 PM #3

yes, the niew command is dod_set_body_number() in amxmodx 1.75 but it does not function! :(rnUse, amxmodx 1.71 with dodx module 1.71b while waiting!rnMoreover, the function public client_spawn () is not included in amxmodx 1.75a!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-11-2006, 08:42 PM #4

this might be why:nndodx module:n

/* Sets the model for a player */nnative dod_set_body_number(id, bodynumber);
nthis plugin:n
dod_set_body(id, body_number[id])
nso in the plugin.. change "dod_set_body" to "dod_set_body_number" and it compiles fine on 1.75nn*** nnand the:n
public client_spawn(id)
nfunction compiles fine for me...

Z zak1212
posted here
Posts: 12
Threads: 2
Joined: Jul 2005
07-12-2006, 06:31 PM #5

Wow That was quick thank you guys

R raphxyz
posted here
Posts: 28
Threads: 5
Joined: Sep 2005
07-13-2006, 03:14 PM #6

Yes, no error in the compile but client_spawn does not function in the game!nI thus have had to add register_event("ResetHUD","client_spawn","be") for my plugin dod_connection.nAnd dod_set_body_number() does not create an error in compile but it does not function in the game!nnI wait the new version of amxmodx 1.75. nWhile waiting I keep amxmodx 1.71 and dodx module 1.71bnn;)

H Hell Phoenix
posted here
Posts: 201
Threads: 17
Joined: Jan 2005
07-13-2006, 04:38 PM #7

dod_set_body_number works just fine. Im using it in the new version of my chicken plugin.

R raphxyz
posted here
Posts: 28
Threads: 5
Joined: Sep 2005
07-13-2006, 05:44 PM #8

it does not function with the “mdlT.mdl”. Is this possible?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-13-2006, 09:10 PM #9

wellnnnmaybe try using this instead of the client_spawn:nn

/* This Forward is called when a player spawns */nforward dod_client_spawn(id);
nn*edit*nand as for the modelT.mdl ... are you trying to change the body number of the modelT.mdl? if so you should be doing it to the model.mdl

R raphxyz
posted here
Posts: 28
Threads: 5
Joined: Sep 2005
07-14-2006, 12:31 PM #10

hi,nOk, now the forwarding dod_client_spawn() is good :)nBut, I the function dod_set_model () or dod_set_body_number() still does not function in my plugin.n nSo please see my plugin. Can be you will find my problem.:rolleyes: nhttp://raph.be/telechargement/plugins/dod_connection.sman

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
07-14-2006, 10:58 PM #11

ok, I am not usually this slow, but what am I missing here ? I have the plugin compiled for 1.75a, its running on my server.... but I dont see anything new...rnWhen I use the menu, the thirdperson options work, but when I try to set a number... I get an error "unknown command: body_number_cmd"rnNow, when I use the amx_bodynum ... I just cant seem to find a "number" that is valid....rnrnCould someone give me a "n00b" explanation as to how to use this plugin properly...rnrnEDIT: Since I posted this, this is what I have done to make it work (using suggestions from previous posters) rnI changed dod_set_body to dod_set_body_numberrnI changed client_spawn to dod_client_spawnrnI changed client_changeclass to dod_client_changeclassrnI changed client_changeteam to dod_client_changeteamrnrnNow it works.... but I have an issue... is it supposed to be so laggy when anyone get "close" to the custom model in game ?? Is it the plugin, the models, both ? Took me an hour to figure out all the code changes, just to have to shut it all off after using it for 15 minutes... was terribly unplayable.rnrnI really love the idea of this plugin, and have created my own model skins just for this type of plugin (you been kicking this idea around for a while) and I really look forward to having a lag free version. If it is possibly me and my server... feel free to let me know what I should try to "fix" the lag issue... otherwise, consider this a major complaint to an otherwise brilliant plugin....

R raphxyz
posted here
Posts: 28
Threads: 5
Joined: Sep 2005
07-15-2006, 08:15 AM #12

Ok, My problem was the function dod_client_changeteam! :dnThanks for your info :)

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
07-15-2006, 09:27 PM #13

well the lag might be coming from the 3rd person part...nnive noticed with the dod_thirdpersonview or whatever plugin that it makes me lag when im in 3rd person view...

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
07-17-2006, 09:21 PM #14
well the lag might be coming from the 3rd person part...rnrnive noticed with the dod_thirdpersonview or whatever plugin that it makes me lag when im in 3rd person view...
rnaye, it is laggy when I am in thirdperson mode... and hell if I can play that way... lol, but alas no.. the lag I refer to has nothing to do with being in thirdperson mode. It has to do with being able to tell when I am about to aproach a fellow clan member who is using a custom player model... I can sense their presence nearby.. because the game gets real slow on me (insert slow motion effect here) and I am serious... very noticable... but then once I am away from that person... all is fine again... and for some it is worse then others...rnrnThe other day I tried a few changes to the code, and turned the plugin on, and with just me being the only one with the custom model, people immediately started asking... why did this server just get so laggy... so I shut it off again... with a hint of a tear in my eye...rnrnI really want this to work !!!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
08-31-2006, 04:08 PM #15

Yeah I was told to change the forwards and all the natives to use dod_ in front. This was ordered by BAILOPAN. So I will have to change tis plugin and update it.nnCheers!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
08-31-2006, 04:13 PM #16

Updated:nn// v0.4 - Updated for DoDx 1.75

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
09-02-2006, 10:56 PM #17

I think I know the answer to my question but maybe someone can help with a resolution. Is it nessecary for me to place the admin models on the server and force everyone to download them in order for them to see each admin with the admin models? I have done this but it takes over 5 minutes for players joining the server to download them and they eventually give up and dont join. I took them off the server but now have people saying the admins look all white and im assuming its because they dont have the files downloaded on their computer. Any suggestion on how to do this without making people take forever to download the files when joining?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-02-2006, 11:01 PM #18

well ya lol.. they have to have the model files to be able to see them...nnnand for faster downloads.. use the sv_downloadurl stuff

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
09-02-2006, 11:21 PM #19

thanks d-o

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-03-2006, 01:56 PM #20

I use urldownload.com to download shit...those models take about 20 seconds using the aforementioned sv_downloadurl by diamond-optic.nnCheers!

K KidTwisted
posted here
Posts: 23
Threads: 3
Joined: Apr 2006
09-04-2006, 11:55 PM #21

Hey Zor,rnrnI was wondering if there might be a way to MOD this plugin and add CVARs to be able to apply this to BOTS? rnrnWould be very cool effect for a project I'm working on.

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
09-05-2006, 05:06 PM #22

When I had this plugin running on my server I noticed that bots (shrikebot) would randomly spawn with the admin models. Not sure how you could control that though.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-06-2006, 09:41 AM #23

Yeah shrikebot is not a very stable one...keep me advised if you can so I can work on it when I get the chance.nnCheers!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-06-2006, 12:51 PM #24

UPDATE v0.4ann// v0.4a - Fixed error in dod_client_changeteam where user joins spectatornnCheers!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-08-2006, 11:00 AM #25

UPDATE v0.5nn

//    v0.5    - Major fix, non admin players were getting models as the tracking numbern//        was not getting reset when an admin dropped/quit/spectated
=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-08-2006, 12:19 PM #26
UPDATE v0.5n n
//    v0.5    - Major fix, non admin players were getting models as the tracking numbern//        was not getting reset when an admin dropped/quit/spectated
n num, don't know if you noticed, but the plugin available for download HERE, is the admin ESP plugin... I think you accidentally reposted the wrong plugin...n nI would very much like to try version .5 of the admin models plugin...

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-08-2006, 05:40 PM #27

Ummmm...ok, hehehe...yeah thx...fixed it!nnCheers!

P plogan64
posted here
Posts: 24
Threads: 3
Joined: Sep 2006
09-08-2006, 07:50 PM #28

I may have missed it but what admin level do they need to be at for the skins to work on them

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-08-2006, 08:57 PM #29

level A to use the menu & level H for the body number command and such, i think..lol

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-09-2006, 01:09 AM #30
if[I](is_str_num(arg)) [/I]*<---------n {n  client_print(id, print_chat, "[AM] Sorry thats not a Number Please Try Again!")n  client_cmd(id, "messagemode [B][I]body_number_cmd[/I][/B]") *<---------n  return PLUGIN_HANDLEDn }
n num, found a problem in your code which bugged me... actually two...n nin the first code snippet, you are checking if the STRING is actually a number, and if TRUE, you then tell them that it is not a number... bad logic...n nthe correct way is to NOT the bool check...n n
 nif[I]([B]![/B]is_str_num(arg)) [/I]*<---------n {n  client_print(id, print_chat, "[AM] Sorry thats not a Number Please Try Again!")n  client_cmd(id, "messagemode [B][I]body_number_cmd_cmd[/I][/B]") *<---------n  return PLUGIN_HANDLEDn }n
n nsecond.... when you use the menu and try to do the body command... your "messagemode body_number_cmd is wrong... since the client command to call this function is body_number_cmd_cmd...n nyour code...n
 npublic action_main_menu(id, key)n{n switch(key)n {n  case 0:n  {n   set_view(id, 1)n   client_cmd(id, "amx_modelmenu")n  }n  case 1:n  {n   set_view(id, 0)n   client_cmd(id, "amx_modelmenu")n  }n  case 2:n  {n   client_cmd(id, "messagemode [B][I]body_number_cmd[/I][/B]") *<---------n  }n  default:n  {n   set_view(id, 0)n  }n }n return PLUGIN_CONTINUEn}n
n ncorrect code...n
 npublic action_main_menu(id, key)n{n switch(key)n {n  case 0:n  {n   set_view(id, 1)n   client_cmd(id, "amx_modelmenu")n  }n  case 1:n  {n   set_view(id, 0)n   client_cmd(id, "amx_modelmenu")n  }n  case 2:n  {n   client_cmd(id, "messagemode [B][I]body_number_cmd_cmd[/I][/B]") *<---------n  }n  default:n  {n   set_view(id, 0)n  }n }n return PLUGIN_CONTINUEn}n
n nand thanx for making the updates you did so far... I love this plugin !!n n n n
level A to use the menu & level H for the body number command and such, i think..lol
n nADMIN_LEVEL_A can open the menu... but only ADMIN_CVAR can change body numbers of their model... so a player without ADMIN_LEVEL_A but with ADMIN_CVAR could change their body number, but not by using the menu...n nADMIN_LEVEL_H must be set for a players model to actually "change" and utilize the custom player model...n n nMY OPINION:nIt is rather confusing and not documented well, and I have since changed all the settings on my local copy... the number change and menu should be the same admin level, and the ADMIN_LEVEL_H has always given me trouble (long story) but is valid for everyone else.. on a clan pub, ADMIN_CHAT is the best setting to change the clanners, or ADMIN_RESERVATION, the menu should be ADMIN_RCON (this is the real "super" admin, everything is possible with rcon, and thus few members/players will ever recieve this flag setting)

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-09-2006, 02:24 PM #31

UPDATE v0.5ann// v0.5a - Fixed up some errors picked up by =|[76AD]|= TatsuSaiseinnThanks =|[76AD]|= TatsuSaisei

P plogan64
posted here
Posts: 24
Threads: 3
Joined: Sep 2006
09-09-2006, 06:21 PM #32

For some strange reason a player came into the server today with the skins on. They are not listed as an admin. How is this possible? Anyway to fix?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-09-2006, 06:27 PM #33
UPDATE v0.5an n// v0.5a - Fixed up some errors picked up by =|[76AD]|= TatsuSaisein nThanks =|[76AD]|= TatsuSaisei
nI am glad I could help such an awesome plugin !!n nOn another note, the lag I mentioned before is not apparent anymore, which is a major plus !! But the old skins I had were from when I was in a different clan, so now I need to make new models !!n nThank you so much Zor for such an awesome plugin !!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
09-09-2006, 09:13 PM #34

Hmmm...you a modeler? Thats all Im lacking! Need one of those bad! Want to make a plugin for medical stuff...but need a modeler!!!!nnCheers!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-09-2006, 09:19 PM #35

zor what sort of medical stuff would you need modeled?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-09-2006, 11:00 PM #36
Hmmm...you a modeler? Thats all Im lacking! Need one of those bad! Want to make a plugin for medical stuff...but need a modeler!!!!n nCheers!
nI don't actually "model", but rather "reskin" existing models... Always wanted to learn how to model, alot of MY maps could use some custom made models, I just never knew anyone enough to ask for things to be made, I can appreciatte how much one would actually be asking for by asking someone to do things like this...n nbtw, I am currently working on making a medic class, for a damage mod I created, and am currently running on my server... I "found" some pre existing models that I reskinned to suit my needs, I just need to finish up on the plugin...

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-10-2006, 11:12 AM #37

on a another note, last night I discovered a technique of hacking a model file, to include MANY more bodystyles then what currently exists in a model.n nThe effect, unique skins for each individual body number... while for most this sort of hack is useless, unless you are a mapper who wants some new looks to some existing models, whil retaining original looks as well, OR for THIS specific plugin !!!n nMy point was to see if I could take a player model and add many different choices, then I would edit the plugin to check for certain steamids, and when found set that id to a specific body type....n nIn essence, [clan]Joe, the general of the clan, would have his own "look"n[clan] bob the recruit joins the server, he gets a "recruit" skinn[clan] paul, a sergeant in the clan gets a "sergeant" skinnetc....n nall using ONE model file, so others will only have to download 2 files...n neventually I will hack the other teams model to do the same, and then there will be 4 downloads, one ofr allies, and one for axis.n nI plan to "hack" the models in such a way that the names used inside each are not specific for my clan, and then everyone can download and use the custom models, and then import their own custom textures, thereby reskinning any one of the many body types...n n nQUESTION FOR ZOR:nWould it be possible for you to alter code in such a way that the admin-models plugin uses an ini file to "list" what steamids get a specific bodynumber ?? If you do not want to do this, or don't have the time, I will look into it after I am done "redoing" the models I plan to use...

B Boule
posted here
Posts: 5
Threads: 0
Joined: Jul 2005
09-10-2006, 10:07 PM #38

Hello all !rnI like your plugin Zor, nice job !rnI like using body_num 0 when i play allies, but it reset to 12 when i die. So , i change this :rnrn

if(get_user_flags(id)&ADMIN_LEVEL_H)rn		body_number[id] = 12rn	
rnrnto this:rnrn
if(get_user_flags(id)&ADMIN_LEVEL_H)rn		body_number[id] = 0rn	
rnrnBut when i play axis, i dont like body_num 0 ! and i have to define a number each time i die. rnIs it possible to keep always the same number during a map ?rnAnd is it possible to choose a player to set him a body_num in a menu instead of console ?rnThanks for yours answers !

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-11-2006, 12:23 AM #39
 nif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES)n        body_number[id] = 0nelse body_number[id] = 12 //preferred axis body numbern
n namx_modelmenun

B Boule
posted here
Posts: 5
Threads: 0
Joined: Jul 2005
09-12-2006, 04:09 PM #40

thanks !rnrnbut this plugins makes the server lags sometimes on certain maps like anzio. For example, when i die "my" body fall and shake in the same time. rn-_-'

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-12-2006, 05:01 PM #41
thanks !n nbut this plugins makes the server lags sometimes on certain maps like anzio. For example, when i die "my" body fall and shake in the same time. n-_-'
n nin a nutshell... it is NOT the server that lags, but the specific player that lags... I am constantly telling people this in regards to the smoke grenades...n nthe "extras" are not lagging the server, but are lagging the client... ask everyone the moment you notice it and most will tell you they are fine...n nmaybe someone said this before to you, and it is not meant to be rude... but try updating your video drivers... most people dont realize that they are out of date, and sometimes missing ONE update can cause a world of issues, even IF everything was fine a month ago....

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-12-2006, 09:48 PM #42

thats def always worth a try... same goes with sound drivers too, people usually forget bout them... tho they arent updated nearly as often as video drivers...nnwhich creates a prob. with video drivers as well.. most like the latest driver (whql or beta) wont give you the best performance, unless your running a newer card..nnlike I run a 6600GT and i use drivers from like a month or two ago.. just because they give me overall better performance then newer ones (tho i havent tried them all.. but ive tried at least a dozen newer released ones) always helps to go on the forums at say.. guru3d.com and check out what other ppl with similar rigs are saying about specific drivers..nnbut this reminds me i havent tried any newer drivers in a couple weeks.. so maybe i should check some out too lol :-)

B Boule
posted here
Posts: 5
Threads: 0
Joined: Jul 2005
09-13-2006, 09:17 AM #43

Thanks for your answers.

S scl sl!ce
posted here
Posts: 1
Threads: 0
Joined: Sep 2006
09-24-2006, 12:24 AM #44

works great. would love it if skins said admin on them... is that possible? tried to edit in photoshop cs2 but it was an unrecognized file.rnrnthanks

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-24-2006, 10:28 AM #45
works great. would love it if skins said admin on them... is that possible? tried to edit in photoshop cs2 but it was an unrecognized file.n nthanks
there is a "process" involved in reskinning a model...n nfirst you have to use a model viewer (JHMV - http://www.wunderboy.org/apps/jhlmv.php)n nthen you load the model into the model viewer. Along the bottom of the model viewer are tabs, click on textures.n nIn the texture section is a drop down list on the bottom left. Use this to select a texture within the model.n nClick on Export Texture button in the bottom right side of the model viewer.n nGive the file a name that helps to disinguish the file, the file name is irrelevant and can be anything...n nNOW, the file it created was a .bmp file, THIS file you can open and edit in photoshop, BUT there are a few things to know.... (close model viewer, it consumes alot of cpu when not in use)n n1. You can NOT alter the image dimensions (height/width)n2. To properly edit the image, you MUST changed its color mode from indexed to RGB.n3. once you are done "editing" the image, you MUST convert the color mode back to indexed (prior to converting to indexed, NOW is when you should save the file as a .psd)n4. once the image is back to indexed you go to the File menu and select save as... then save the "new" image as a Windows Bitmap (.bmp) and if you indexed the color of the image, you should only have one option for saving as a bmp... 8bitn5. Reopen the model viewer and view the admin model you are going to alter.n6. Go back to the textures section and select the texture you chose before to edit, have it selected, but this time instead of clicking on Export, you instead click on IMPORT texture. n7. Browse to the file you just "edited" and select that, Import it, then go to Model Display and enjoy the new look.n8. Once you are satisfied you have to save the model as a new model. Give the new model a new name, it HAS to be different then what it was named before, which also means the plugin has to be edited to accomodate the new model name.n nThis whole process may take a few times to get an edited image to look the way you want it to.

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
10-19-2006, 02:34 PM #46
well ya lol.. they have to have the model files to be able to see them...rnrnrnand for faster downloads.. use the sv_downloadurl stuff
rnrnok, so I have sv_downloadurl setup in my server.cfg and I have the .mdl files in their folders on my webspace in models/player but the files wont download to any of the players joining the server. The plugin is wokring fine but the admins just look like a white model. Any idea why the files arent downloading with my sv_downloadurl set up?

PenDragon
posted here
Posts: 58
Threads: 8
Joined: Sep 2004
10-19-2006, 08:34 PM #47

make sure you also have the *.mdl files in the game server directories as well.

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
10-19-2006, 09:05 PM #48
make sure you also have the *.mdl files in the game server directories as well.
rnrnok, did that and it is working, thank you

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
10-19-2006, 09:43 PM #49

admins with only Immunity, Kick, Ban are not getting the Admin Models. What line in the .sma do I need to change to give admins this model at only the level of AMX_BAN?

B bdjohns
posted here
Posts: 6
Threads: 0
Joined: Jul 2005
10-24-2006, 04:39 PM #50

When other players get around me choke goes up for them. If I turn the plugin off they get no choke. This is happening for all admins. Players are complaining.rnrnThanks

{ {D.R.}-Jester
posted here
Posts: 3
Threads: 1
Joined: Jan 2006
10-25-2006, 03:21 AM #51

ok im gonna noobish here how do u get this plugin to work wher do files need to be, stuff like that bear in mind its 4am where im at when i have time to do this so im very tired so if anyone could help me that wold be great. thx for helpin a noob here.

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
11-05-2006, 12:58 PM #52

The sma file needs to be compiled. Use the compiler HEREnnit will output a link to download the amxx file. Take the amxx file and stick that sucker in your plugins folder located on your server... path would be dod/addons/amxmodx/plugins/nThen go to your config folder located at dod/addons/amxmodx/configs/ and edit the plugins.ini to include the name of this plugin at the bottom of the filenSave and upload the file, overwriting as you do.nnIf there are any cvars listed in the .sma or on the plugin's page that you download from, you need to edit the amxx.cfg to include the cvars.nnif there are models or .mdls, put them in dod/models foldernnsounds would go to dod/sounds/misc (unless specified otherwise)nnsprites--- dod/spritesnnetc., etc.nnThen you run your game and they will work once a map is changed. (sometimes having to change the map more than once is needed to get them kickstarted)nnIf it doesnt run at this point, you may not be running the proper modules. I use HLSW to admin my server when not playing and in the console area of that program you can type amxx plugins and it will show you all the plugins you are running. If you have a "bad load" (from not having modules loaded normally) it will tell you the reason you arent loading and give you a clue as to what you need to do to fix this.nnnGood lord, hope that helps. My fingers are numb now lol.

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
11-05-2006, 05:16 PM #53

Ok, I got this up and running on my server and it ran sweet on dod_dust, then the map changed to dod_avalanche and the lag when someone died was AMAZING. It seems that it only happened when an admin was killed. rnrnI dont know if you know about this, but it definately needs to be looked at.rnrnGreat work except for that part.rnrnPlugin pulled from server until a fix is available.

YaY
posted here
Posts: 43
Threads: 6
Joined: Dec 2006
01-12-2007, 10:31 PM #54

Can anyone tell me how do u create ur own skin

T thanatopsizer
posted here
Posts: 21
Threads: 4
Joined: Nov 2006
03-04-2007, 02:34 PM #55

Look at post #45 of this thread for information on how to modify an existing one...

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
03-04-2007, 04:35 PM #56

I think the main problem with this plugin is that it is not specifically for immediate placement into the server, but rather more of an intimate example of how to change a players models... I had tried this specific plugin before and was confronted with all the same issues as most, LAG primarilly, very noticable....n nbut... I have since used the code to change player models very succesfully in other plugins without issue or LAG ... so, while the code works just fine I think there may be some subtle issue in this specific code... but the model changing does work, and IS possible without noticeable lag (see my 76AD_flies video)n nhttps://www.dodplugins.net/forums/showthread.php?t=573 (succesful use of admin model change)

D D4rK-4nG3L-nm
posted here
Posts: 3
Threads: 0
Joined: Apr 2007
04-18-2007, 09:44 PM #57

if you need skins take a look at www.fpsbanana.com they have some there.rnrnBtw keep up with the good work guys

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
11-24-2007, 11:59 PM #58

HellornrnI have the plugin runing fine but have the same problem I saw posted earlier in this thread. I want to keep body_num 0 on allies and 12 on axis. I replaced rnthis linernrnif(get_user_flags(id)&ADMIN_LEVEL_H)rn body_number[id] = 12rnrnrnwith this onernrnif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES)rn body_number[id] = 0rnelse body_number[id] = 12 //preferred axis body numberrnrnrnbut I still have to reset it to 0 on allies every time I die.rnrnAlso does anybody know of a plugin like this for dod source?

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
11-26-2007, 10:02 AM #59

Got it working

A Alien
posted here
Posts: 3
Threads: 0
Joined: Oct 2007
05-28-2008, 09:51 AM #60

Hi,rnI'm new here and I'm trying to make this plugin working on my server.rnThe problem is I'm running Amxmodx v1.8 and DoDx 1.8rnIs there a way to modify this plugin or to use another one?rnrnThanks,rnrnAlien

F Ferron
posted here
Posts: 4
Threads: 0
Joined: Dec 2008
12-11-2008, 09:41 AM #61

Is it posible to get other admin groups other skins,nnBecause i am in a relaims unit it would be cool to see al the ranks in the games.nnpfc.cpl sgt <nni just need to know how to make other admin groups, and how to assing those groups a skin.nnthanks..

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
12-11-2008, 10:26 AM #62

Are u using this as it its now? the easyest thing was to its run it 2 times with different models, different menus, and different adminlevels i think... it should be possible... but maybe u should think about ppl have to DL alot with all those models

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
12-11-2008, 03:19 PM #63

I agree, however, some people prefer this and all I can advice you is to also make the downloads available outside your dod server and fast download server. This way clients can download whenever they choose and whenever they have some spare time.

F Ferron
posted here
Posts: 4
Threads: 0
Joined: Dec 2008
12-12-2008, 07:02 AM #64

i have used it on a old server just getting the info to help a friend, because i am used to amx,nni indeed am posible to get FDL and host it from the website and so, but still dont know how to do it execlty,nsome one takl to run it more times with difrend models, but dont know how,nnjust dont mention the dowloud just think of how we can do this

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
12-13-2008, 06:22 PM #65

If you get someone to fix up the models so that all the skins are in one model for every rank level and even names, well then all you have to do is get someone to mod the sma to check for player steamid and then change to that model number for that player.rnrnCheers!

F Ferron
posted here
Posts: 4
Threads: 0
Joined: Dec 2008
12-13-2008, 06:57 PM #66

thanks. can you give me an example?? and how i have to name those skins??rnrnits kinda new for me but i do understand ti so i am a fast learner :D one clear example is good for me.rnrnthanks

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
12-14-2008, 03:41 PM #67

Well Im not a modeler, but lets say you get a dod model. Grunt, that model has a skin for the Sniper / Sgt / BAR etc etc etc. All the game does is call the different skin using a number, so lets say a basic grunt is skin 1 and sniper skin 2 etc. This is the same for an axis model. What you need to do is get someone to strip all the skins off that model, then put new skins on with your ranks and or names. Mind you the more skins you put on the bigger the file gets. So you want to be carefull. The other thing you could do, not recomended, is to strip all the skins off and put only 2 skins on it, one for allies and one for axis and have one file for each rank. However that means if you have 20 ranks in your clan you will need 20 models, that will complicate the plugin as well. I would say the best thing to do is have 2 models, or even 1 model with 20 ranks for each side, axis and allies. As for the plugin, once you get the model, and you know that lets say model skin #12 is for a Master Sgt, you basically need to call that model and skin for every player that you want to be skinned as #12.rnrnSo, with all this you will have to get some model names and numbers at which point I might be able to help a bit more, at the moment the whole plugin would need a rewright to do what you want for individuals. And so, need info!rnrnCheers!

F Ferron
posted here
Posts: 4
Threads: 0
Joined: Dec 2008
12-17-2008, 04:20 PM #68

Thanks i think i can use this when the plans are indeed coming true :Dnnnow i am going to look for a model compiler :Dnnbtw is a mod like this also possible for dod source??

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
12-17-2008, 10:30 PM #69

Unknown, I dont do Source, have never liked it, and dont program for it. However I think if you check with Feurstorm he may.rnCheers!

M Myers [93rd ID]
posted here
Posts: 11
Threads: 2
Joined: Apr 2007
01-24-2009, 09:44 PM #70

hey zor...i cant get this to install correctly on my server, it keeps crashing anytime an admin goes to join a team on a server..everything gets installed to the right spot models are in models/player/ and are in their folders and the plugin is installed correctly..any thoughts? and does anyone know by chance how to make a fast download server

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
01-25-2009, 01:49 AM #71
and does anyone know by chance how to make a fast download server
nnBy no means im sober enough to answer the pplugin relate question, but the fast download is an easy one.nnin your server.cfg you put: sv_downloadurl "url to fast download". To myknowledge most webhosting servers are quick enough for fast download.nnWhat you do is create a folder in public_html/www folder and call it fastdl. Now in this folder you create a folder called dod. Now whether you want to place sounds or maps or whatever, you need to follow dod folder structure. Meaning if dod_boobies.bsp is placed in dod/maps/weirdmaps then in your fast download it also has to be in dod/maps/weirdmaps.nnJust look in FTP how dod is set up, it will show by itsself.nnas for the sv_downloadurl, often it's your website address (without any domain name hosting url) + dod. For example: sv_downloadurl "http://server.clanservers.com/fastdl/dod"

M Myers [93rd ID]
posted here
Posts: 11
Threads: 2
Joined: Apr 2007
01-25-2009, 06:25 PM #72

cool thx for the help with the fast downloads, now i just need my plugin related question answered

C ComeBack
posted here
Posts: 2
Threads: 0
Joined: Sep 2008
02-18-2009, 08:45 PM #73

I love this plugin and have used it on my servers in the past, but it seems that with all the changes that Steam has been making to DoD and the way it operates, that a lot of older plugins are no longer working. I have a DoD standard server running on Linux with AMXMODX v1.8.0.3660, MetaMod v1.19p32, and I was able to compile your plugin to a 1.8.0 amxx file with no errors given. The precache of the models is working and regular players can join the server with the plugin operational (unless they have the folders and models already, and then it gives a bad file error until they remove the models from their computer and let them redownload), but when ever any admin joins the server, it immediately crashes the server???? Well I take that back, the issue is actually pretty much the same as the issue Myers had said, that once an admin joins a team it crashes the server, not when they join the server. Only on admins joining the team though, regular players can play all day long, and as I said the models download correctly and everything?rnrnI can get into the server as an admin in spectate, and even get the menu up and change settings with menu, but as soon as I join either team, BANG, server is dead!rnrnIs there anything you can think of to fix this?rnrnThank you in advance for any assistance!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
02-19-2009, 05:26 AM #74

i could be wrong as its been quite a long time since 1.8.0 was the latest amxx version...nnbut i think it was 1.8.0 that had the broken dod modules, and if my memory is correct, setting player models and such was one of the things that was brokennntry updating to 1.8.1, or at the very least you could try to use the dodx and dodfun modules from 1.8.1 with your 1.8.0 install and see if that helpsnnthis plugin also forces file consistency on the models, so is there a chance that some ppl have 'different' models and then get the bad file error thingy.. or are they getting that even tho they downloaded the exact models youre using?nnntho i do think there are possibly other issues with this plugin anywaynnnn* and i honestly cant think of any plugins ive had problems with since the dod/hl engine update and i run, on the average, 80 plugins on my server

S shadow-x
posted here
Posts: 2
Threads: 0
Joined: Feb 2009
03-14-2009, 05:30 PM #75

lookin for one similar, but for players like in cs. any help?

darkstardark
posted here
Posts: 7
Threads: 2
Joined: May 2007
08-07-2009, 02:35 PM #76

From what i have seen now is that the plugin is fine with amxx 1.8.1 but the skins load up as white models within the server. iam not sure y this is i load the models with in the model viewer and there is no problem within there its just in the server and iam using the same skins i have used befor in the past when i ran this plugin. If any one has any idea on the cause of this plz give ur info and i have tried different skins.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
08-08-2009, 03:48 PM #77

Have you tried just copying them into your client folder? Might be an issue with transfer of the file?

darkstardark
posted here
Posts: 7
Threads: 2
Joined: May 2007
08-10-2009, 03:52 AM #78

i have tried that and still a no go. and i am not the only one on the server with the problem so iam not sure that its doing i went into the .sma file and tried changing the fold location of the mdl's to save on a problem of ppl not being able to get in the server due to diff mdl's from another server that they have been on, and i have done that in the past with this plugin. so i dont know why its showing the white models for ppl now.

N netmad
posted here
Posts: 24
Threads: 5
Joined: May 2009
09-21-2009, 10:55 AM #79

This plugin is good. but 1 problem, all class use one model. example: k98 and MG42 two class skin is different, but use this plugin they skin become K98 skin. otherwise : different Class have sub-model in .mdl .....

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-19-2009, 08:42 PM #80

so i got it too work on my non gun game server ( get to that other later)rnhow do i make clients get a copy of the default admin skin and also can other models"skins" be added with out a "T.mdl." type rnand what is the importance" rpgrocket.mdl " ,found it installed it all works but even though i have the fast download rn"sv_downloadurl "http://redirect.ny.gameservers.com/66.55.146.227/"rnsome don't have the correct file in there system and say i look whiterni confirmed the download is working i deleted and it loaded back in when entering the serverrnand what doe's the body numbers come from ,there is very little info in the config for thisrnany help have not dealt with many plugs before but have learned from this site rn(and the gungame server) i guess it has too many plugs allready when i enter the game pauses and i have to exit out for it to continue

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-20-2009, 04:26 PM #81
how do i make clients get a copy of the default admin skin
rnrn
...say i look white
rnrnThese go together. Your clients may already have a version of the models that are older or corrupt. Your best bet is to rename them on your server / fast download server / then in the SMA file. Once you rename them in the SMA and the other 2 places you will need to recompile the SMA. Thats another story. However this will ensure all your players DL the newly renamed files and have what they need, this will eliminate the White Model problem.rnrn
also can other models"skins" be added with out a "T.mdl." type
rnrnYes, but you have to fix the code in the SMA.rnrnrn
what is the importance rpgrocket.mdl
rnrnWithout that MDL, your server will crash. Something in the game wants that with all precached models. Don't know what, but LEAVE ALONE!!!rnrn
what doe's the body numbers come from
rnrnIn each soldier.mdl there are are a large amount of skins. Example, the sniper. So body number 'aka skin' 1 is american sniper, body #2 is axis sniper body number 3 is british sniper etc. I cannot say what body number is what for your particular skins...and those numbers may or may not be correct. I don't remember. But thats basically what that is.rnrnCheers!

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-21-2009, 08:41 AM #82
Yes, but you have to fix the code in the SMA.
rnrnis there a quick way to explain that or do i need to do a search and learn to read codes,thx for the help

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-21-2009, 03:05 PM #83

I think in the top of the file is where I keep the file names, renaming them is all you need I think. Then recompile it.rnrnCheers!

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-22-2009, 12:49 AM #84

looking for compile program i find this..rnhttp://www.nba2kstuff.org/mua/rnrnand load this..rnxmlb-compile v2.1 rnrni drop the sma file over and nothing happens rnso i must have the wrong compile to use ,can you give a link of one that will work?

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-22-2009, 12:12 PM #85

You came to right address....nnNormally I would say dodplugins.net has a compiler but at the moment it only works if the sma file you are trying to compile does not contain any errors, otherwise you get a blank screen.nnSince this plugin compiles with no errors you can use this compiler:nhttps://www.dodplugins.net/forums/index.php?page=compilernnOtherwise use this one:nhttp://www.amxmodx.org/webcompiler.cginn

is there a quick way to explain that or do i need to do a search and learn to read codes,thx for the help
nnOk download AMXX studio here: http://sourceforge.net/projects/amxmodx/files/AMX%20Mod%20X%20Studio/1.4.3%20final/AMXX_Studio_1.4.3_final.zip/downloadnnOpen your sma with this program. You will see these lines:n
n#include <amxmodx>n#include <amxmisc>n#include <engine>n#include <fakemeta>n#include <dodx>nn///////////////////////////////////////////////////////////////////////////////////////n// Version Controln//nnew AUTH[] = "AMXX DoD Community"nnew PLUGIN_NAME[] = "DoD Admin Models"nnew VERSION[] = "0.5a"n//n///////////////////////////////////////////////////////////////////////////////////////nn///////////////////////////////////////////////////////////////////////////////////////n// Globalsn#define MODELS 4nnew models[MODELS][128] =n{n	"models/player/admin-allies/admin-allies.mdl",n	"models/player/admin-allies/admin-alliesT.mdl",n	"models/player/admin-axis/admin-axis.mdl",n	"models/player/admin-axis/admin-axisT.mdl"n}nnnew models_type[2][32] =n{n	"admin-allies",n	"admin-axis"n}
nnTo my knowledge you just have to adjust where it says admin-allies.mdl and admin-alliesT.mdl to the models you want to use. Save the file and compile and see if it works.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-22-2009, 12:13 PM #86

What are you trying to do? The SMA gets compiled here once you fix it. I don't know what that site is...rnrnhttps://www.dodplugins.net/forums/index.php?page=compilerrnrnCheers!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-22-2009, 12:14 PM #87

I will check the error output on the compiler...should spit out an error...nnCheers!nn**Edit**nnSimple fix on the compiler....doh....was calling the wrong function. Prints out properly formated.

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-22-2009, 12:16 PM #88

http://www.amxmodx.org/webcompiler.cgirnrnfound this from another member of my group so i'll try it

=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
10-22-2009, 12:19 PM #89

Your plugin failed to compile! Read the errors below:nnWelcome to the AMX Mod X 1.8.1-300 Compiler.nCopyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Teamnn/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79) : error 029: invalid expression, assumed zeron/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79 -- 81) : error 008: must be a constant expression; assumed zeronn2 Errors.nCould not locate output file /home/groups/amxmodx/public_html/websc3/phpdHpc4y.amx (compile failed).nnnall greek to me

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-22-2009, 12:20 PM #90

This might also be interesting for you:nnhttps://www.dodplugins.net/forums/showthread.php?t=1651&highlight=compilenn@ Zor:nThere is also a ; missing on the pasting option for the compiler, it says  .sma but you forgot a ;. Just a beauty mistake

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-23-2009, 04:07 PM #91

Don't know what your talking about :prnrnThanks!

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-24-2009, 01:38 PM #92
Your plugin failed to compile! Read the errors below:nnWelcome to the AMX Mod X 1.8.1-300 Compiler.nCopyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Teamnn/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79) : error 029: invalid expression, assumed zeron/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79 -- 81) : error 008: must be a constant expression; assumed zeronn2 Errors.nCould not locate output file /home/groups/amxmodx/public_html/websc3/phpdHpc4y.amx (compile failed).nnnall greek to me
nnPost the code you adjusted as the original file does not contain any errors

P plogan64
posted here
Posts: 24
Threads: 3
Joined: Sep 2006
12-25-2009, 11:27 PM #93

I had this plugin running but had to disable it as not all players could download the files. Why would some be able to download them but not all? I figure it a client side setting. I'm using fast download.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
12-26-2009, 03:15 AM #94

Some people already have the files. You need to rename them to your specific version so that they download the one that you want. That is most likely whats up.

P plogan64
posted here
Posts: 24
Threads: 3
Joined: Sep 2006
12-26-2009, 12:46 PM #95

Ok that makes perfect sense. If I rename them do I have to change anything with the plugin or will it still work?

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
12-26-2009, 05:43 PM #96
define MODELS 4rnnew models[MODELS][128] =rn{rn	"models/player/admin-allies/admin-allies.mdl",rn	"models/player/admin-allies/admin-alliesT.mdl",rn	"models/player/admin-axis/admin-axis.mdl",rn	"models/player/admin-axis/admin-axisT.mdl"rn}
rnrnYou can either change the path to for example: models/player/475th/admin-allies/....rnrnOr you can change the mdl name. I suggest doing the path as it's easier.

P plogan64
posted here
Posts: 24
Threads: 3
Joined: Sep 2006
12-26-2009, 09:53 PM #97

Thanks Zor and TankrnrnIs there anyway to make sure this doesn't keep happening? I would hate to keep renaming the path to the files.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
12-27-2009, 10:31 AM #98

You only have to do it once. The situation on hand is that people probably already downloaded these files from another server but perhaps an older version of the plugin or perhaps a different plugin with the same admin models.rnrnSo rename them once, everyone downloads a fresh copy and you should be all settled

B bozdw
posted here
Posts: 23
Threads: 4
Joined: Jul 2009
11-19-2010, 09:18 AM #99

hini put this plugin on and it works well nbut when i put this in the code as explained before in this post nCode:nnif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body numbernnit always set to 10 in game for the axis and for allies so what code do i need to put so its 10 for axis and 6 for allies nits like that the allies is not taken into account so its overwrote by the axis nmany thanks boznnsorry but could it be that in red instead of elsenif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 axis body_number[id] = 10 //preferred axis body number

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-14-2011, 08:55 AM #100
hini put this plugin on and it works well nbut when i put this in the code as explained before in this post nCode:n nif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body numbern nit always set to 10 in game for the axis and for allies so what code do i need to put so its 10 for axis and 6 for allies nits like that the allies is not taken into account so its overwrote by the axis nmany thanks bozn nsorry but could it be that in red instead of elsenif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 axis body_number[id] = 10 //preferred axis body number
n n ndo the Allies players in question have the ADMIN FLAG H? If you read the logic properly you will see that you NEED to have ADMIN FLAG H assigned to you before you will ever get assigned the Allies number.n nChanging the ELSE to AXIS simply breaks the code!! n nWhile it makes sense to put the code out there in plain site, to prevent malicious behavior, there is a reason some of us are listed as developers and some of us are not ... I would suggest NOT playing with and modifying code until you have a better understanding of programming logic!

B bozdw
posted here
Posts: 23
Threads: 4
Joined: Jul 2009
04-14-2011, 04:09 PM #101

Hi nwell thanks for the reply ni do have ADMIN FLAG H i have all the flags apart from z that i could read!nsince i didn't get a reply i thought i try the else to axis so like you said it doesn't work,nAnd the logic is whatever allies body number i use it always sets as the axis body numnnif(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body numbernnthis will give me axis number 10 AND ALLIES NUMBER 10 EVEN THOUGH I PUT 6nso it was that that didn't work for MEnthat was 5 months ago i've slept since then nthanks boz

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
06-30-2015, 10:27 AM #102

Please tell me how I can use this plugin to replace the model for all players?nAnd when I use this plug - sturmbot don't shoot me. How to disable this feature?nThank you!

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
07-01-2015, 10:12 AM #103

I haven't looked at the plugin for a while. There should be a way to make it change for everyone. As for the sturmbot, I have no clue! Sorry!rnrnOk so I changed the plugin so that you can change the #define USER to whatever level you want. It is currently set at ADMIN_LEVEL_H. If you want all users to have the models you would change that to lets say: ADMIN_USER.rnrnTo do this you need to download the source and open it in notepad, find the USER define and change it to above. Save the file then use the compiler on the left side of this page to compile the code. The rest I hope you will know!rnrnCheers!

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
07-06-2015, 03:37 AM #104

Zor I sent you Lars metamod plugin for changing Sturmbots, weapons etc. Have a look at that as it holds some clues for you.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
07-06-2015, 07:19 AM #105

Thanks will do!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
06-05-2016, 02:15 AM #106

I can't download it. Error loading.

Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
06-17-2016, 10:59 AM #107

Probably fixed now. Check the news:rnrnhttps://www.dodplugins.net/forums/showthread.php?t=2267rnrnCheers!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
06-17-2016, 12:10 PM #108

Thank you, dear Zor, friend =) !!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
07-28-2017, 07:31 PM #109

Is it possible to make this plugin has changed the model for players and for admins at the same time?

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
10-04-2017, 04:01 AM #110

L 10/04/2017 - 09:57:42: Start of error session.nL 10/04/2017 - 09:57:42: Info (map "dod_donner") (file "addons/amxmodx/logs/error_20171004.log")nL 10/04/2017 - 09:57:42: Invalid CVAR pointernL 10/04/2017 - 09:57:42: [AMXX] Run time error 10 (plugin "dod_adminmodels.amxx") (native "set_pcvar_num") - debug not enabled!nL 10/04/2017 - 09:57:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).nnMy debug mode is a enabled.

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
10-04-2017, 04:04 AM #111

L 10/04/2017 - 10:03:19: Start of error session.nL 10/04/2017 - 10:03:19: Info (map "dod_anzio") (file "addons/amxmodx/logs/error_20171004.log")nL 10/04/2017 - 10:03:19: Invalid CVAR pointernL 10/04/2017 - 10:03:19: [AMXX] Displaying debug trace (plugin "dod_adminmodels.amxx")nL 10/04/2017 - 10:03:19: [AMXX] Run time error 10: native error (native "set_pcvar_num")nL 10/04/2017 - 10:03:19: [AMXX] [0] dod_adminmodels.sma::plugin_precache (line 150)

F Fysiks
posted here
Posts: 108
Threads: 3
Joined: Aug 2007
10-05-2017, 10:36 PM #112

Since I can't attach files, here is the fixed source code:rnrn

///////////////////////////////////////////////////////////////////////////////////////rn//rn//	AMX Mod (X)rn//rn//	Developed by:rn//	The Amxmodx DoD Communityrn//	|BW|.Zor Editor (zor@blackwatchclan.net)rn//	https://www.dodplugins.netrn//rn//	This program is free software; you can redistribute it and/or modify itrn//	under the terms of the GNU General Public License as published by thern//	Free Software Foundation; either version 2 of the License, or (atrn//	your option) any later version.rn//rn//	This program is distributed in the hope that it will be useful, butrn//	WITHOUT ANY WARRANTY; without even the implied warranty ofrn//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUrn//	General Public License for more details.rn//rn//	You should have received a copy of the GNU General Public Licensern//	along with this program; if not, write to the Free Software Foundation,rn//	Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USArn//rn//	In addition, as a special exception, the author gives permission torn//	link the code of this program with the Half-Life Game Engine ("HLrn//	Engine") and Modified Game Libraries ("MODs") developed by Valve,rn//	L.L.C ("Valve"). You must obey the GNU General Public License in allrn//	respects for all of the code used other than the HL Engine and MODsrn//	from Valve. If you modify this file, you may extend this exceptionrn//	to your version of the file, but you are not obligated to do so. Ifrn//	you do not wish to do so, delete this exception statement from yourrn//	version.rn//rn//	Name:		DoD Admin Modelsrn//	Author:		|BW|.Zorrn//	Description:	This plugin will set the admin to have specific modelsrn//	Reference:	rn//rn//	CVARS:	( Place these Variables into the addons/amxmodx/configs/amxx.cfg File )rn//rn//		dod_am_enabled	1rn//rn//	v0.1 	- Be!rn//	v0.2	- Added the dod_set_bodyrn//	v0.3	- Added the ability to set the model body for each person dod_set_bodyrn//		- Added menu for higher level admins to fiddle with their bodiesrn//	v0.4	- Updated for DoDx 1.75rn//	v0.4a	- Fixed error in dod_client_changeteam where user joins spectatorrn//	v0.5	- Major fix, non admin players were getting models as the tracking numberrn//		was not getting reset when an admin dropped/quit/spectatedrn//	v0.5a	- Fixed up some errors picked up by =|[76AD]|= TatsuSaisei	rn//	v0.5b	- Added setting to change who can have the skin rn//rn///////////////////////////////////////////////////////////////////////////////////////rnrn#include <amxmodx>rn#include <amxmisc>rn#include <engine>rn#include <fakemeta>rn#include <dodx>rnrn///////////////////////////////////////////////////////////////////////////////////////rn// Version Controlrn//rnnew AUTH[] = "AMXX DoD Community"rnnew PLUGIN_NAME[] = "DoD Admin Models"rnnew VERSION[] = "0.5a-1"rn//rn///////////////////////////////////////////////////////////////////////////////////////rnrn///////////////////////////////////////////////////////////////////////////////////////rn// Globalsrn#define USER ADMIN_LEVEL_Hrn#define MODELS 4rnnew models[MODELS][128] =rn{rn	"models/player/admin-allies/admin-allies.mdl",rn	"models/player/admin-allies/admin-alliesT.mdl",rn	"models/player/admin-axis/admin-axis.mdl",rn	"models/player/admin-axis/admin-axisT.mdl"rn}rnrnnew models_type[2][32] =rn{rn	"admin-allies",rn	"admin-axis"rn}rnrnnew body_number[33] = { 0, ...}rnrn//CVARSrnnew g_dod_am_enabledrnrn//rn///////////////////////////////////////////////////////////////////////////////////////rnrn///////////////////////////////////////////////////////////////////////////////////////rn//rn// Initializations of the Pluginrn//rnpublic plugin_init()rn{rn	// Register this pluginrn	register_plugin(PLUGIN_NAME, VERSION, AUTH)rn	register_clcmd("amx_bodynum", "set_body_number_cmd", USER, "<nick> <number 0-10000> - Sets the body number for a player")rn	rn	// Register the Forwardsrn	register_forward(FM_PrecacheModel, "fw_precache") rn	register_forward(FM_PrecacheSound, "fw_precache") rn	register_forward(FM_PrecacheGeneric, "fw_precache")rn	rn	// Menurn	register_clcmd("amx_modelmenu", "show_main_menu", ADMIN_LEVEL_A, "- Main Menu Command for Model Body Testing")rn	register_clcmd("body_number_cmd", "body_number_cmd", ADMIN_LEVEL_A, "- Captures Commands From Keyboard")rn	register_menucmd(register_menuid("Model Body Test"), (MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3), "action_main_menu")rn}rnrn///////////////////////////////////////////////////////////////////////////////////////rn//rn// Configs the pluginrn//rnpublic plugin_cfg()rn{rn	// Get the placement of the joinleave filern	new temp[128]rnrn	// Allow the server to run the config filern	get_configsdir(temp, 127)rn	format(temp, 127, "%s/amxx.cfg", temp)rn	server_cmd("exec %s", temp)rn	server_exec()rn	rn	return PLUGIN_CONTINUErn}rnrn///////////////////////////////////////////////////////////////////////////////////////rn//rn// Precachern//rnpublic plugin_precache()rn{rn	// Register CVARSrn	g_dod_am_enabled = register_cvar("dod_am_enabled", "1")rn	rn	for(new x = 0; x < MODELS; x++)rn	{rn		if(!file_exists(models[x]))rn		{rn			log_amx("File: %s Does not Exist, Disabling plugin!", models[x])rn			set_pcvar_num(g_dod_am_enabled, 0)rnrn			return PLUGIN_CONTINUErn		}rn	rn		precache_model(models[x])rn		enforce(models[x])rn	}rn	rn	precache_model("models/rpgrocket.mdl")rn	rn	return PLUGIN_CONTINUErn}rnrnpublic client_putinserver(id)rn{rn	if(!is_user_connected(id) || !get_pcvar_num(g_dod_am_enabled))rn		return PLUGIN_CONTINUErn		rn	if(get_user_flags(id)&USER)rn		body_number[id] = 12rn	rn	return PLUGIN_CONTINUErn}rnrnpublic dod_client_changeteam(id, team, oldteam)rn{rn	if(!is_user_connected(id) || !get_pcvar_num(g_dod_am_enabled))rn		return PLUGIN_CONTINUErnrn	if(get_user_flags(id)&USER)rn	{rn		if(team == ALLIES || team == AXIS)rn			dod_set_model(id, models_type[team-1])rn	}rn		rn	return PLUGIN_CONTINUErn}rnrnpublic dod_client_changeclass(id, class, oldclass)rn{rn	if(!is_user_connected(id) || !get_pcvar_num(g_dod_am_enabled))rn		return PLUGIN_CONTINUErnrn	if(get_user_flags(id)&USER)rn	{rn		// Here you can play with some bodys to see the number of them and determine what body for what classrn		dod_set_body_number(id, body_number[id])rn	}rn		rn	return PLUGIN_CONTINUErn}rnrnpublic dod_client_spawn(id)rn{rn	if(!is_user_connected(id) || !get_pcvar_num(g_dod_am_enabled))rn		return PLUGIN_CONTINUErnrn	if(get_user_flags(id)&USER)rn	{rn		// Here you can play with some bodys to see the number of them and determine what body for what classrn		dod_set_body_number(id, body_number[id])rn	}rn		rn	return PLUGIN_CONTINUErn}rnrnpublic set_body_number_cmd(id, level, cid)rn{rn	if(!cmd_access(id, level, cid, 2) || !get_pcvar_num(g_dod_am_enabled))rn		return PLUGIN_HANDLEDrn		rn	new number[32]rn	read_argv(2, number, 128)rn	remove_quotes(number)rn	rn	if(!is_str_num(number))rn	{rn		client_print(id, print_chat, "Sorry thats not a Number Please Try Again!")rn		client_cmd(id, "amx_bodynum")rn		return PLUGIN_HANDLEDrn	}rn	rn	new player[32]rn	read_argv(1, player, 31)rn	new player_id = get_player(player)rn	rn	if(!player_id)rn	{rn		client_print(id, print_chat, "Sorry thats not a player name!")rn		client_cmd(id, "amx_bodynum")rn		return PLUGIN_HANDLEDrn	}rn	rn	get_user_name(player_id, player, 31)rn	rn	if(get_user_flags(player_id)&USER)rn	{rn		client_print(id, print_chat, "You have Set Player %s's Body Number to %d", player, str_to_num(number))rn		body_number[player_id] = str_to_num(number)rn	}rn	rn	elsern	{rn		client_print(id, print_chat, "You Cannot Set Player %s's Body Number as they are not an admin!", player)rn	}rn	rn	return PLUGIN_HANDLEDrn}rnrnpublic show_main_menu(id, level, cid)rn{rn	if(!cmd_access(id, level, cid, 1))rn		return PLUGIN_HANDLEDrnrn	display_main_menu(id)rnrn	return PLUGIN_HANDLEDrn}rnrnstock display_main_menu(id)rn{rn	new menuBody[1024]rn	new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3rn	new len = format(menuBody, 511, "yModel Body Test^n^n")rn	len += format(menuBody[len], (1023-len), "
Body Set At: %d^n^n", entity_get_int(id, EV_INT_body))rn	len += format(menuBody[len], (1023-len), "
1) w3rd Person On^n")rn	len += format(menuBody[len], (1023-len), "
2) w3rd Person Off^n")rn	len += format(menuBody[len], (1023-len), "
3) wSet Body Number^n")rn	format(menuBody[len], (1023-len), "
0) wExit^n")rnrn	show_menu(id, keys, menuBody, -1, "Model Body Test")rnrn	return PLUGIN_HANDLEDrn}rnrnpublic action_main_menu(id, key)rn{rn	switch(key)rn	{rn		case 0:rn		{rn			set_view(id, 1)rn			client_cmd(id, "amx_modelmenu")rn		}rn		case 1:rn		{rn			set_view(id, 0)rn			client_cmd(id, "amx_modelmenu")rn		}rn		case 2:rn		{rn			client_cmd(id, "messagemode body_number_cmd")rn		}rn		default:rn		{rn			set_view(id, 0)rn		}rn	}rnrn	return PLUGIN_CONTINUErn}rnrnpublic body_number_cmd(id, level, cid)rn{rn	if(!cmd_access(id, level, cid, 2))rn		return PLUGIN_HANDLEDrnrn	new arg[128]rn	read_args(arg, 128)rn	remove_quotes(arg)rn	rn	if(!is_str_num(arg))rn	{rn		client_print(id, print_chat, "Sorry thats not a Number Please Try Again!")rn		client_cmd(id, "messagemode body_number_cmd")rn		return PLUGIN_HANDLEDrn	}rn	rn	client_print(id, print_chat, "You have Set Your Body Number to %d", str_to_num(arg))	rn	entity_set_int(id, EV_INT_body, str_to_num(arg))rn	client_cmd(id, "amx_modelmenu")rn	rn	return PLUGIN_HANDLEDrnrn}rnrnpublic fw_precache(const file[]) rn{rn	enforce(file)rn	return FMRES_IGNOREDrn}  rnrnpublic enforce(const file[])rn{rn	force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, file)rn}rnrnpublic inconsistent_file(id, const filename[], reason[64])rn{rn	format(reason, 63, "Delete %s and reconnect to get proper file!", filename)rn	return PLUGIN_CONTINUErn}rnrnstock get_player(search[])rn{rn	// See if they are there by exact nickrn	new player_id = find_player("ahjl", search)rnrn	if(!player_id)rn	{rn		// Try to find them by portion of nickrn		player_id = find_player("bhjl", search)rn	}rnrn	if(!player_id)rn	{rn		// Try to find them by steam idrn		player_id = find_player("chj", search)rn	}rnrn	if(!player_id)rn	{rn		// Try to find them by iprn		player_id = find_player("dhj", search)rn	}rnrn	if(!player_id)rn	{rn		// Try to find them by useridrn		player_id = find_player("khj", search)rn	}rnrn	return player_idrn}
Zor
started this thread
Posts: 688
Threads: 75
Joined: Jun 2006
10-14-2017, 11:18 AM #113

Uploaded Fysiks to the first post. Hope it helps!rnrnCheers!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
10-17-2017, 02:40 AM #114

Thank you, guys!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
01-17-2018, 04:57 PM #115

Is it possible to make this plugin has changed the model for players and for admins at the same time?

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC