bYka
11-09-2014, 04:41
HELLO. HELP ME INSERT CORRECT , THAT IT IS NOT REPEATED.
PrintToChatAll("\x04[INFO]\x05 NEW %s TANK SPAWN HP: %d \x04", clName , maxHP);
In this code:
ShowHealthGauge(client, maxBAR, maxHP, nowHP, String:clName[]){
new percent = RoundToCeil((float(nowHP) / float(maxHP)) * float(maxBAR));
new i, length = maxBAR * nCharLength + 2;
decl String:showBAR[length];
showBAR[0] = '\0';
for(i=0; i<percent&&i<maxBAR; i++){
StrCat(showBAR, length, sCharHealth);
}
for(; i<maxBAR; i++){
StrCat(showBAR, length, sCharDamage);
}
if(nShowType){
if(!nShowNum){
PrintHintText(client, "HP: |-%s-| %s", showBAR, clName);
}
else{
PrintHintText(client, " %s HP: %d / %d ", clName,nowHP, maxHP);
}
}
else{
if(!nShowNum){
PrintCenterText(client, "HP: |-%s-| %s", showBAR, clName);
}
else{
PrintHintText(client, " %s HP: %d / %d ", clName,nowHP, maxHP);
}
}
PrintToChatAll("\x04[INFO]\x05 NEW %s TANK SPAWN HP: %d \x04", clName , maxHP);
} I have a lot of spam in chat :
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000
PrintToChatAll("\x04[INFO]\x05 NEW %s TANK SPAWN HP: %d \x04", clName , maxHP);
In this code:
ShowHealthGauge(client, maxBAR, maxHP, nowHP, String:clName[]){
new percent = RoundToCeil((float(nowHP) / float(maxHP)) * float(maxBAR));
new i, length = maxBAR * nCharLength + 2;
decl String:showBAR[length];
showBAR[0] = '\0';
for(i=0; i<percent&&i<maxBAR; i++){
StrCat(showBAR, length, sCharHealth);
}
for(; i<maxBAR; i++){
StrCat(showBAR, length, sCharDamage);
}
if(nShowType){
if(!nShowNum){
PrintHintText(client, "HP: |-%s-| %s", showBAR, clName);
}
else{
PrintHintText(client, " %s HP: %d / %d ", clName,nowHP, maxHP);
}
}
else{
if(!nShowNum){
PrintCenterText(client, "HP: |-%s-| %s", showBAR, clName);
}
else{
PrintHintText(client, " %s HP: %d / %d ", clName,nowHP, maxHP);
}
}
PrintToChatAll("\x04[INFO]\x05 NEW %s TANK SPAWN HP: %d \x04", clName , maxHP);
} I have a lot of spam in chat :
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000
[INFO] NEW TANK SPAWN HP: 20000