23.07.2009, 21:19
Код:
//top of the script forward HideKillDraw(playerid); new Text:KillTextDraw[MAX_PLAYERS]; new KillTextTimer[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { new ptname[256]; GetPlayerName(killerid,ptname,256); format(string,sizeof(string),"%s Owned",ptname); KillTextDraw[killerid] = TextDrawCreate(320.0, 360.0,string); TextDrawFont(KillTextDraw[killerid], 2); TextDrawSetShadow(KillTextDraw[killerid], 0); TextDrawSetOutline(KillTextDraw[killerid], 1); TextDrawAlignment(KillTextDraw[killerid], 2); TextDrawColor(KillTextDraw[killerid], COLOR_SRED); 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; }
any help here please?