SA-MP Forums Archive
Blood system[+REP who helps] - 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: Blood system[+REP who helps] (/showthread.php?tid=550670)



Blood system[+REP who helps] - Kruno88 - 14.12.2014

How do I get players blood?I have enum for it,like when you type /blood it tells you your blood...


Re: Blood system[+REP who helps] - Ryz - 14.12.2014

use this to make command

pawn Код:
new Float:Health,string[128];
   GetPlayerHealth(playerid, Health);

format(string,sizeof(string),"your health is %0.1f",Health);
SendClientMessage(playerid,-1,string);



Re: Blood system[+REP who helps] - Kruno88 - 14.12.2014

Quote:
Originally Posted by Ryz
Посмотреть сообщение
use this to make command

pawn Код:
new Float:Health,string[128];
   GetPlayerHealth(playerid, Health);

format(string,sizeof(string),"your health is %0.1f",Health);
SendClientMessage(playerid,-1,string);
Thanx,but how can I create it with enums,like pBlood.


Re: Blood system[+REP who helps] - Ryz - 14.12.2014

use this simple system

no need to define enum for that


Re: Blood system[+REP who helps] - Kruno88 - 14.12.2014

You didn't understand me...


Re: Blood system[+REP who helps] - Ryz - 14.12.2014

just explain how u want!


Re: Blood system[+REP who helps] - Kruno88 - 14.12.2014

Quote:
Originally Posted by Ryz
Посмотреть сообщение
just explain how u want!
Код:
	DayZ_Debug2[playerid] = CreatePlayerTextDraw(playerid, 561.875000, 4.083327, "DEBUG MONITOR:");
	PlayerTextDrawLetterSize(playerid, DayZ_Debug2[playerid], 0.289375, 1.220833);
	PlayerTextDrawAlignment(playerid, DayZ_Debug2[playerid], 2);
	PlayerTextDrawColor(playerid, DayZ_Debug2[playerid], -1);
	PlayerTextDrawSetShadow(playerid, DayZ_Debug2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, DayZ_Debug2[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, DayZ_Debug2[playerid], 255);
	PlayerTextDrawFont(playerid, DayZ_Debug2[playerid], 2);
	PlayerTextDrawSetProportional(playerid, DayZ_Debug2[playerid], 1);
	DayZ_Debug3[playerid] = CreatePlayerTextDraw(playerid, 560.625000, 20.416646, "Murders: 0~n~Bandits Killed: 0~n~Blood: 12000~n~Players (Connected/Total): 0/0~n~Temperature: 38~n~Alive time:~n~Weapon: 0~n~Name:");
	PlayerTextDrawLetterSize(playerid, DayZ_Debug3[playerid], 0.178749, 1.314166);
	PlayerTextDrawAlignment(playerid, DayZ_Debug3[playerid], 2);
	PlayerTextDrawColor(playerid, DayZ_Debug3[playerid], -1);
	PlayerTextDrawSetShadow(playerid, DayZ_Debug3[playerid], 0);
	PlayerTextDrawSetOutline(playerid, DayZ_Debug3[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, DayZ_Debug3[playerid], 255);
	PlayerTextDrawFont(playerid, DayZ_Debug3[playerid], 2);
	PlayerTextDrawSetProportional(playerid, DayZ_Debug3[playerid], 1);
How do I set players Blood in textdraws!


Re: Blood system[+REP who helps] - M4D - 14.12.2014

Use TextdrawSetString


Re: Blood system[+REP who helps] - Kruno88 - 14.12.2014

Nvm,did it myself...