Onplayerdeath
#1

Hi guys, i want a script in onplayerdeath, when u kill someone it will send you a gametext (gametextforplayer)
Example: u killed %d

Regards *******12
Reply
#2

pawn Код:
new pname[MAX_PLAYER_NAME]
new kstring[128]; //killer message
    GetPlayerName(playerid, pname, sizeof(pname));
    format(kstring, sizeof(kstring), "~b~You killed %s",pname);
    GameTextForPlayer(killerid, kstring, 4000, 3);
Reply
#3

^ No need for that large string. Well I am going to post mine aswell since I made it already..
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new String[40], pName[24];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(String, sizeof(String), "You killed ~r~%s!", pName);
    GameTextForPlayer(killerid, String, 6000, 6);
    return 1;
}
Reply
#4

Ok thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)