Admin Mark (marks admins with beret or helmet)
5 Attachment(s)
Admin Mark 1.2
DESCRIPTION: Plugin marks admin by adding on his head special helmet or beret. Size of model is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb) like in other plugins such as KaOs' "Admin Models", but download small model in 1 sec. FEATURES: - if admin is CT, he wears special helmet - if admin is T, he wears special beret CVARS: amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin VERSIONS: 1.0 first release 1.1 added forcing standard models by server (you can disable this by using mp_consistency 0), optimized some code 1.2 changed really smart part of code (1 word...) put admin_head.mdl to "models/" directory Unfortunately helmets and berets looking good if client is using standard models. If client have custom models it may not look good.. Here are some screens: -helmets: gign gsg9 sas urban (seal) vip -berets: arctic guerilla leet terror |
Re: Admin Mark
Looks funny :lol:...nice! Gj :wink:
|
Re: Admin Mark
nice! perhaps you can add only the "ADMIN" write to terrorist models or make a helmet for every terrorist model in the head color of the model
for example a black one for Phoenix terorist and so on.... |
Re: Admin Mark
Nice plugin!
But the helmet model sucks :P |
Re: Admin Mark
Nice really like this one!
|
Re: Admin Mark
Quote:
Quote:
And I think beret for terrorist is better than helmet:) and colors must be distinctive, that everyone know this is admin. |
Re: Admin Mark
Quote:
But here's the big problem: Doesn't matter which model or team I choose, the helmet is always the same... even for TRs! Any help?! :o |
Re: Admin Mark
hmm, that's weird.. Maybe try enable engine module..
EDIT: And one more thing. Did you edit model? If so, then maybe that's the cause. Try using my model from first post. Model must have 9 submodels (you can check it by using Half-Life Model Viewer) |
Re: Admin Mark
i like this b/c you DL helmets and berets instead of like Admin Model were the whole model is replaced so GJ!
but i think the Helmets could use a little work.... but if i had a server i would use this. |
Re: Admin Mark
1 Attachment(s)
Quote:
And as soon as I noticed that the helmet doesn't change, I downloaded the model again :P No results :( When I got some time, I'll uninstall the plugin and try a clean install.. :up: Yay! A clean install fixed everything :) Now I'll change the model again to a darker helmet :twisted: Everything's fine now... and people loved my new beret :mrgreen: Thank you!! PS: I attached the dark model if people is interested :P http://i41.photobucket.com/albums/e2...admin_mark.jpg |
Re: Admin Mark
Hum, really nice plugin :)
|
Re: Admin Mark
Code:
Terrible. Make a global array which stores all these names, then run a loop checking if it's each one. If it is, set model ID to the iterator's value. I'm willing to hold this back for this optimization alone. Please do it within a week or I will unapprove this. |
Re: Admin Mark
OK, I'll try.
|
Re: Admin Mark
Why not just make it as a stock? like:
Code:
btw, the beret looks like a seat cushion on their head lol. |
Re: Admin Mark
Because this would not optimize the code.
|
Re: Admin Mark
Quote:
I would assume just making an array of what model ID they have at the round start would suffice. It might temporarily display the wrong helmet for the remainder of a round if an admin uses a command to force a model change, but that'd be a small price to pay for the overhead reduction. |
Re: Admin Mark
Quote:
|
Re: Admin Mark
Eh fine then you can do it like this too:
Code:
This also begs the question, as a GENERAL rule how many ifs would it be before it's a better idea to use a loop instead? |
Re: Admin Mark
Plugin updated!
|
Re: Admin Mark
1.Don't use "stock" at get_model(id).
2.like sawce said Quote:
|
Re: Admin Mark
1.What else then? 'public'?
2.OK, I'll change that |
Re: Admin Mark
It don't work with roundstart() or with client_spawn() so I'll just leave client_PreThink() like it was before. I think it's better, besides Hawk said to change only get_model_id part.
And one more thing, why not 'stock' at get_model_id()? |
Re: Admin Mark
Because this! Read carefully.
Quote:
|
Re: Admin Mark
OK, thx
Plugin updated to 1.2! I think it's last update.. Say what you think about code now Alka.:wink: |
Re: Admin Mark
1 Attachment(s)
Code looks good! If i use this
Code:
force_unmodified(....) Here is my version! -Using "New round" to set model! -Minor fix. Works perfect! :P... |
Re: Admin Mark
works fine on my server,no crashes or bugs detected
|
Re: Admin Mark
very cool thanks
I may modify it so it gives anyone with my clan tag the models |
Re: Admin Mark
I had to set mp_consistency 0 on my server so some people can connect, don't know if it has to to with this plugin or not.
|
Re: Admin Mark
Quote:
|
Re: Admin Mark
Hej.Ja mam no steam i admin mark nie działa na moim servie do cs 1.6.Więc mam prośbę.Jakbyś mógł to prześlij mi source code na no steam Kaloszyfer.Zgóry thx.
RODAK sQn :) |
Re: Admin Mark
GJ +KARMA !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
Re: Admin Mark
nice thing!!!! i was looking for something like that awesome job +K
|
Re: Admin Mark
Nice plugin, nice idea.
Shouldn't you end the loop when finding the player model with something like that ? PHP Code:
|
Re: Admin Mark
yo plugin dosent work for me it give an erroe models/terror/terror.mdl
|
Re: Admin Mark
any help?
|
Re: Admin Mark
Type 'mp_consistency 0' in console before you start server. I think you have custom player models.
|
Re: Admin Mark
Can anyone help me? I've installed it on my server, but when I type "amx_admin_mark 1" I got unknown command.
I've activated this plug-in in config/plugins.ini with amx_admin_mark.amxx. |
Re: Admin Mark
Why are you typing it? Isn't it default to 1?
|
Re: Admin Mark
YA! It worked. I don't know what I did..lol
|
Re: Admin Mark
for example i got some admins only with one flag (including custom flags) it detects any admin flag from A to U?
|
All times are GMT -4. The time now is 07:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.