18.03.2018, 10:29
Working fine sir
If i do /stats [ANY OTHER ID, NOT MINE], then it will show my stats
Код:
CMD:stats(playerid, params[]) { LoginCheck(playerid); new target; new id; if(sscanf(params, "u", target)) { target = playerid; SendClientMessage(playerid, COLOR_RED, "TIP: {FFFFFF}You can also view other players stats by /stats [player id]"); } if(! IsPlayerConnected(target)) return SendClientMessage(playerid, COLOR_RED, "ERROR: The specified player is not conected."); if(User[playerid][accountAdmin] < User[id][accountAdmin]) return SendClientMessage(playerid, COLOR_RED, "* You cannot use this command on higher admin."); ShowStatistics(playerid); return 1; }