Raised This Month: $ Target: $400
 0% 

[HELP] anti "model" command!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DreamWorks
Senior Member
Join Date: Mar 2012
Old 07-04-2012 , 09:27   Re: [HELP] anti "model" command!
Reply With Quote #1

ConnorMCload;
Here is my plugin, can you fix it? to block users from using the model command? please
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
++
                if ( 
g_JailDay >= sizeof g_Days )
                
g_JailDay 0;
        }
        
set_user_rendering(idkRenderFxNone000kRenderNormal0)
        
clear_bit(g_PlayerCrowbarid)
        
clear_bit(g_PlayerHandid)
        
clear_bit(g_PlayerBoxid)
        
clear_bit(g_PlayerElectroid)
        
clear_bit(g_NCid)
        
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""pbmodel")
                        
entity_set_int(idEV_INT_body2)
                        
client_cmdid"spk ^"sound/GHW/weapons/knife_deploy1.wav^"" );

                        if(
is_freeday() || get_bit(g_FreedayAutoid))
                        {
                        
g_Freeday 1;
                        
jail_open();
                        
freeday_set(0id)
                        
clear_bit(g_FreedayAutoid)
                        }
                        else
                        {
                                
entity_set_int(idEV_INT_skinrandom_num(02))
                        }
                        if (
is_user_admin(id))
                        {
                        
set_user_infoid"model""prisonner" )
                        }
                        
                        
cs_set_user_armor(id0CS_ARMOR_NONE)

                        
set_bit(g_PlayerHandid)

                }
                case(
CS_TEAM_CT):
                {
                        
g_PlayerSimon[id]++
                     
                        
set_user_info(id"model""pbmodel")
                                
                        
entity_set_int(idEV_INT_body3)

                        
client_cmdid"spk ^"sound/prison-break/CT/CTConvoca.wav^"" );

                        
cs_set_user_armor(id100CS_ARMOR_VESTHELM)

                        if (
is_user_admin(id))
                        {
                        
set_user_infoid"model""gm-guard" )
                        }

                        
set_task5.0"cmd_menu"id )

                        
set_bit(g_PlayerElectroid)
                }
        }
        
first_join(id)
        return 
HAM_IGNORED

DreamWorks is offline
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 06:38.


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