View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-25-2012 , 17:06   Re: Tank Damage Announce by griffin
Reply With Quote #11

Quote:
Originally Posted by eric0279 View Post
Thanks shavit, I test the next tank.

edit : doesn't works :
Code:
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)."nameg_iLastTankHealth); 
I meant that.
__________________
retired
shavit is offline