#include <a_samp>new PlayerText:HealthTD;public OnPlayerConnect(playerid) {HealthTD = CreatePlayerTextDraw(playerid, 578.000000, 68.000000, \"100\");PlayerTextDrawAlignment(playerid, HealthTD, 2);PlayerTextDrawBackgroundColor(playerid, HealthTD, 255);PlayerTextDrawFont(playerid, HealthTD, 1);PlayerTextDrawLetterSize(playerid, HealthTD, 0.300000, 0.699999);PlayerTextDrawColor(playerid, HealthTD, -1);PlayerTextDrawSetOutline(playerid, HealthTD, 1);PlayerTextDrawSetProportional(playerid, HealthTD, 1);return 1;}public OnPlayerSpawn(playerid) {PlayerTextDrawShow(playerid, HealthTD);for(new player; player < MAX_PLAYERS; player++) SetTimerEx(\"Health\", 1500, true, \"i\", player);return 1;}forward Health(playerid);public Health(playerid) {new Float:health, str[46];str[0] = EOS;GetPlayerHealth(playerid, health);format(str, sizeof(str), \"%i\", health);PlayerTextDrawSetString(playerid, str);return 1;}
forward Health(playerid);public Health(playerid) {new Float:health, str[46];str[0] = EOS;GetPlayerHealth(playerid, health);format(str, sizeof(str), \"%i\", health);PlayerTextDrawSetString(playerid, str);return 1; } // lehet ez maradt le?}
forward Health(playerid);public Health(playerid) {new Float:health, str[46];str[0] = EOS;GetPlayerHealth(playerid, health);format(str, sizeof(str), \"%i\", health);PlayerTextDrawSetString(playerid, str);return 1;}
#include <a_samp>#include zcmdforward Health(playerid);new PlayerText:HealthTD;new HealthTimer[MAX_PLAYERS];public OnPlayerConnect(playerid){HealthTD = CreatePlayerTextDraw(playerid, 578.000000, 68.000000, \"100\");PlayerTextDrawAlignment(playerid, HealthTD, 2);PlayerTextDrawBackgroundColor(playerid, HealthTD, 255);PlayerTextDrawFont(playerid, HealthTD, 1);PlayerTextDrawLetterSize(playerid, HealthTD, 0.300000, 0.699999);PlayerTextDrawColor(playerid, HealthTD, -1);PlayerTextDrawSetOutline(playerid, HealthTD, 1);PlayerTextDrawSetProportional(playerid, HealthTD, 1);HealthTimer[playerid] = SetTimerEx(\"Health\", 1500, true, \"i\", playerid);return 1;}public OnPlayerDisconnect(playerid){KillTimer(HealthTimer[playerid]);return 1;}public OnPlayerSpawn(playerid){PlayerTextDrawShow(playerid, HealthTD);return 1;}public Health(playerid){new Float:health, str[46];str[0] = EOS;GetPlayerHealth(playerid, health);format(str, sizeof(str), \"%i\", health);PlayerTextDrawSetString(playerid, HealthTD, str);return 1;}