Raised This Month: $ Target: $400
 0% 

Drop(remove) all weapons when round start (only terrior)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BWC_Chocolate
BANNED
Join Date: Mar 2011
Old 03-26-2011 , 06:09   Drop(remove) all weapons when round start (only terrior)
Reply With Quote #1

PHP Code:
public fw_PlayerSpawn_Post(id) {
 
 if(!
is_user_alive(id) && is_user_bot(id)) return;
 
 if( 
cs_get_user_team(id) == CS_TEAM_T ) {
  ??????????????????????????????????
 }

i don't know how to this...
BWC_Chocolate is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 03-26-2011 , 06:51   Re: Drop(remove) all weapons when round start (only terrior)
Reply With Quote #2

-->

public fw_PlayerSpawn_Post(id) {

if(!
is_user_alive(id) || is_user_bot(id)) return;

if(
cs_get_user_team(id) == CS_TEAM_T ) {
strip_user_weapons(id)
}
}


Don't forget to include fun module.
bibu is offline
BWC_Chocolate
BANNED
Join Date: Mar 2011
Old 03-26-2011 , 06:58   Re: Drop(remove) all weapons when round start (only terrior)
Reply With Quote #3

Quote:
Originally Posted by bibu View Post
-->

public fw_PlayerSpawn_Post(id) {

if(!is_user_alive(id) || is_user_bot(id)) return;

if( cs_get_user_team(id) == CS_TEAM_T ) {
strip_user_weapons(id)
}
}


Don't forget to include fun module.
is it drop all weapons? (primary and secondary)
BWC_Chocolate is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 03-26-2011 , 07:18   Re: Drop(remove) all weapons when round start (only terrior)
Reply With Quote #4

It drops everything. So you don't have a knife at all. If you want to drop everything, except knife, just add this line under strip_user_weapons:

PHP Code:
give_item(id"weapon_knife"
bibu is offline
Reply


Thread Tools
Display Modes

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 14:30.


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