Custom death reasons [Rep+]
#4

Try this

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   PInfo[playerid][Deaths]++;
   PInfo[killerid][Kills]++;

    new weapname[50];
    new string[128];
    GetWeaponName(GetPlayerWeapon(killerid), weapname, sizeof(weapname));

    switch (reason)
    {
        case 49:
        {
            format(string, sizeof(string), "~r~%s~w~ got ~r~hit by a vehicle.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
        case 50:
        {
            format(string, sizeof(string), "~r~%s~w~ got ~r~Heli-bladed.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
        case 51:
        {
            format(string, sizeof(string), "~r~%s~w~ has ~r~died in explosion.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
        case 53:
        {
            format(string, sizeof(string), "~r~%s~w~ has ~r~drowned.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
        case 54:
        {
            format(string, sizeof(string), "~r~%s~w~ has ~r~fell to death.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
        default:
        {
            format(string, sizeof(string), "~r~%s~w~ has died.", GetPName(playerid));
            GameTextForAll(string, 3000, 3);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 07:48
Re: Custom death reasons [Rep+] - by MasonSFW - 19.10.2014, 08:15
Re: Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 08:36
Re: Custom death reasons [Rep+] - by MasonSFW - 19.10.2014, 09:02
Re: Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 09:19
Re: Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 12:03
Re: Custom death reasons [Rep+] - by Quickie - 19.10.2014, 12:24
Re: Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 12:30
Re: Custom death reasons [Rep+] - by Quickie - 19.10.2014, 12:41
Re: Custom death reasons [Rep+] - by BamGuitar - 19.10.2014, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)