
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
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!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
ending()
{
cost = 0; //Change this to how much you want the buyable ending to cost
ending_trig = getent("ending_trig","targetname");
ending_trig SetCursorHint("HINT_NOICON");
ending_trig sethintstring ("Press &&1 to end the game [Cost: " + cost + "]"); //Change the stuff in "" to what you want the text to say that the players see, the %%1 indicates the players "use" button
while(1)
{
ending_trig waittill("trigger",player);
if( player.score >= cost )
{
player maps\_zombiemode_score::minus_to_player_score( cost );
level notify( "end_game" );
}
}
}
thread ending();