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

[CSGO] Weapon quipment


Post New Thread Reply   
 
Thread Tools Display Modes
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 10-28-2020 , 10:56   Re: [CSGO] Weapon quipment
Reply With Quote #11

Quote:
Originally Posted by SM9 View Post
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(iClientProp_Send"m_iTeamNum"3);
        }
        case 
3: {
            
SetEntProp(iClientProp_Send"m_iTeamNum"2);
        }
    }
    
    
GivePlayerItem(iClientchItem);
    
SetEntProp(iClientProp_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(iClientProp_Send"m_iTeamNum"1); 
ZASTRELIS 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 22:15.


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