21.05.2014, 15:43
pawn Код:
lastdeathid[MAX_PLAYERS];
lastkillid[MAX_PLAYERS];
pawn Код:
lastdeathid[killerid] = playerid;
lastkillid[playerid] = killerid;
pawn Код:
CMD:lastdeath(playerid, params[])
{
new string[128];
new ID;
if(sscanf(params,"u", ID)) return SendClientMessage(playerid,-1,"USAGE: /lastkill <PlayerName/ID>");
format(string,sizeof(string),"%s(%d) was killed by %s(%d)",GetName(ID),ID,GetName(lastkillid),lastkillid);
SendClientMessage(playerid, -1, string);
return 1;
}
CMD:lastkill(playerid, params[])
{
new string[128];
new ID;
if(sscanf(params,"u", ID)) return SendClientMessage(playerid,-1,"USAGE: /lastkill <PlayerName/ID>");
format(string,sizeof(string),"%s(%d) has killed %s(%d)",GetName(ID),ID,GetName(lastdeathid),lastdeathid);
SendClientMessage(playerid, -1, string);
return 1;
}