/lastkill and /lastdeath
#10

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..

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;
}
same goes for the lastdeath
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)