Textdraw Help please help me [+REP]
#1

PHP код:
#include <a_samp>
new Text:GiveDamage[MAX_PLAYERS];
new 
Text:TakeDamage[MAX_PLAYERS];
public 
OnGameModeInit()
{
    for(new 
iMAX_PLAYERS; ++i)
    {
    
GiveDamage[i] = TextDrawCreate(171.000000388.000000" ");
    
TextDrawAlignment(GiveDamage[i], 2);
    
TextDrawBackgroundColor(GiveDamage[i], 255);
    
TextDrawFont(GiveDamage[i], 2);
    
TextDrawLetterSize(GiveDamage[i], 0.1600000.599999);
    
TextDrawColor(GiveDamage[i], 0x00FF04FF);
    
TextDrawSetOutline(GiveDamage[i], 1);
    
TextDrawSetProportional(GiveDamage[i], 1);
    }
    for(new 
iMAX_PLAYERS; ++i)
    {
    
TakeDamage[i] = TextDrawCreate(440.000000,388.000000" ");
    
TextDrawAlignment(TakeDamage[i], 2);
    
TextDrawBackgroundColor(TakeDamage[i], 255);
    
TextDrawFont(TakeDamage[i], 2);
    
TextDrawLetterSize(TakeDamage[i], 0.1600000.599999);
    
TextDrawColor(TakeDamage[i], 0xE81010FF);
    
TextDrawSetOutline(TakeDamage[i], 1);
    
TextDrawSetProportional(TakeDamage[i], 1);
    }
    return 
1;
}
forward OnPlayerGiveDamage(playeriddamagedidFloatamountweaponid);
public 
OnPlayerGiveDamage(playeriddamagedidFloatamountweaponid)
{
    new 
s[20];
    
format(s20"+Damage %.0f"amount);
    
TextDrawSetString(GiveDamage[playerid], s);
    
TextDrawShowForPlayer(playeridGiveDamage[playerid]);
    
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
    
SetTimerEx("DestruirTextoDraw"1000false"i"playerid);
    return 
1;

what should i have to that it calculate damage for example like i shoot with him deagle it hit 46 and then 2nd it show 46 not + it , what should i do that it show 92 and so on ? please help rep + who help me
Reply


Messages In This Thread
Textdraw Help please help me [+REP] - by HydraHumza - 20.02.2015, 16:23
Re: Textdraw Help please help me [+REP] - by CalvinC - 20.02.2015, 16:58
Re: Textdraw Help please help me [+REP] - by HydraHumza - 21.02.2015, 04:47
Re: Textdraw Help please help me [+REP] - by Gammix - 21.02.2015, 04:55
Re: Textdraw Help please help me [+REP] - by HydraHumza - 21.02.2015, 07:59

Forum Jump:


Users browsing this thread: 1 Guest(s)