/lastkill and /lastdeath
#8

pawn Код:
lastdeathid[MAX_PLAYERS];
lastkillid[MAX_PLAYERS];
Onplayerdeath

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;
}
Reply


Messages In This Thread
/lastkill and /lastdeath - by Luis54321 - 21.05.2014, 14:36
Re: /lastkill and /lastdeath - by Rittik - 21.05.2014, 14:47
AW: /lastkill and /lastdeath - by Luis54321 - 21.05.2014, 14:49
Re: /lastkill and /lastdeath - by JFF - 21.05.2014, 15:29
AW: /lastkill and /lastdeath - by Luis54321 - 21.05.2014, 15:31
Re: /lastkill and /lastdeath - by JFF - 21.05.2014, 15:38
AW: /lastkill and /lastdeath - by Luis54321 - 21.05.2014, 15:40
Re: /lastkill and /lastdeath - by JFF - 21.05.2014, 15:43
AW: /lastkill and /lastdeath - by Luis54321 - 21.05.2014, 15:47
Re: /lastkill and /lastdeath - by JFF - 21.05.2014, 15:56

Forum Jump:


Users browsing this thread: 3 Guest(s)