14.03.2011, 16:37
ok fix code
pawn Код:
dcmd_stats(playerid,params[])
{
new string[128];
new name[MAX_PLAYER_NAME];
name = GetPlayerName(playerid, name, sizeof(name));
playerid = strval(params);
if(gPlayerLogged[playerid] = 1)
{
format(string, sizeof(string), "| %s Stats: Kills: %d | Deaths: %d ",name, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]);
SendClientMessage(playerid, COLOR_GREEN, string);
return true;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Player Not Connected!");
return true;
}
return true;
}