AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drop(remove) all weapons when round start (only terrior) (https://forums.alliedmods.net/showthread.php?t=153581)

BWC_Chocolate 03-26-2011 06:09

Drop(remove) all weapons when round start (only terrior)
 
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...

bibu 03-26-2011 06:51

Re: Drop(remove) all weapons when round start (only terrior)
 
-->

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.

BWC_Chocolate 03-26-2011 06:58

Re: Drop(remove) all weapons when round start (only terrior)
 
Quote:

Originally Posted by bibu (Post 1439495)
-->

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)

bibu 03-26-2011 07:18

Re: Drop(remove) all weapons when round start (only terrior)
 
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"



All times are GMT -4. The time now is 14:30.

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