SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 25/05/2011, 10:05 PM   #1
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default KD System

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
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline  
Old 25/05/2011, 11:30 PM   #2
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,528
Reputation: 449
Default Respuesta: KD System

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

pawn Code:
new Float:kdr;
kdr = kills / deaths;
admantis is offline  
Old 26/05/2011, 10:50 AM   #3
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: KD System

And where to put this?
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline  
Old 26/05/2011, 12:14 PM   #4
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: KD System

Nobody knows how i can make a kd system?
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline  
Old 26/05/2011, 12:34 PM   #5
[DM]Kane
Big Clucker
 
Join Date: Feb 2009
Location: New Delhi, India
Posts: 79
Reputation: 10
Default Re: KD System

pawn Code:
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
[DM]Kane is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM]ZCops_VS_Criminals | NFS Catch system | Taxi Bots System | by Zuc [ZFM]Zuc Gamemode Scripts 139 07/10/2018 05:03 PM
the best login/register system without admin system and show in dialog misho1 Help Archive 2 06/05/2011 01:24 AM
[HELP] Robbery system, tax system, houseing system Commander_Shaw Help Archive 3 15/09/2010 05:18 AM
where can i download an admin system and an login and register system dendudes123 Help Archive 3 19/06/2010 07:13 PM


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.