Raised This Month: $32 Target: $400
 8% 

Need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4eSHir
Junior Member
Join Date: Sep 2014
Old 10-21-2014 , 05:14   Need help
Reply With Quote #1

In which slot item_defuser?

I need to remove it at round start if it available and give it again.
It is necessary that the set does not fall to the ground when client already have it.
PHP Code:
new item_defuser GetPlayerWeaponSlot(client3);
        if (
IsValidEntity(item_defuser))
            {
            
RemovePlayerItem(clientitem_defuser);
            } 
slot 3 its grenade, slot 4 does not work, m b you know slot for item_defuser?
4eSHir is offline
4eSHir
Junior Member
Join Date: Sep 2014
Old 10-21-2014 , 05:18   Re: Need help
Reply With Quote #2

I wrote it in this category as it is necessary to find a slot in the server, but maybe I made ​​a mistake with the choice of the section)
4eSHir is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 10-21-2014 , 05:32   Re: Need help
Reply With Quote #3

AFAIK defuser haven't slot, might be helpful to look at Start weapon code.
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
musosoft is offline
4eSHir
Junior Member
Join Date: Sep 2014
Old 10-21-2014 , 05:36   Re: Need help
Reply With Quote #4

Quote:
Originally Posted by musosoft View Post
AFAIK defuser haven't slot, might be helpful to look at Start weapon code.
Items have no slots? Can you say how can I delete its item in code then?
also I have read this post and watched the plugin code

Last edited by 4eSHir; 10-21-2014 at 05:39.
4eSHir is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 10-21-2014 , 05:47   Re: Need help
Reply With Quote #5

Defuser can be given or removed on a timer (or next frame) after player spawn event.

You can try:
Code:
SetEntProp(client, Prop_Send, "m_bHasDefuser", 0);
Or
Code:
SetEntData(clientIndex, g_iPlayers_DefuserOffset, 0);
with
Code:
g_iPlayers_DefuserOffset = FindSendPropOffs("CCSPlayer", "m_bHasDefuser");
h3bus is offline
4eSHir
Junior Member
Join Date: Sep 2014
Old 10-21-2014 , 05:49   Re: Need help
Reply With Quote #6

Quote:
Originally Posted by h3bus View Post
Defuser can be given or removed on a timer (or next frame) after player spawn event.
tnx ill try
4eSHir 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 18:49.


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