21.05.2014, 15:56
i am not good at strcmp buy ill give it a try
and why are u still using strcmp when theres zcmd and ycmd etc..
same goes for the lastdeath
and why are u still using strcmp when theres zcmd and ycmd etc..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/lastkill", true, 9))
{
new string[128];
new ID;
if(PlayerInfo[playerid][pAdmin] >= 1337) return SendClientMessage(playerid,-1,"You are not high enough to use this command");
if(!sscanf(cmdtext[10], "u", ID))
{
format(string,sizeof(string),"%s(%d) was killed by %s(%d)",GetName(ID),ID,GetName(lastkillid),lastkillid);
SendClientMessage(playerid, -1, string);
return 1;
}
SendClientMessage(playerid, -1, "USAGE: /Example <PlayerName/ID>");
return 1;
}
return 0;
}