SA-MP Forums Archive
OnPlayerDeath? [+REP] - 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: OnPlayerDeath? [+REP] (/showthread.php?tid=526680)



OnPlayerDeath? [+REP] - arlindi - 18.07.2014

Hello i want to make onplayer death something like this
PHP код:
    format(string,sizeof(string),"~w~YOU HAVE KILLED~r~ %s~w~ WITH AN %s",PlayerName(playerid),gunname);
    
TextDrawSetString(iKilled[killerid],string); 
But when player death (example falling, or use command /kill) send message with textdraw you died....


Re: OnPlayerDeath? [+REP] - arlindi - 18.07.2014

Not this man .


Re: OnPlayerDeath? [+REP] - GeekSiMo - 18.07.2014

You Can Do it Without Textdraws, Use it with GameTextForPlayer !!


Re: OnPlayerDeath? [+REP] - GeekSiMo - 18.07.2014

These Wikis can help you :
https://sampwiki.blast.hk/wiki/OnPlayerDeath
https://sampwiki.blast.hk/wiki/GetWeaponName
https://sampwiki.blast.hk/wiki/GameTextForPlayer
https://sampwiki.blast.hk/wiki/GameTextStyle


Re: OnPlayerDeath? [+REP] - arlindi - 18.07.2014

I dont was need this -.-