manve1 Posted September 30, 2012 Share Posted September 30, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now