29.11.2010, 01:17
I try this
And then it will give everyone a paycheck but say theres 3 people on. it will show that message 3 times, say there is 6 people on it will spam the message 6 times, it doesn't make any sense.
pawn Код:
public PayCheck()
{
new string[128];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pCheck] == 1)
{
CheckNumber[i] = 1000+random(8999);
format(string, 128, "Type /signcheck %d to receive your paycheck.", CheckNumber[i]);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
GameTextForPlayer(i, string, 5000, 1);
return 1;
}
}
}
return 1;
}