Blood system[+REP who helps]
#1

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

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);
Reply
#3

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.
Reply
#4

use this simple system

no need to define enum for that
Reply
#5

You didn't understand me...
Reply
#6

just explain how u want!
Reply
#7

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!
Reply
#8

Use TextdrawSetString
Reply
#9

Nvm,did it myself...
Reply


Forum Jump:


Users browsing this thread: