Need Help with Onplayerdeath - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help with Onplayerdeath (
/showthread.php?tid=513599)
Need Help with Onplayerdeath -
Vaishnav - 17.05.2014
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
Re: Need Help with Onplayerdeath -
Rittik - 17.05.2014
What's the number of cells in the array you created called string.
For Example :- new string[128],string[256] etc..
Re: Need Help with Onplayerdeath -
Vaishnav - 17.05.2014
new string[256];
Re: Need Help with Onplayerdeath -
Vince - 17.05.2014
The 'Death' textdraw should be an array, otherwise it'll update for everyone.
Re: Need Help with Onplayerdeath -
Vaishnav - 17.05.2014
:\ how ?
Re: Need Help with Onplayerdeath -
Vaishnav - 17.05.2014
anyone pls ?
Re: Need Help with Onplayerdeath -
Rittik - 17.05.2014
Код:
new Text:Death;
public OnGameModeInit()
{
Death = TextDrawCreate(1.0, 5.6, "your message");
return 1;
}
Have you tried this ?
Re: Need Help with Onplayerdeath -
Vaishnav - 17.05.2014
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..
Re: Need Help with Onplayerdeath -
Rittik - 17.05.2014
Код:
if(killerid!=INVALID_PLAYER_ID)
{
TextDrawShowForPlayer(killerid, Death);
}
Here you go.Maybe this helps you.