Raised This Month: $12 Target: $400
 3% 

Solved How to hide/ remove ball on dust2?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xSaG
Junior Member
Join Date: Sep 2018
Location: Romānia
Old 09-19-2018 , 13:51   How to hide/ remove ball on dust2?
Reply With Quote #1

How to hide/ remove ball on dust2?

I pay

Last edited by xSaG; 09-19-2018 at 16:21.
xSaG is offline
Vaggelis
Senior Member
Join Date: May 2017
Old 09-19-2018 , 14:24   Re: How to hide/ remove ball on dust2?
Reply With Quote #2

PHP Code:
new ent

while((ent FindEntityByClassname(ent"prop_physics_multiplayer")) != -1)
{
    new 
String:m_ModelName[64]
    
GetEntPropString(entProp_Data"m_ModelName"m_ModelNamesizeof(m_ModelName))
    
    if(
StrContains(m_ModelName"soccerball"))
    {
        
AcceptEntityInput(ent"Kill")
    }

Vaggelis is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-19-2018 , 15:55   Re: How to hide/ remove ball on dust2?
Reply With Quote #3

Quote:
Originally Posted by Vaggelis View Post
PHP Code:
new ent

while((ent FindEntityByClassname(ent"prop_physics_multiplayer")) != -1)
{
    new 
String:m_ModelName[64]
    
GetEntPropString(entProp_Data"m_ModelName"m_ModelNamesizeof(m_ModelName))
    
    if(
StrContains(m_ModelName"soccerball"))
    {
        
AcceptEntityInput(ent"Kill")
    }

If you're on SM 1.9.0.6225 or higher, you can also use RemoveEntity(ent) as a replacement for AcceptEntityInput(ent, "Kill").
__________________
Psyk0tik is offline
xSaG
Junior Member
Join Date: Sep 2018
Location: Romānia
Old 09-19-2018 , 16:12   Re: How to hide/ remove ball on dust2?
Reply With Quote #4

Ty guys
xSaG 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 10:56.


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