18.08.2012, 23:44
a new way may help you:
pawn Код:
CMD:checkplayers(playerid, params[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new Float:hp, str[185], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
if(GetPlayerHealth(playerid, hp) <= 0) return 1;
format(str, 185, "%s is still alive with health: %d", pname, GetPlayerHealth(playerid, hp));
SendClientMessage(playerid, 1, str);
}
return 1;
}