24.08.2013, 13:16
Yes i did, but it sometime owrk and sometime dont, i modded script to this
pawn Код:
#include <a_samp>
#include <zcmd>
forward HideKillDraw(playerid);
new Text:KillTextDraw[MAX_PLAYERS];
new KillTextTimer[MAX_PLAYERS];
main()
{
print("***************************************");
print("* Insulin - Kill/Death Textdraw *");
print("* Made by: Insulin *");
print("* Version: 1.1 *");
print("***************************************");
return 1;
}
public OnFilterScriptInit()
{
print("**************Killed*******************");
print(" Version: 1.1 ");
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new ptname[256];
GetPlayerName(killerid,ptname,256);
new string[256];
GetPlayerName(playerid,string,256);
format(string,sizeof(string),"You got killed by %s",string);
KillTextDraw[killerid] = TextDrawCreate(188.0, 89.0,ptname);
KillTextDraw[playerid] = CreatePlayerTextDraw(playerid, 188.0, 89.0,string);
PlayerTextDrawLetterSize(playerid, KillTextDraw[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, KillTextDraw[playerid], 1);
PlayerTextDrawColor(playerid, KillTextDraw[playerid], 16777215);
PlayerTextDrawSetShadow(playerid, KillTextDraw[playerid], 0);
PlayerTextDrawSetOutline(playerid, KillTextDraw[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, KillTextDraw[playerid], 51);
PlayerTextDrawFont(playerid, KillTextDraw[playerid], 1);
PlayerTextDrawSetProportional(playerid, KillTextDraw[playerid], 1);
TextDrawShowForPlayer(killerid, KillTextDraw[killerid]);
KillTextTimer[killerid] = SetTimerEx("HideKillDraw", 3000, false, "d", killerid);
return 1;
}
public HideKillDraw(playerid)
{
TextDrawHideForPlayer(playerid, KillTextDraw[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
TextDrawDestroy(KillTextDraw[playerid]);
return 1;
}