What kind of response are you expecting here? Do you want Lua tutorials, or for someone to write it for you? Also, you're not giving us a lot of information on what you want to do. What do you mean, jobs in Murder?
I'm assuming you're asking for help with starting? I dunno what you mean "Jobs" as in like.. a target to kill for points? I'd think it'd be a check for players in the server then assign a number to each player then have it randomly select a user for assassinating?
Maybe a bit more information would be helpful here.
That's pretty easy, you just need to learn Lua!
player.GetAll
This will be key in your attempt at making this game mode or whatever.
Annnd this
http://lua-users.org/wiki/MathLibraryTutorial
Mainly the math.random function.
Generating uniform random numbers in Lua great explanation on what to do to get a desired output
So what I'd do is assign player.GetAll to a variable so that when a new player joins the game you can get a count of the players and since every player is assigned a number I'd pass that variable in that random number generation script
Or something along those lines. You'll have to play around with it until you get it working as desired.
Sorry, you need to Log In to post a reply to this thread.