Jump to content

Another problem i have.


manve1

Recommended Posts

I have a problem with making robber job, the problem is, i made that when he hits a marker, he should become "robber" but in the same script i made that it would restart the resource and i have no clue how to make the next house appear in different location without restarting resource.

function pay( source ) 
local misc = getResourceFromName ( "jobs" ) 
ran = math.random (1, 2800) 
givePlayerMoney( source, ran ) 
restartResource( misc ) 
end 
addEventHandler( "onMarkerHit", marker, pay ) 
  
local crims = createTeam( "Robber", 255, 0, 0 ) 
function putInTeam( player ) 
setPlayerTeam( player, crims ) 
end 
addCommandHandler( "robber", putInTeam ) 
addEventHandler("onMarkerHit", marker, putInTeam) 

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...