01.06.2015, 16:37
Ok, for example, when a player dies, assuming you already have your Player Textdraws Created, you can create a string, get the weapon name of the reason a player died, and from there, you can set the string of that textdraw and show it to the player that died.
For example:
For example:
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new wepname[32],str[42];
GetWeaponName(reason,wepname,sizeof(wepname));
format(str,sizeof(str),"Weapon: %s",wepname);
PlayerTextDrawSetString(playerid,KillCamText[playerid],str);
PlayerTextDrawShow(playerid,KillCamText[playerid]);
return 1;
}