
Posts
307
Respect
89Add +1
Forum Rank
Perk Hacker
Primary Group
Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
players = get_players();
for( i = 0; i < players.size; i++ )
{
if(players[i] IsTouching( dmg )) players[i] DoDamage( 30, dmg.origin );
}
u dnt wnt 2 no



Aye mate you don't know me so y don't you shut tf up ok buddy

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite | |
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I made a scipt where i use this function: Code SnippetPlaintextplayers = get_players();
for( i = 0; i < players.size; i++ )
{
if(players[i] IsTouching( dmg )) players[i] DoDamage( 30, dmg.origin );
}
Now my problem - if a player goes down because of this script the map restarts like in SP. Hope you understand my problem.