22.03.2010, 18:38
Hi all!
I have a problem. i cant do money timer.
every 1min give player money $25000.
I have a problem. i cant do money timer.
every 1min give player money $25000.
SetTimer("GiveCash", 60000, true); forward GiveCash(); public GiveCash() { for(new i = 0; i < MAX_PLAYERS; i++) { GivePlayerMoney(i, 25000); } return 1; }
Originally Posted by † мąүқоҳ™
pawn Код:
|
forward myTimer();
/* under OnGameModeInit/OnFilterScriptInit (depends where do you want to use it) */
SetTimer("myTimer", 60000, true);
public myTimer()
{
for(new u = 0; u < MAX_PLAYERS; u++) GivePlayerMoney(u, 25000);
return true;
}
Originally Posted by Don Correlli
Quote:
pawn Код:
pawn Код:
pawn Код:
|
for(new a, b = GetMaxPlayers(); a < b; a++)
for(new i = 0; i < MAX_PLAYERS; i++)
SendClientMessage(playerid, color, "Text");
public myTimer()
{
for(new u = 0; u < MAX_PLAYERS; u++) GivePlayerMoney(u, 10000);
SendClientMessage(playerid,COLOR_BLUE,"You have received....");
return 1;
}
Originally Posted by ColdXX
i tried to put it here
pawn Код:
|
public myTimer()
{
for(new u = 0; u < MAX_PLAYERS; u++) GivePlayerMoney(u, 10000);
SendClientMessage(u,COLOR_BLUE,"You have received....");
}
return 1;