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

[CS:GO] Hide new arms?


Post New Thread Reply   
 
Thread Tools Display Modes
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 03-31-2017 , 05:19   Re: [CS:GO] Hide new arms?
Reply With Quote #201

Than do something like this on infection :
Quote:
CreateTimer(0.15, RemoveItemTimer, EntIndexToEntRef(client), TIMER_FLAG_NO_MAPCHANGE);
Quote:
public Action RemoveItemTimer(Handle timer ,any ref)
{
int client = EntRefToEntIndex(ref);

if (client != INVALID_ENT_REFERENCE)
{
int item = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");

if (item > 0)
{
RemovePlayerItem(client, item);

Handle ph=CreateDataPack();
WritePackCell(ph, EntIndexToEntRef(client));
WritePackCell(ph, EntIndexToEntRef(item));
CreateTimer(0.15 , AddItemTimer, ph, TIMER_FLAG_NO_MAPCHANGE);
}
}
}

public Action AddItemTimer(Handle timer ,any ph)
{
int client, item;

ResetPack(ph);

client = EntRefToEntIndex(ReadPackCell(ph));
item = EntRefToEntIndex(ReadPackCell(ph));

if (client != INVALID_ENT_REFERENCE && item != INVALID_ENT_REFERENCE)
{
EquipPlayerWeapon(client, item);
}
}
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<

Last edited by andi67; 03-31-2017 at 05:20.
andi67 is offline
brunoronning
Senior Member
Join Date: Jan 2014
Location: Brazil
Old 03-31-2017 , 09:23   Re: [CS:GO] Hide new arms?
Reply With Quote #202

Quote:
Originally Posted by andi67 View Post
Than do something like this on infection :
It works, thank you!
brunoronning 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 19:35.


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