AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model Admin (https://forums.alliedmods.net/showthread.php?t=215007)

Crizzatu 05-02-2013 12:24

Model Admin
 
How can create ADMIN [ FLAG: ADMIN_LEVEL_G ] model ?
I have Models
Explicit: I want them for admins put them other models !!
The script below is made ​​for the player and for admins!! I need for admin other model and for player other model!

PHP Code:

public player_spawn(id)
    {
    static 
CsTeams:team
    
    
if(!is_user_connected(id))
        return 
HAM_IGNORED
    
    set_pdata_float
(idm_fNextHudTextArgsGameTimeget_gametime() + 999999.0)
    
player_strip_weapons(id)
    if(
g_RoundEnd)
        {
        
g_RoundEnd 0
        g_JailDay
++
    }
    
    
set_user_rendering(idkRenderFxNone000kRenderNormal0)
    
    
clear_bit(g_PlayerCrowbarid)
    
clear_bit(g_PlayerWantedid)
    
team cs_get_user_team(id)
    
    switch(
team)
    {
        case(
CS_TEAM_T):
        {
            
g_PlayerLast 0
            
if(!g_PlayerReason[id])
                
g_PlayerReason[id] = random_num(16)
            
            
player_hudmessage(id05.0, {2550255}, "%L %L"LANG_SERVER"JBE_PRISONER_REASON",
            
LANG_SERVERg_Reasons[g_PlayerReason[id]])
            
            
set_user_info(id"model""jbemodel")
            
entity_set_int(idEV_INT_body2)
            if(
is_freeday() || get_bit(g_FreedayAutoid))
                {
                
freeday_set(0id)
                
clear_bit(g_FreedayAutoid)
            }
            else
            {
                
entity_set_int(idEV_INT_skinrandom_num(02))
            }
            
            if(
g_CrowbarCount get_pcvar_num(gp_CrowbarMax))
                {
                if(
random_num(0g_MaxClients) > (g_MaxClients 2))
                    {
                    
g_CrowbarCount++
                    
set_bit(g_PlayerCrowbarid)
                }
            }
            
cs_set_user_armor(id0CS_ARMOR_NONE)
        }
        case(
CS_TEAM_CT):
        {
            
g_PlayerSimon[id]++
            
set_user_info(id"model""jbemodel")
            
entity_set_int(idEV_INT_body3)
            
cs_set_user_armor(id100CS_ARMOR_VESTHELM)
        }
    }
    
first_join(id)
    return 
HAM_IGNORED


Thx

claudiuhks 05-02-2013 13:03

Re: Model Admin
 
Maybe this one could help: http://forums.alliedmods.net/showthread.php?t=164453


All times are GMT -4. The time now is 10:54.

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