help with this textdraw
#1

Код:
//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;
}
well the i don't know what's wrong with the code, but when i enter the server and i kill someone it says that i got owned, and it's supposed to say that the other player got owned...
any help here please?
Reply


Messages In This Thread
help with this textdraw - by Mishima - 23.07.2009, 21:19
Re: help with this textdraw - by MadeMan - 23.07.2009, 22:00
Re: help with this textdraw - by Mishima - 23.07.2009, 22:06
Re: help with this textdraw - by Joe Staff - 23.07.2009, 22:08
Re: help with this textdraw - by Mishima - 23.07.2009, 22:45
Re: help with this textdraw - by MadeMan - 23.07.2009, 22:47
Re: help with this textdraw - by Mishima - 23.07.2009, 23:35

Forum Jump:


Users browsing this thread: 2 Guest(s)