KD System
#1

Heey guys,

I want to make a killratio textdraw.
But how can i do it?
I dont know how to rise it.

Pls help
Admigo
Reply
#2

The kill ratio is based off a division (kills / deaths) so for getting a kill ratio use this operation:

pawn Код:
new Float:kdr;
kdr = kills / deaths;
Reply
#3

And where to put this?
Reply
#4

Nobody knows how i can make a kd system?
Reply
#5

pawn Код:
new Kills[MAX_PLAYERS];
new Deaths[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
      Deaths[playerid]++;
      if(killerid != INVALID_PLAYER_ID && killerid != playerid)
     {
           Kills[killerid]++;
     }
     return 1;
}
Then go through this tutorial to learn how to make textdraws:
http://forum.sa-mp.com/showthread.ph...+draw+tutorial
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)