05.12.2010, 17:55
I made a bouties script and now I like to show them via command.
but not for every bounty 1 line, i like to make more as possible in one line, and then another line when it's over 128.
how to do that?
my code:
but not for every bounty 1 line, i like to make more as possible in one line, and then another line when it's over 128.
how to do that?
my code:
pawn Код:
if(strcmp(cmd,"/bounties",true)==0)
{
new amount;
SendClientMessage(playerid,_COLOR_GREEN,"Bountys at the moment:");
foreach(Player,i)
{
if(bounty[i] > 0)
{
amount++;
...
}
}
if(amount == 0) SendClientMessage(playerid,_COLOR_WHITE,"There are not any bounties at the moment.");
return 1;
}