SA-MP Forums Archive
Asking a thing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Asking a thing (/showthread.php?tid=316388)



Asking a thing - Face9000 - 06.02.2012

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?


Re: Asking a thing - Face9000 - 06.02.2012

bump


Re: Asking a thing - Babul - 06.02.2012

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


Re : Asking a thing - ricardo178 - 06.02.2012

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


Re: Re : Asking a thing - Face9000 - 07.02.2012

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]


Re: Asking a thing - Face9000 - 08.02.2012

bump