Quote:
|
Originally Posted by Luka™
pawn Код:
#define MAX_MONEY 100000 forward PayCheck();
public OnGameModeInit() { SetTimer("PayCheck",1440000,0); return 1; }
public PayCheck() { new rand = random(MAX_MONEY); new string[128]; format(string,sizeof(string),"PayCheck: You recieved $%d.",rand); SendClientMessageToAll(0x2550FF,string); for(new i;i<MAX_PLAYERS<i++;) { GivePlayerMoney(i,rand); } printf("PayCheck sent to all players. Amount: $%d",rand); return 1; }
NOTE: I never test scripts when I create it for others, so try it and say if it is work.
|
Thanks man. A cookie for you!