Asking a thing
#1

Hello,i've a pay day code and i want to make it more complicated.

I've a timer of 10 minutes,every 10 minutes players gets their pay day.

I've to ask: How to give this payday pointing to kills/deaths ratio?

Ex: Player has 10 kills and 10 deaths so he get 100$ for every kill and 100$ for everydeath: (2000$ in total)

How to?
Reply
#2

bump
Reply
#3

Payout=100*(kills[playerid]+deaths[playerid]); ?
but thats ignoring the ratio. i would take away $100 for each death..
Reply
#4

Giving us the code, and the function you use to check deaths and kills could help really much. :P
Reply
#5

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
Giving us the code, and the function you use to check deaths and kills could help really much. :P
pawn Код:
enum pInfo
{
    pScore,
    pDeaths
}
Score: GetPlayerScore(playerid)
Deaths: PlayerInfo[playerid][pDeaths]
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)