Textdraw kill
#4

Here you go.

Код:
new PlayerText:Textdraw0[MAX_PLAYERS];

//you put this under OnPlayerConnect
Textdraw0[playerid] = PlayerTextDrawCreate(132.000000, 185.062500, "You are killed by:");
	PlayerTextDrawLetterSize(Textdraw0[playerid], 0.282000, 1.267498);
	PlayerTextDrawAlignment(Textdraw0[playerid], 1);
	PlayerTextDrawColor(Textdraw0[playerid], -1);
	PlayerTextDrawSetShadow(PlayerTextdraw0[playerid], 0);
	PlayerTextDrawSetOutline(Textdraw0[playerid], 1);
	PlayerTextDrawBackgroundColor(Textdraw0[playerid], 51);
	PlayerTextDrawFont(Textdraw0[playerid], 1);
	PlayerTextDrawSetProportional(Textdraw0[playerid], 1);
	
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[128];
	format(string, sizeof(string),"You are killed by: %s",GetPlayerName(killerid));
    PlayerTextDrawSetString(playerid, Textdraw0[playerid], string);
    PlayerTextDrawShow(playerid, Textdraw0[playerid]);
	return 1;
}
Reply


Messages In This Thread
Textdraw kill - by Hunud - 26.03.2018, 10:44
Re: Textdraw kill - by Nizarh - 26.03.2018, 10:50
Re: Textdraw kill - by Maximun - 26.03.2018, 11:22
Re: Textdraw kill - by Nru - 26.03.2018, 11:42
Re: Textdraw kill - by Grim_ - 26.03.2018, 11:43
Re: Textdraw kill - by Bolex_ - 26.03.2018, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)