Raised This Month: $ Target: $400
 0% 

[CSS] Help me to give a Defuse Kit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skabull
Senior Member
Join Date: Mar 2010
Location: Bretagne
Old 04-14-2011 , 12:47   [CSS] Help me to give a Defuse Kit
Reply With Quote #1

Hello,

Could someone help me?

I'd give a kit to defuse the CT's the beginning of each round, but I can not ...

I manage to give the weapons I want, but the kit does not give of the CT's spawn.

That's what I do to give:

Code:
public OnPluginStart()
{
   HookEvent("player_spawn", Event_PlayerSpawn);   
}

public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{    
   GivePlayerItem(client, "weapon_hegrenade", 0);      
   GivePlayerItem(client, "item_assaultsuit", 0);

   if (GetClientTeam(client) == CS_TEAM_CT)
       GivePlayerItem(client, "weapon_m4a1");
       GivePlayerItem(client, "item_defuser");
       
   if (GetClientTeam(client) == CS_TEAM_T)
       GivePlayerItem(client, "weapon_ak47");  
       
   return;
}
Please help me
__________________

Last edited by skabull; 04-14-2011 at 12:56.
skabull is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 04-14-2011 , 14:12   Re: [CSS] Help me to give a Defuse Kit
Reply With Quote #2

This should be under Scripting support for future reference. Also, you need more { } and the return should be Plugin_Handled if you're tagging it as an Action:
__________________
databomb is offline
skabull
Senior Member
Join Date: Mar 2010
Location: Bretagne
Old 04-14-2011 , 15:22   Re: [CSS] Help me to give a Defuse Kit
Reply With Quote #3

I do not understand your post
__________________
skabull 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 10:36.


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