AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   item_thighpack (https://forums.alliedmods.net/showthread.php?t=25117)

Ricky 03-08-2006 02:44

item_thighpack
 
Code:

                else if (get_user_team(id)==CTS)
                {
                        give_item(id,"item_thighpack")
                        give_item(id,"weapon_deagle")
                        give_item(id,"ammo_50ae")

I can't see why the cts aren't getting a defusal kit when they're given the deagle throught this code. Can anyone help?

VEN 03-08-2006 04:51

Use the cstrike module:
Code:
//cstrike.inc /* Returns 1 if user has a defuse kit.  */ native cs_get_user_defuse(index); /* If defusekit is 1, the user will have a defuse kit.  * You can specify a different colour for the defuse kit icon showing on hud. Default is the normal green.  * You can specify an icon. Default is "defuser". Set flash to 1 if you want the icon to flash red.  */ native cs_set_user_defuse(index, defusekit = 1, r = 0, g = 160, b = 0, icon[] = "defuser", flash = 0);


All times are GMT -4. The time now is 20:17.

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