Jump to content

Derby win if 8 players or more connected.


Admigo

Recommended Posts

Posted

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

Posted

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 
  
  

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

Posted

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.

Posted

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.

Posted

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

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