PrintRemainingHealth()
{
if (!g_bEnabled)
return;
new tankclient = GetTankClient();
if (!tankclient) return;
decl String:name[MAX_NAME_LENGTH];
if (IsFakeClient(tankclient)) name = "AI";
else GetClientName(tankclient, name, sizeof(name));
PrintToChatAll("[HP TANK] Il reste %d HP a (%N).", name, g_iLastTankHealth);
}
>> It gives a random number instead of the nickname, I think it gives the userid?
The number of remaining HP to tank is not correct when the survivors are all on land.
A tank has 6000 hp in versus mode.
Screenshot :
first
second (Works) :
could you tell me how to fix this?
PHP Code:
PrintToChatAll("[HP TANK] Il reste %N HP a (%d).", name, g_iLastTankHealth);