AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved [HELP]Vip Skin (https://forums.alliedmods.net/showthread.php?t=295685)

edon1337 04-02-2017 15:08

Re: [HELP]Vip Skin
 
I tested it before posting, you probably have a plugin that affects the models.

Restart 04-02-2017 15:11

Re: [HELP]Vip Skin
 
I have this in umbrella_swarm.sma:
new const g_priv_models[][] = { "umbrella", "umbrella", "umbrella", "umbrella" }

edon1337 04-02-2017 16:50

Re: [HELP]Vip Skin
 
That probably messes with it, you could try setting a delay on Ham_Spawn and check if it would reset the model of Umbrella mod.
Code:
#include < amxmodx > #include < fakemeta > #include < hamsandwich > new const g_szModel[ ] = "bill" ; #define ADMIN_FLAG ADMIN_KICK public plugin_init( ) {     register_plugin( "Admin Skin", "1.0", "DoNii" ) ;     RegisterHam( Ham_Spawn, "player", "fw_HamSpawnPost", 1 ) ;     register_forward( FM_SetClientKeyValue, "fw_SetClientKeyValue" ) } public plugin_precache( ) {     new szBuffer[ 64 ] ;     formatex( szBuffer, charsmax( szBuffer ), "models/player/%s/%s.mdl", g_szModel, g_szModel ) ;         precache_model( szBuffer ) ; } public fw_HamSpawnPost( id ) {     if( ! is_user_alive( id ) )     return HAM_IGNORED ;     if( ~ get_user_flags( id ) & ADMIN_FLAG )     return HAM_IGNORED ;     if( get_user_team( id ) != 2 )     return HAM_IGNORED ;     set_task( 1.0, "fw_HamSpawnPostDelay", id ) ;         return HAM_HANDLED ; } public fw_SetClientKeyValue( id, const infobuffer[ ], const key[ ] ) {     if( get_user_team( id ) != 2 )     return FMRES_IGNORED ;     if( ~ get_user_flags( id ) & ADMIN_KICK )     return FMRES_IGNORED ;     if( equal( key, "model" ) ) {         set_user_info( id, "model", g_szModel ) ;         return FMRES_SUPERCEDE ;     }         return FMRES_IGNORED ; } public fw_HamSpawnPostDelay( id ) {     set_user_info( id, "model", g_szModel ) ;     remove_task( id ) ; }

Restart 04-02-2017 16:52

Re: [HELP]Vip Skin
 
How?I don't know how to do it?

Restart 04-02-2017 16:57

Re: [HELP]Vip Skin
 
I mean, when i transfer to ct it shows, but than repalaces with umbrella skin.

edon1337 04-02-2017 16:57

Re: [HELP]Vip Skin
 
Code:
#include < amxmodx > #include < fakemeta > #include < hamsandwich > new const g_szModel[ ] = "bill" ; #define ADMIN_FLAG ADMIN_KICK public plugin_init( ) {     register_plugin( "Admin Skin", "1.0", "DoNii" ) ;     RegisterHam( Ham_Spawn, "player", "fw_HamSpawnPost", 1 ) ;     register_forward( FM_SetClientKeyValue, "fw_SetClientKeyValue" ) } public plugin_precache( ) {     new szBuffer[ 64 ] ;     formatex( szBuffer, charsmax( szBuffer ), "models/player/%s/%s.mdl", g_szModel, g_szModel ) ;         precache_model( szBuffer ) ; } public fw_HamSpawnPost( id ) {     set_task( 1.0, "fw_HamSpawnPostDelay", id ) ; } public fw_SetClientKeyValue( id, const infobuffer[ ], const key[ ] ) {     if( get_user_team( id ) != 2 )     return FMRES_IGNORED ;     if( ~ get_user_flags( id ) & ADMIN_KICK )     return FMRES_IGNORED ;     if( equal( key, "model" ) ) {         set_user_info( id, "model", g_szModel ) ;         return FMRES_SUPERCEDE ;     }         return FMRES_IGNORED ; } public fw_HamSpawnPostDelay( id ) {     if( ! is_user_alive( id ) )     return PLUGIN_CONTINUE ;     if( ~ get_user_flags( id ) & ADMIN_FLAG )     return PLUGIN_CONTINUE ;     if( get_user_team( id ) != 2 )     return PLUGIN_CONTINUE ;     set_user_info( id, "model", g_szModel ) ;     remove_task( id ) ;         return PLUGIN_CONTINUE ; }

EDIT : By the way, you could just use the first code and put this plugin's name before umbrella swarm's in plugins.ini !

Restart 04-02-2017 17:26

Re: [HELP]Vip Skin
 
It's not working, because it's something wrong with mine umbrella_swarm.sma.

D3XT3R 04-02-2017 17:32

Re: [HELP]Vip Skin
 
Quote:

Originally Posted by Restart (Post 2508882)
I have this in umbrella_swarm.sma:
new const g_priv_models[][] = { "umbrella", "umbrella", "umbrella", "umbrella" }

lol mine umbrella since 2014 of psychical and my edtion so look now

in this like it has access levels of ct normal players and vip and admin and s admin skins
first one for all and other one for vip just change from umbrella to other ur model as Bill

Restart 04-02-2017 18:03

Re: [HELP]Vip Skin
 
So do you mean, that
new const g_priv_models[][] = { "umbrella", "umbrella", "umbrella", "umbrella" }

Is vip models or what?

Restart 04-02-2017 18:06

Re: [HELP]Vip Skin
 
Yes, it's your's, because it is what i can find for free :P


All times are GMT -4. The time now is 00:53.

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