Killcam help
#1

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?:
Reply
#2

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:
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)