16.09.2012, 14:36
pawn Код:
new szString[128];
new name[24]; // max name is 24 please don't use 256 for names.
new kname[24]; // 24
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, kname, sizeof(kname));
format(szString, sizeof(szString), "You were killed by %s", kname);
SendClientMessage(playerid, 0xFFFFFFAA, szString);
format(szString, sizeof(szString), "You have killed %s", name);
SendClientMessage(killerid, 0xFFFFFFAA, szString);