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

Solved [CSGO] Dronegun didn't work team restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FroGeX
Senior Member
Join Date: Aug 2020
Old 08-18-2020 , 14:00   [CSGO] Dronegun didn't work team restrict
Reply With Quote #1

Hello i have two method for spawn drone gun

PHP Code:
        int dronegun = -1;
        if((
dronegun CreateEntityByName("point_dz_dronegun")) != -1)
        {
            
DispatchKeyValue(dronegun"TeamNum""2");
            
DispatchKeyValue(dronegun"teamnumber""2");
            
DispatchKeyValue(dronegun"spawnAutomatically""0");
            
SetEntPropEnt(dronegunProp_Send"m_iTeamNum"CS_TEAM_CT);
            
SetEntProp(dronegunProp_Send"m_iTeamNum"CS_TEAM_CT);
            
TeleportEntity(dronegunendNULL_VECTORNULL_VECTOR);
            
AcceptEntityInput(dronegun"Spawn");
            
ActivateEntity(dronegun);
        } 
PHP Code:
        int dronegun = -1;
        if((
dronegun CreateEntityByName("dronegun")) != -1)//
        
{
            
DispatchKeyValue(dronegun"TeamNum""2");
            
DispatchKeyValue(dronegun"teamnumber""2");
            
DispatchKeyValue(dronegun"spawnAutomatically""0");
            
SetEntPropEnt(dronegunProp_Send"m_iTeamNum"CS_TEAM_CT);
            
SetEntProp(dronegunProp_Send"m_iTeamNum"CS_TEAM_CT);
            
DispatchSpawn(dronegun);
            
TeleportEntity(dronegunendNULL_VECTORNULL_VECTOR);
            
AcceptEntityInput(dronegun"Spawn");
            
ActivateEntity(dronegun);
        } 
but dronegun still shooting on all teams

Last edited by FroGeX; 08-19-2020 at 07:01. Reason: solved
FroGeX is offline
Truyn
Junior Member
Join Date: Mar 2019
Old 10-04-2021 , 16:05   Re: [CSGO] Dronegun didn't work team restrict
Reply With Quote #2

bro, how did you solve this problem?
Truyn is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-04-2021 , 16:56   Re: [CSGO] Dronegun didn't work team restrict
Reply With Quote #3

I'm not 100% sure.
But there is advice from Valve Wiki Developer site, when you have created entity (and spawn ?), insert entity parameters after 0.1 sec.
__________________
Do not Private Message @me
Bacardi 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:47.


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