Need Help with Onplayerdeath
#1

hi guys, I am here again because I need a bit help with my kill streak system.

here is the code
Код:
format(string, sizeof(string), "~g~Triple Kill!, ~w~You killed ~r~%s~n~~w~+~g~$~w~5000 and + 2 Score", getPlayerName(playerid));
	        TextDrawSetString(Death, string);
	        TextDrawShowForPlayer(killerid, Death)
My problem is I just want to show this textdraw to the killer not the player who dead but it's showing the textdraw to the both players..

pls help me out
Reply
#2

What's the number of cells in the array you created called string.
For Example :- new string[128],string[256] etc..
Reply
#3

new string[256];
Reply
#4

The 'Death' textdraw should be an array, otherwise it'll update for everyone.
Reply
#5

:\ how ?
Reply
#6

anyone pls ?
Reply
#7

Код:
new Text:Death;
 
public OnGameModeInit()
{
    Death = TextDrawCreate(1.0, 5.6, "your message"); 
    return 1;
}
Have you tried this ?
Reply
#8

bro I have everything the textdraw etc... but the textdraw is appearing for everyone I just want to show the textdraw to the Killer.. who killed that player..
Reply
#9

Код:
if(killerid!=INVALID_PLAYER_ID)
{
    TextDrawShowForPlayer(killerid, Death);
}
Here you go.Maybe this helps you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)