View Full Version : DoD Admin Models
Only for Amxmodx v1.75a / DoDx 1.75
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.
// v0.1 - Be!
// v0.2 - Added the dod_set_body
// v0.3 - Added the ability to set the model body for each person dod_set_body
// - Added menu for higher level admins to fiddle with their bodies
// v0.4 - Updated for DoDx 1.75
// v0.4a - Fixed error in dod_client_changeteam where user joins spectator
// v0.5 - Major fix, non admin players were getting models as the tracking number
// was not getting reset when an admin dropped/quit/spectated
// v0.5a - Fixed up some errors picked up by =|[76AD]|= TatsuSaisei
The following is the Models Used with this plugin:
http://www.dodplugins.net/forums/files/DoD_Admin_Models.zip
zak1212
07-11-2006, 01:49 PM
Shame this didnt compile.
the amxmodx compiler gives this error
/home/groups/amxmodx/tmp3/phpAU4HDd.sma(193) : error 017: undefined symbol "dod_set_body"
/home/groups/amxmodx/tmp3/phpAU4HDd.sma(207) : error 017: undefined symbol "dod_set_body"
any ideas
raphxyz
07-11-2006, 02:44 PM
yes, the niew command is dod_set_body_number() in amxmodx 1.75 but it does not function! :(
Use, amxmodx 1.71 with dodx module 1.71b while waiting!
Moreover, the function public client_spawn () is not included in amxmodx 1.75a!
diamond-optic
07-11-2006, 09:42 PM
this might be why:
dodx module:
/* Sets the model for a player */
native dod_set_body_number(id, bodynumber);
this plugin:
dod_set_body(id, body_number[id])
so in the plugin.. change "dod_set_body" to "dod_set_body_number" and it compiles fine on 1.75
***
and the:
public client_spawn(id)
function compiles fine for me...
zak1212
07-12-2006, 07:31 PM
Wow That was quick thank you guys
raphxyz
07-13-2006, 04:14 PM
Yes, no error in the compile but client_spawn does not function in the game!
I thus have had to add register_event("ResetHUD","client_spawn","be") for my plugin dod_connection.
And dod_set_body_number() does not create an error in compile but it does not function in the game!
I wait the new version of amxmodx 1.75.
While waiting I keep amxmodx 1.71 and dodx module 1.71b
;)
Hell Phoenix
07-13-2006, 05:38 PM
dod_set_body_number works just fine. Im using it in the new version of my chicken plugin.
raphxyz
07-13-2006, 06:44 PM
it does not function with the “mdlT.mdl”. Is this possible?
diamond-optic
07-13-2006, 10:10 PM
well
maybe try using this instead of the client_spawn:
/* This Forward is called when a player spawns */
forward dod_client_spawn(id);
*edit*
and 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
raphxyz
07-14-2006, 01:31 PM
hi,
Ok, now the forwarding dod_client_spawn() is good :)
But, I the function dod_set_model () or dod_set_body_number() still does not function in my plugin.
So please see my plugin. Can be you will find my problem.:rolleyes:
http://raph.be/telechargement/plugins/dod_connection.sma
=|[76AD]|= TatsuSaisei
07-14-2006, 11:58 PM
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...
When 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"
Now, when I use the amx_bodynum ... I just cant seem to find a "number" that is valid....
Could someone give me a "n00b" explanation as to how to use this plugin properly...
EDIT: Since I posted this, this is what I have done to make it work (using suggestions from previous posters)
I changed dod_set_body to dod_set_body_number
I changed client_spawn to dod_client_spawn
I changed client_changeclass to dod_client_changeclass
I changed client_changeteam to dod_client_changeteam
Now 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.
I 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....
raphxyz
07-15-2006, 09:15 AM
Ok, My problem was the function dod_client_changeteam! :d
Thanks for your info :)
diamond-optic
07-15-2006, 10:27 PM
well the lag might be coming from the 3rd person part...
ive noticed with the dod_thirdpersonview or whatever plugin that it makes me lag when im in 3rd person view...
=|[76AD]|= TatsuSaisei
07-17-2006, 10:21 PM
well the lag might be coming from the 3rd person part...
ive noticed with the dod_thirdpersonview or whatever plugin that it makes me lag when im in 3rd person view...
aye, 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...
The 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...
I really want this to work !!!
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.
Cheers!
Updated:
// v0.4 - Updated for DoDx 1.75
Box Cutter
09-02-2006, 11:56 PM
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
09-03-2006, 12:01 AM
well ya lol.. they have to have the model files to be able to see them...
and for faster downloads.. use the sv_downloadurl stuff
Box Cutter
09-03-2006, 12:21 AM
thanks d-o
I use urldownload.com to download shit...those models take about 20 seconds using the aforementioned sv_downloadurl by diamond-optic.
Cheers!
KidTwisted
09-05-2006, 12:55 AM
Hey Zor,
I was wondering if there might be a way to MOD this plugin and add CVARs to be able to apply this to BOTS?
Would be very cool effect for a project I'm working on.
Box Cutter
09-05-2006, 06:06 PM
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.
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.
Cheers!
UPDATE v0.4a
// v0.4a - Fixed error in dod_client_changeteam where user joins spectator
Cheers!
UPDATE v0.5
// v0.5 - Major fix, non admin players were getting models as the tracking number
// was not getting reset when an admin dropped/quit/spectated
=|[76AD]|= TatsuSaisei
09-08-2006, 01:19 PM
UPDATE v0.5
// v0.5 - Major fix, non admin players were getting models as the tracking number
// was not getting reset when an admin dropped/quit/spectated
um, 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...
I would very much like to try version .5 of the admin models plugin...
Ummmm...ok, hehehe...yeah thx...fixed it!
Cheers!
plogan64
09-08-2006, 08:50 PM
I may have missed it but what admin level do they need to be at for the skins to work on them
diamond-optic
09-08-2006, 09:57 PM
level A to use the menu & level H for the body number command and such, i think..lol
=|[76AD]|= TatsuSaisei
09-09-2006, 02:09 AM
if(is_str_num(arg)) *<---------
{
client_print(id, print_chat, "[AM] Sorry thats not a Number Please Try Again!")
client_cmd(id, "messagemode body_number_cmd") *<---------
return PLUGIN_HANDLED
}
um, found a problem in your code which bugged me... actually two...
in 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...
the correct way is to NOT the bool check...
if(!is_str_num(arg)) *<---------
{
client_print(id, print_chat, "[AM] Sorry thats not a Number Please Try Again!")
client_cmd(id, "messagemode body_number_cmd_cmd") *<---------
return PLUGIN_HANDLED
}
second.... 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...
your code...
public action_main_menu(id, key)
{
switch(key)
{
case 0:
{
set_view(id, 1)
client_cmd(id, "amx_modelmenu")
}
case 1:
{
set_view(id, 0)
client_cmd(id, "amx_modelmenu")
}
case 2:
{
client_cmd(id, "messagemode body_number_cmd") *<---------
}
default:
{
set_view(id, 0)
}
}
return PLUGIN_CONTINUE
}
correct code...
public action_main_menu(id, key)
{
switch(key)
{
case 0:
{
set_view(id, 1)
client_cmd(id, "amx_modelmenu")
}
case 1:
{
set_view(id, 0)
client_cmd(id, "amx_modelmenu")
}
case 2:
{
client_cmd(id, "messagemode body_number_cmd_cmd") *<---------
}
default:
{
set_view(id, 0)
}
}
return PLUGIN_CONTINUE
}
and thanx for making the updates you did so far... I love this plugin !!
level A to use the menu & level H for the body number command and such, i think..lol
ADMIN_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...
ADMIN_LEVEL_H must be set for a players model to actually "change" and utilize the custom player model...
MY OPINION:
It 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)
UPDATE v0.5a
// v0.5a - Fixed up some errors picked up by =|[76AD]|= TatsuSaisei
Thanks =|[76AD]|= TatsuSaisei
plogan64
09-09-2006, 07:21 PM
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
09-09-2006, 07:27 PM
UPDATE v0.5a
// v0.5a - Fixed up some errors picked up by =|[76AD]|= TatsuSaisei
Thanks =|[76AD]|= TatsuSaisei
I am glad I could help such an awesome plugin !!
On 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 !!
Thank you so much Zor for such an awesome plugin !!
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!!!!
Cheers!
diamond-optic
09-09-2006, 10:19 PM
zor what sort of medical stuff would you need modeled?
=|[76AD]|= TatsuSaisei
09-10-2006, 12:00 AM
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!!!!
Cheers!
I 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...
btw, 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
09-10-2006, 12:12 PM
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.
The 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 !!!
My 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....
In essence, [clan]Joe, the general of the clan, would have his own "look"
[clan] bob the recruit joins the server, he gets a "recruit" skin
[clan] paul, a sergeant in the clan gets a "sergeant" skin
etc....
all using ONE model file, so others will only have to download 2 files...
eventually 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.
I 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...
QUESTION FOR ZOR:
Would 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...
Boule
09-10-2006, 11:07 PM
Hello all !
I like your plugin Zor, nice job !
I like using body_num 0 when i play allies, but it reset to 12 when i die. So , i change this :
if(get_user_flags(id)&ADMIN_LEVEL_H)
body_number[id] = 12
to this:
if(get_user_flags(id)&ADMIN_LEVEL_H)
body_number[id] = 0
But when i play axis, i dont like body_num 0 ! and i have to define a number each time i die.
Is it possible to keep always the same number during a map ?
And is it possible to choose a player to set him a body_num in a menu instead of console ?
Thanks for yours answers !
=|[76AD]|= TatsuSaisei
09-11-2006, 01:23 AM
if(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES)
body_number[id] = 0
else body_number[id] = 12 //preferred axis body number
amx_modelmenu
Boule
09-12-2006, 05:09 PM
thanks !
but 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.
-_-'
=|[76AD]|= TatsuSaisei
09-12-2006, 06:01 PM
thanks !
but 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.
-_-'
in 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...
the "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...
maybe 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
09-12-2006, 10:48 PM
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...
which 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..
like 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..
but this reminds me i havent tried any newer drivers in a couple weeks.. so maybe i should check some out too lol :-)
Boule
09-13-2006, 10:17 AM
Thanks for your answers.
scl sl!ce
09-24-2006, 01:24 AM
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.
thanks
=|[76AD]|= TatsuSaisei
09-24-2006, 11:28 AM
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.
thanksthere is a "process" involved in reskinning a model...
first you have to use a model viewer (JHMV - http://www.wunderboy.org/apps/jhlmv.php)
then you load the model into the model viewer. Along the bottom of the model viewer are tabs, click on textures.
In the texture section is a drop down list on the bottom left. Use this to select a texture within the model.
Click on Export Texture button in the bottom right side of the model viewer.
Give the file a name that helps to disinguish the file, the file name is irrelevant and can be anything...
NOW, 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)
1. You can NOT alter the image dimensions (height/width)
2. To properly edit the image, you MUST changed its color mode from indexed to RGB.
3. 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)
4. 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... 8bit
5. Reopen the model viewer and view the admin model you are going to alter.
6. 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.
7. Browse to the file you just "edited" and select that, Import it, then go to Model Display and enjoy the new look.
8. 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.
This whole process may take a few times to get an edited image to look the way you want it to.
Box Cutter
10-19-2006, 03:34 PM
well ya lol.. they have to have the model files to be able to see them...
and for faster downloads.. use the sv_downloadurl stuff
ok, 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
10-19-2006, 09:34 PM
make sure you also have the *.mdl files in the game server directories as well.
Box Cutter
10-19-2006, 10:05 PM
make sure you also have the *.mdl files in the game server directories as well.
ok, did that and it is working, thank you
Box Cutter
10-19-2006, 10:43 PM
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?
bdjohns
10-24-2006, 05:39 PM
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.
Thanks
{D.R.}-Jester
10-25-2006, 04:21 AM
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.
The sma file needs to be compiled. Use the compiler HERE (http://www.amxmodx.org/webcompiler.cgi)
it 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/
Then 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 file
Save and upload the file, overwriting as you do.
If 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.
if there are models or .mdls, put them in dod/models folder
sounds would go to dod/sounds/misc (unless specified otherwise)
sprites--- dod/sprites
etc., etc.
Then 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)
If 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.
Good lord, hope that helps. My fingers are numb now lol.
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.
I dont know if you know about this, but it definately needs to be looked at.
Great work except for that part.
Plugin pulled from server until a fix is available.
Can anyone tell me how do u create ur own skin
thanatopsizer
03-04-2007, 02:34 PM
Look at post #45 of this thread for information on how to modify an existing one...
=|[76AD]|= TatsuSaisei
03-04-2007, 04:35 PM
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....
but... 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)
http://www.dodplugins.net/forums/showthread.php?t=573 (succesful use of admin model change)
D4rK-4nG3L-nm
04-18-2007, 10:44 PM
if you need skins take a look at www.fpsbanana.com they have some there.
Btw keep up with the good work guys
Merrill
11-24-2007, 11:59 PM
Hello
I 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
this line
if(get_user_flags(id)&ADMIN_LEVEL_H)
body_number[id] = 12
with this one
if(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES)
body_number[id] = 0
else body_number[id] = 12 //preferred axis body number
but I still have to reset it to 0 on allies every time I die.
Also does anybody know of a plugin like this for dod source?
Merrill
11-26-2007, 10:02 AM
Got it working
Alien
05-28-2008, 10:51 AM
Hi,
I'm new here and I'm trying to make this plugin working on my server.
The problem is I'm running Amxmodx v1.8 and DoDx 1.8
Is there a way to modify this plugin or to use another one?
Thanks,
Alien
Ferron
12-11-2008, 09:41 AM
Is it posible to get other admin groups other skins,
Because i am in a relaims unit it would be cool to see al the ranks in the games.
pfc.cpl sgt <
i just need to know how to make other admin groups, and how to assing those groups a skin.
thanks..
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
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.
Ferron
12-12-2008, 07:02 AM
i have used it on a old server just getting the info to help a friend, because i am used to amx,
i indeed am posible to get FDL and host it from the website and so, but still dont know how to do it execlty,
some one takl to run it more times with difrend models, but dont know how,
just dont mention the dowloud just think of how we can do this
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.
Cheers!
Ferron
12-13-2008, 06:57 PM
thanks. can you give me an example?? and how i have to name those skins??
its kinda new for me but i do understand ti so i am a fast learner :D one clear example is good for me.
thanks
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.
So, 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!
Cheers!
Ferron
12-17-2008, 04:20 PM
Thanks i think i can use this when the plans are indeed coming true :D
now i am going to look for a model compiler :D
btw is a mod like this also possible for dod source??
Unknown, I dont do Source, have never liked it, and dont program for it. However I think if you check with Feurstorm he may.
Cheers!
Myers [93rd ID]
01-24-2009, 09:44 PM
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
and does anyone know by chance how to make a fast download server
By no means im sober enough to answer the pplugin relate question, but the fast download is an easy one.
in your server.cfg you put: sv_downloadurl "url to fast download". To myknowledge most webhosting servers are quick enough for fast download.
What 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.
Just look in FTP how dod is set up, it will show by itsself.
as 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"
Myers [93rd ID]
01-25-2009, 06:25 PM
cool thx for the help with the fast downloads, now i just need my plugin related question answered
ComeBack
02-18-2009, 08:45 PM
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?
I 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!
Is there anything you can think of to fix this?
Thank you in advance for any assistance!
diamond-optic
02-19-2009, 05:26 AM
i could be wrong as its been quite a long time since 1.8.0 was the latest amxx version...
but 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 broken
try 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 helps
this 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?
tho i do think there are possibly other issues with this plugin anyway
* 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
shadow-x
03-14-2009, 06:30 PM
lookin for one similar, but for players like in cs. any help?
darkstardark
08-07-2009, 03:35 PM
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.
Have you tried just copying them into your client folder? Might be an issue with transfer of the file?
darkstardark
08-10-2009, 04:52 AM
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.
netmad
09-21-2009, 11:55 AM
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*=
10-19-2009, 09:42 PM
so i got it too work on my non gun game server ( get to that other later)
how 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
and what is the importance" rpgrocket.mdl " ,found it installed it all works but even though i have the fast download
"sv_downloadurl "http://redirect.ny.gameservers.com/66.55.146.227/"
some don't have the correct file in there system and say i look white
i confirmed the download is working i deleted and it loaded back in when entering the server
and what doe's the body numbers come from ,there is very little info in the config for this
any help have not dealt with many plugs before but have learned from this site
(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
how do i make clients get a copy of the default admin skin
...say i look white
These 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.
also can other models"skins" be added with out a "T.mdl." type
Yes, but you have to fix the code in the SMA.
what is the importance rpgrocket.mdl
Without that MDL, your server will crash. Something in the game wants that with all precached models. Don't know what, but LEAVE ALONE!!!
what doe's the body numbers come from
In 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.
Cheers!
=*MDMILBURN*=
10-21-2009, 09:41 AM
Yes, but you have to fix the code in the SMA.
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
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.
Cheers!
=*MDMILBURN*=
10-22-2009, 01:49 AM
looking for compile program i find this..
http://www.nba2kstuff.org/mua/
and load this..
xmlb-compile v2.1
i drop the sma file over and nothing happens
so i must have the wrong compile to use ,can you give a link of one that will work?
You came to right address....
Normally 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.
Since this plugin compiles with no errors you can use this compiler:
http://www.dodplugins.net/forums/cmps_index.php?page=compiler
Otherwise use this one:
http://www.amxmodx.org/webcompiler.cgi
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
Ok 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/download
Open your sma with this program. You will see these lines:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <dodx>
///////////////////////////////////////////////////////////////////////////////////////
// Version Control
//
new AUTH[] = "AMXX DoD Community"
new PLUGIN_NAME[] = "DoD Admin Models"
new VERSION[] = "0.5a"
//
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
// Globals
#define MODELS 4
new models[MODELS][128] =
{
"models/player/admin-allies/admin-allies.mdl",
"models/player/admin-allies/admin-alliesT.mdl",
"models/player/admin-axis/admin-axis.mdl",
"models/player/admin-axis/admin-axisT.mdl"
}
new models_type[2][32] =
{
"admin-allies",
"admin-axis"
}
To 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.
What are you trying to do? The SMA gets compiled here once you fix it. I don't know what that site is...
http://www.dodplugins.net/forums/cmps_index.php?page=compiler
Cheers!
I will check the error output on the compiler...should spit out an error...
Cheers!
**Edit**
Simple fix on the compiler....doh....was calling the wrong function. Prints out properly formated.
=*MDMILBURN*=
10-22-2009, 01:16 PM
http://www.amxmodx.org/webcompiler.cgi
found this from another member of my group so i'll try it
=*MDMILBURN*=
10-22-2009, 01:19 PM
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79 -- 81) : error 008: must be a constant expression; assumed zero
2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpdHpc4y.amx (compile failed).
all greek to me
This might also be interesting for you:
http://www.dodplugins.net/forums/showthread.php?t=1651&highlight=compile
@ Zor:
There is also a ; missing on the pasting option for the compiler, it says  .sma but you forgot a ;. Just a beauty mistake
Don't know what your talking about :p
Thanks!
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpdHpc4y.sma(79 -- 81) : error 008: must be a constant expression; assumed zero
2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpdHpc4y.amx (compile failed).
all greek to me
Post the code you adjusted as the original file does not contain any errors
plogan64
12-25-2009, 11:27 PM
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.
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.
plogan64
12-26-2009, 12:46 PM
Ok that makes perfect sense. If I rename them do I have to change anything with the plugin or will it still work?
define MODELS 4
new models[MODELS][128] =
{
"models/player/admin-allies/admin-allies.mdl",
"models/player/admin-allies/admin-alliesT.mdl",
"models/player/admin-axis/admin-axis.mdl",
"models/player/admin-axis/admin-axisT.mdl"
}
You can either change the path to for example: models/player/475th/admin-allies/....
Or you can change the mdl name. I suggest doing the path as it's easier.
plogan64
12-26-2009, 09:53 PM
Thanks Zor and Tank
Is there anyway to make sure this doesn't keep happening? I would hate to keep renaming the path to the files.
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.
So rename them once, everyone downloads a fresh copy and you should be all settled
bozdw
11-19-2010, 09:18 AM
hi
i put this plugin on and it works well
but when i put this in the code as explained before in this post
Code:
if(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body number
it 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
its like that the allies is not taken into account so its overwrote by the axis
many thanks boz
sorry but could it be that in red instead of else
if(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
04-14-2011, 09:55 AM
hi
i put this plugin on and it works well
but when i put this in the code as explained before in this post
Code:
if(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body number
it 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
its like that the allies is not taken into account so its overwrote by the axis
many thanks boz
sorry but could it be that in red instead of else
if(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
do 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.
Changing the ELSE to AXIS simply breaks the code!!
While 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!
bozdw
04-14-2011, 05:09 PM
Hi
well thanks for the reply
i do have ADMIN FLAG H i have all the flags apart from z that i could read!
since i didn't get a reply i thought i try the else to axis so like you said it doesn't work,
And the logic is whatever allies body number i use it always sets as the axis body num
if(get_user_flags(id)&ADMIN_LEVEL_H && get_user_team(id) == ALLIES) body_number[id] = 6 else body_number[id] = 10 //preferred axis body number
this will give me axis number 10 AND ALLIES NUMBER 10 EVEN THOUGH I PUT 6
so it was that that didn't work for ME
that was 5 months ago i've slept since then
thanks boz
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.