01.06.2015, 14:27
Hey people im making killcam and i dont know how to make when someone kill you you will see via textdraw which weapon he used?:
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;
}