25.08.2016, 14:03
(
Последний раз редактировалось [XST]O_x; 25.08.2016 в 20:00.
)
pawn Код:
CMD:wfdebt(playerid, params[])
{
new string[ 512 ];
new cnt = 0;
new name[ MAX_PLAYER_NAME + 1 ];
foreach(new i: Player) {
if(GetPlayerMoney(i) < 0) {
cnt++;
GetPlayerName(i, name, sizeof name);
format(string, sizeof string, "%s\n%s", string, name);
}
}
if(cnt == 0) {
//No players in debt
}
else {
ShowPlayerDialog(..., string, ...);
}
return 1;
}