Kills / Deaths not working
#1

Hi Guys can someone make this functionable. like when i kill someone it does'nt add automaticlly it will add after you die well i want is to make it Automaticlly added without dying.

This is My Script

Код:
 public OnPlayerUpdate (playerid)
{
	TextDrawShowForPlayer(playerid, Rank1[playerid]);
	new str[200];
	format(str, sizeof(str),"~W~SCR:~y~%d~n~~w~K:~y~%d ~w~D:~y~%d", GetPlayerScore(playerid),PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
	TextDrawSetString(Rank1[playerid], str);
      }
      return 1;
}
Reply
#2

Quote:
Originally Posted by BlAcKEdiTioN
Посмотреть сообщение
well i want is to make it Automaticlly added without dying.
How would that even work? If you don't die or make a kill, then there is no need to update that data in the first place.
Reply
#3

Automatically then what r the conditions?
Reply
#4

lol. all i want is when i kill, it automaticlly added the Scores and Kills. it never be added if i didn't die.

Example
Score: 12500 Kills: 5 Deaths: 1

When i kill Enemy or Capture a Base and gain +5 Score and +1 Kill
The Results are still Same Still: Score: 12500 Kills: 5 Deaths: 1

When i Died it will be updated it become
Score: 12505 Kills: 6 Deaths: 1

now all i want is automaticlly added. i hope you can help me guys + rep if you help me
Reply
#5

Use timers.
Reply
#6

Yeah so, use killerid in OnPlayerDeath?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)