Raised This Month: $ Target: $400
 0% 

strip weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-28-2009 , 08:07   Re: strip weapons
Reply With Quote #1

PHP Code:
fm_strip_weapon(id); 
this strips all weapons from every player

for t's add

PHP Code:
fm_give_item(player"weapon_c4"
This should fix it. But put the
PHP Code:
fm_strip_weapon(id); 
before the people get the items
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 05-28-2009 , 08:14   Re: strip weapons
Reply With Quote #2

and every round player has got c4? if all weapons are strippet and givet every round need buy ammo...
Debesėlis is offline
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-28-2009 , 08:18   Re: strip weapons
Reply With Quote #3

My bad my friend...

PHP Code:
fm_strip_weapon(id);
 
public 
rifles(id)
{
    if(
rifles_active[id] == 1)
    {
        if(
cs_get_user_team(id) == CS_TEAM_T)
        {
            
cs_set_user_defuse(id0)
            
give_item(id"weapon_c4")
            
give_item(id"weapon_glock18")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_ak47")
            
give_item(id"weapon_awp")
        }
 
        if(
cs_get_user_team(id) == CS_TEAM_CT)
        {
            
cs_set_user_defuse(id1)
            
give_item(id"weapon_usp")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_m4a1")
            
give_item(id"weapon_awp")
        }
    }

sorry if everything is miss colored i am at my school and they don't have pawn/amxx studio
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 05-28-2009 , 08:49   Re: strip weapons
Reply With Quote #4

I need strip weapons not for all players! public rifes(id) this is menu item... when it aktive on next round gives some weapons... I want to next spawn from player removes weapons but stay only USP, deagle, m4, awp....
Debesėlis is offline
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-28-2009 , 08:51   Re: strip weapons
Reply With Quote #5

Putting fm_strip_weapon does remove all weapons but as your code implies that it will give them a new set of guns at the beginning of every round so i see no problem, Thats why fm_strip_weapon is before the guns are distributed
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns 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 01:29.


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