Jump to content

having problems here help please :)


Recommended Posts

hey i made this script but it doesnt work its meant to wait until someone reaches five minutes then they win and the map changes. but if they die there time is reset is this script made right or have i mad any errors of any sort.

 function winGame() 
    local count = 0 
        setTimer ( winGame, 1000, 1 ) 
        if count== 300 then 
givePlayerMoney ( player, 25000 ) 
            outputChatBox("You have won!") 
            count = count + 1 
addEventHandler ( "onPlayerSpawn", getRootElement(), winGame ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...