With getting playercash
#4

Код:
if(GameHour == 23 && GameMinute == 59)
	{
    	for(new i = 0; i < GetMaxPlayers(); i++)
		{
			for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
			{
				if(IsPlayerConnected(i) && spawned[playerid] == 1)
				{
					pInfo[i][pDaysAlive] ++;
					if(pInfo[i][pDaysAlive] == 365)
					{
						pInfo[playerid][pBirthdays] ++;
						new pmoney, randcash;
						pmoney = GetPlayerMoney(i);
						randcash = random(pmoney);
						GivePlayerMoney(playerid, randcash);
						SCM(playerid,COLOR_RED,"BIRTHDAY TEST");
					}
				}
			}
		}
	}
it's not taking money from others
Reply


Messages In This Thread
With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:01
Re: With getting playercash - by Dignity - 22.04.2014, 17:06
Re: With getting playercash - by CroM256 - 22.04.2014, 17:08
Re: With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:34
Re: With getting playercash - by Dignity - 22.04.2014, 17:36
Re: With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)