How to get kills and deaths for /stats?
#1

sup guys i made this:

Код:
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;
}
but kills and deaths are not showing (both 0).
Reply


Messages In This Thread
How to get kills and deaths for /stats? - by ttloko2 - 29.01.2012, 03:38
Re: How to get kills and deaths for /stats? - by T0pAz - 29.01.2012, 04:55
Re: How to get kills and deaths for /stats? - by Snowman12 - 29.01.2012, 04:57
Re: How to get kills and deaths for /stats? - by ttloko2 - 29.01.2012, 05:00

Forum Jump:


Users browsing this thread: 1 Guest(s)