02.02.2013, 20:04
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
Example: u killed %d
Regards *******12
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);
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;
}