cmd:stats [REP +]
#3

Here you go

pawn Код:
CMD:stats(playerid, params[])
{
    new target = playerid; //default our target var as playerid
    if(!isnull(params)) sscanf(params, "u", target); //if the params aren't null, we sscanf the params

    new
        string[200],
        PlayerName[24]
     ;
    GetPlayerName(target,PlayerName,sizeof PlayerName);
    format(string, sizeof(string), "Name: %s | ID: %d | Team: %s | Score: %d | Kills: %i | Deaths: %i | Money: %d | Adminlevel: %d", PlayerName , target, GetTeamName(target), GetPlayerScore(target), PlayerInfo[target][Kills], PlayerInfo[target][Deaths], GetPlayerMoney(target), AdminLevel[target]);
    SendClientMessage(playerid ,COLOR_BROWN, string);
    return 1;
}
Reply


Messages In This Thread
cmd:stats [REP +] - by Avi Raj - 24.03.2013, 17:44
Re: cmd:stats [REP +] - by bensmart469 - 24.03.2013, 17:47
Re: cmd:stats [REP +] - by Patrick - 24.03.2013, 17:50
Re: cmd:stats [REP +] - by Avi Raj - 24.03.2013, 17:54
Re: cmd:stats [REP +] - by Glad2BeHere - 24.03.2013, 18:01
Re: cmd:stats [REP +] - by Avi Raj - 24.03.2013, 18:08
Re: cmd:stats [REP +] - by Avi Raj - 24.03.2013, 18:12
Re: cmd:stats [REP +] - by Patrick - 24.03.2013, 18:18
Re: cmd:stats [REP +] - by Avi Raj - 24.03.2013, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)