Raised This Month: $ Target: $400
 0% 

vip admin model for T too


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 02-05-2009 , 01:47   Re: vip admin model for T too
Reply With Quote #1

Hm, maybe..

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define VIP_MODEL "models/player/vip/vip.mdl"
#define VIP_ABBR "vip"
#define VIP_FLAG ADMIN_KICK

public plugin_init()
    
RegisterHam(Ham_Spawn"player""Fwd_PlayerSpawn_Post"1)

public 
plugin_precache()
    
precache_model(VIP_MODEL)

public 
Fwd_PlayerSpawn_Post(id)
{
    if (
is_user_alive(id))
           if (
get_user_flags(id) & VIP_FLAG)
                  
cs_set_user_model(idVIP_ABBR)

__________________
IneedHelp is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 02-05-2009 , 02:00   Re: vip admin model for T too
Reply With Quote #2

Quote:
Hm, maybe..

PHP Code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define VIP_MODEL "models/player/vip/vip.mdl"
#define VIP_ABBR "vip"
#define VIP_FLAG ADMIN_KICK

public plugin_init()
    
RegisterHam(Ham_Spawn"player""Fwd_PlayerSpawn_Post"1)

public 
plugin_precache()
    
precache_model(VIP_MODEL)

public 
Fwd_PlayerSpawn_Post(id)
{
    if (
is_user_alive(id))
           if (
get_user_flags(id) & VIP_FLAG)
                  
cs_set_user_model(idVIP_ABBR)

Yes, i think it's the better way to do this.
TheRadiance is offline
Send a message via ICQ to TheRadiance
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-05-2009 , 08:16   Re: vip admin model for T too
Reply With Quote #3

Quote:
Originally Posted by TheRadiance View Post
Yes, i think it's the better way to do this.
Ofc it's more simple with Cstrike, but there's a lot of servers that don't use Cstrike, cause it's kind of useless(FM can "replace" it). There's nothing that the Cstrike way would be better, it just depends what modules the server uses.

Last edited by SnoW; 02-05-2009 at 08:19.
SnoW is offline
Send a message via MSN to SnoW
Reply



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 01:54.


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