Kill/Death Textdraw
#1

How could I make this... please could anyone help? I know how to make the textdraw and stuff... but how do i make it display the players kills and deaths? O.o


Thanks in advance...
Reply
#2

Script Request Thread
Reply
#3

Use the OnPlayerDeath Callback and use the playerid, killerid, reason parameters. Also use the GetPlayerName function, from the playerid & killerid. This is all I can help you with right now, as you mentioned you know how to make textdraws.

Hope this helps,

Kind Regards,
Improvement™
Reply
#4

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

OnPlayerDeath
Kills[killerid]++;
Deaths[playerid]++;
new PIDstring[50], TIDstring[50];
format(PIDstring, sizeof PIDstring, "Kills: %i Deaths: %i"Kills[playerid], Deaths[playerid]);
format(TIDstring, sizeof TIDstring, "Kills: %i Deaths: %i"Kills[killerid], Deaths[killerid]
TextDrawSetString(Textdraw[playerid], PIDstring);
TextDrawSetString(Textdraw[killerid], TIDstring);
Add all of this to OnPlayerDeath except the variables, those need to be globa.
You dont need a timer to change the textdraws, just change the string like i did onplayerdeath. And if you still need help, u got my msn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)