Raised This Month: $ Target: $400
 0% 

HELP|with plugin 2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr_Boris
Junior Member
Join Date: Aug 2011
Old 09-21-2011 , 07:25   HELP|with plugin 2
Reply With Quote #1

i have in my JB mod Zombie Day :


PHP Code:
public ZombieDay(id)
{
    new 
iPlayers[32]
    
zombie_day true
    
new iNum
    
new id
 
    get_players
iPlayersiNum )
    
server_cmd("bh_enabled 0")
    for( new 
0iNumi++ )
    {
        
id iPlayers[i]
        if( !
is_user_aliveid ) )
        {
            continue;
        }
      
        
ColorChat(0RED"^4%s Today Is Zombie"PREFIX)
        
g_ZMCount ZMCount;
        
set_task1.0 "ZombieCount" "a" g_ZMCount );
        
jail_open()
  
        if (
cs_get_user_team(id) == CS_TEAM_CT)
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_knife")
            
set_user_health(id30000)
            
cs_set_user_model(id,"zombie")
        }
        
        if (
cs_get_user_team(id) == CS_TEAM_T)
        {
               
            
strip_user_weapons(id)
            
give_item(id"weapon_m4a1")
            
give_item(id"weapon_ak47")
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_M4A19999)
            
cs_set_user_bpammo(idCSW_AK479999)
            
cs_set_user_bpammo(idCSW_DEAGLE9999)
            
set_user_health(id100)
        }
    }


i want in that day if CT player have weapon that not aknife tath will do to hem strip weapon and give a knife



Sorry for the bad English
Mr_Boris is offline
 



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 19:43.


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