Paycheck
#7

Make a timer or on that same timer where it increases the Player[i][SecondsLoggedIn] value, add a check like

pawn Код:
if( Player[i][SecondsLoggedIn] >= 3600 )
{
 #define MAX_PAYCHECK 9999
 new paymoney = random(MAX_PAYCHECK);
 new paystring[70];
 format(paystring,sizeof(paystring), "You have been paid %d!", paymoney);
 SendClientMessage(playerid,0x008080FF,paystring);
 GivePlayerMoney(i, paymoney);
}
There, scripted nice and good, should work.
Reply


Messages In This Thread
Paycheck - by FrankC - 24.09.2010, 20:02
Re: Paycheck - by Seven. - 24.09.2010, 20:03
Re: Paycheck - by FrankC - 24.09.2010, 20:16
Re: Paycheck - by Seven. - 24.09.2010, 20:20
Re: Paycheck - by TouR - 24.09.2010, 20:21
Re: Paycheck - by Seven. - 24.09.2010, 20:29
Re: Paycheck - by Memoryz - 24.09.2010, 20:34
Re: Paycheck - by FrankC - 24.09.2010, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)