SA-MP Forums Archive
Kills / Deaths not working - 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: Kills / Deaths not working (/showthread.php?tid=510309)



Kills / Deaths not working - BlAcKEdiTioN - 30.04.2014

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;
}



Re: Kills / Deaths not working - Vince - 30.04.2014

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.


Re: Kills / Deaths not working - Guest4390857394857 - 30.04.2014

Automatically then what r the conditions?


Re: Kills / Deaths not working - BlAcKEdiTioN - 30.04.2014

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


Re: Kills / Deaths not working - Kyance - 30.04.2014

Use timers.


Re: Kills / Deaths not working - Vince - 30.04.2014

Yeah so, use killerid in OnPlayerDeath?