29.01.2012, 03:38
sup guys i made this:
but kills and deaths are not showing (both 0).
Код:
dcmd_stats(playerid, params[]) { new name[MAX_PLAYER_NAME], str[256], ip[16]; GetPlayerName(playerid,(name),sizeof(name)); GetPlayerIp(playerid, ip, sizeof(ip)); format(str, sizeof(str), "| %s Stats: Id: %i | Kills: %d | Deaths: %d | Ip: %i", name, playerid, gPlayerInfo[playerid][PLAYER_KILLS], gPlayerInfo[playerid][PLAYER_DEATHS], ip); SendClientMessage(playerid, COLOR_GREEN, str); if(gPlayerInfo[playerid][PLAYER_VIP] == 1) { SendClientMessage(playerid, COLOR_GREEN, "<|VIP|>: Yes"); } else { SendClientMessage(playerid, COLOR_GREEN, "<|VIP|>: No"); } return 1; }