Admigo Posted September 22, 2011 Posted September 22, 2011 Hee all, i make a derby server and i want if there are more then 8 players online you get money from a position. So if there are 8 players online and someone ended first he gets 1k and if someone is second he gets 750 etc. How can i do this and where? Pls help me. Thanks admigo
BinSlayer1 Posted September 22, 2011 Posted September 22, 2011 what do you mean where? in a .lua script inside a server resource.. and how? well you need to script this.. Santa only works on Christmas https://wiki.multitheftauto.com/wiki/Scr ... troduction
Al3grab Posted September 22, 2011 Posted September 22, 2011 function like this ... function() local pC= getPlayerCount() if ( pC >= 8 ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, tonumber ( 1000 ) ) end end
NotAvailable Posted September 22, 2011 Posted September 22, 2011 function like this ... function() local pC= getPlayerCount() if ( pC >= 8 ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, tonumber ( 1000 ) ) end end That will give all players 1000 >.<
Admigo Posted September 23, 2011 Author Posted September 23, 2011 I mean if there are 8 players on and a player gets on first position with derby so he gets 1000 money and when a player ends on second place he gets 750 but if there 7 players online they dont get money because the server has 8 players needed for earn money after a derby match.
Cadu12 Posted September 23, 2011 Posted September 23, 2011 You have to create your own and editor in race. PS: Are you copying ideas from EPG?
Admigo Posted September 23, 2011 Author Posted September 23, 2011 I dont copying ideas from epg noob. I just want to let players earn money if they win:S If you make a dm and you add money you dont say you copying his server because you add money. So shut up noob.
Cadu12 Posted September 23, 2011 Posted September 23, 2011 I know you are allowed copying ideas. Nice you did Insults me... I do not will help you anymore. I said you "You have to create your own and editor in race."
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