|
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
|
10-28-2020
, 10:56
Re: [CSGO] Weapon quipment
|
#11
|
Quote:
Originally Posted by SM9
This should do the trick.
PHP Code:
GivePlayerItem2(iClient, "weapon_usp_silencer");
PHP Code:
stock void GivePlayerItem2(int iClient, const char[] chItem)
{
int iTeam = GetClientTeam(iClient);
switch(iTeam) {
case 2: {
SetEntProp(iClient, Prop_Send, "m_iTeamNum", 3);
}
case 3: {
SetEntProp(iClient, Prop_Send, "m_iTeamNum", 2);
}
}
GivePlayerItem(iClient, chItem);
SetEntProp(iClient, Prop_Send, "m_iTeamNum", iTeam);
}
|
Amazing! Spend a lot of time, I've found this issue again and looks like team=0 better than 3,2
PHP Code:
SetEntProp(iClient, Prop_Send, "m_iTeamNum", 1);
|
|
|
|