Raised This Month: $12 Target: $400
 3% 

Admin / VIP model [Counter Strike 1.6]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LaNaa
New Member
Join Date: Jun 2020
Old 06-17-2020 , 06:32   Admin / VIP model [Counter Strike 1.6]
Reply With Quote #1

Hello there!

Is there any plugin that switches default admin model to some custom? Like AdminCT and AdminT and can be set to some admin flag, like D for example? Also i need plugin that changes models of VIPs who are in written in vips.ini and uses flag T? Or maybe model can be given by steam ID to regular players? I used search, but didnt find what i need.. Also i tried few plugins found here and on the internet, but still none of them did what i ned.. thx in advance
LaNaa is offline
NOVA GAMING
Member
Join Date: Apr 2020
Old 06-17-2020 , 07:18   Re: Admin / VIP model [Counter Strike 1.6]
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=106094
__________________
NOVA GAMING is offline
LaNaa
New Member
Join Date: Jun 2020
Old 06-17-2020 , 13:06   Re: Admin / VIP model [Counter Strike 1.6]
Reply With Quote #3

Quote:
Originally Posted by NOVA GAMING View Post

Hey, thx for your reply.. yeah i tried that plugin, but with that one i can only change default models, not for admins or vips (unless i use their steam id, right?) I though more like.. ehm server recognizes admins and vips, and give them automatically..
LaNaa is offline
rian18
Junior Member
Join Date: Apr 2020
Old 07-04-2020 , 04:36   Re: Admin / VIP model [Counter Strike 1.6]
Reply With Quote #4

Quote:
Originally Posted by LaNaa View Post
Hey, thx for your reply.. yeah i tried that plugin, but with that one i can only change default models, not for admins or vips (unless i use their steam id, right?) I though more like.. ehm server recognizes admins and vips, and give them automatically..
try this:
https://dev-cs.ru/resources/928/
rian18 is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 07-04-2020 , 05:54   Re: Admin / VIP model [Counter Strike 1.6]
Reply With Quote #5

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> #define MODEL_DELAY 0.5 enum _:ModelsInfo {     Flag,     CTModel[32],     TModel[32] } new const g_eModels[][ModelsInfo] = {     // <Admin flag> <CT skin> <T skin>     { ADMIN_LEVEL_A, "owner_ct", "owner_t" },     { ADMIN_LEVEL_B, "admin_ct", "admin_t" } } new Trie:g_tModels public plugin_init() {     register_plugin("Multiple Player Models", "1.0", "OciXCrom")     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1) } public plugin_end()     TrieDestroy(g_tModels) public plugin_precache() {     g_tModels = TrieCreate()         for(new i; i < sizeof(g_eModels); i++)     {         precache_player_model(g_eModels[i][CTModel])         precache_player_model(g_eModels[i][TModel])     } } public OnPlayerSpawn(id)     set_task(MODEL_DELAY, "SetModel", id)     public SetModel(id) {     if(is_user_alive(id))     {         static bool:bMatch, iFlags, i         bMatch = false                 for(iFlags = get_user_flags(id), i = 0; i < sizeof(g_eModels); i++)         {             if(iFlags & g_eModels[i][Flag])             {                 switch(cs_get_user_team(id))                 {                     case CS_TEAM_CT: cs_set_user_model(id, g_eModels[i][CTModel])                     case CS_TEAM_T: cs_set_user_model(id, g_eModels[i][TModel])                 }                                 client_print(id, print_chat, "* Your received the model %s", g_eModels[i][cs_get_user_team(id) == CS_TEAM_CT ? CTModel : TModel])                 bMatch = true                 break             }         }                 if(!bMatch)         {             static szModel[32]             cs_get_user_model(id, szModel, charsmax(szModel))                         if(TrieKeyExists(g_tModels, szModel))                 cs_reset_user_model(id)         }     } } precache_player_model(szModel[]) {     TrieSetCell(g_tModels, szModel, 1)         static szFile[128]     formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", szModel, szModel)     precache_model(szFile)     replace(szFile, charsmax(szFile), ".mdl", "T.mdl")         if(file_exists(szFile))         precache_model(szFile) }
ZaX is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode