14.02.2014, 23:03
Код:
format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s (ID:%i) zabil %s (ID:%i).",killername, playerid, playername, playerid);
But the player id in message its same
format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s (ID:%i) zabil %s (ID:%i).",killername, playerid, playername, playerid);
format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s (ID:%i) zabil %s (ID:%i).",killername, killerid, playername, playerid);
Код:
format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s (ID:%i) zabil %s (ID:%i).",killername, playerid, playername, playerid); But the player id in message its same |
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128], kname[MAX_PLAYER_NAME+1], pname[MAX_PLAYER_NAME+1];
GetPlayerName(killerid, kname, sizeof(kname));
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "> Player %s (ID:%d) has killed Player %s (ID:%d)", kname, killerid, pname, playerid);
// Do whatever here to send it to whoever you want
return 1;
}