[POMOC]Nece da ucita payday ....


Započeo tRonic.pWn, Decembar 27, 2012, 17:38:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta: od 0
Opis problema: Nece da mi ucita payday :/ Kada dodje 12:00 ili bilo koje vrijeme nece da ucita -.-
Dio Scripte:
forward SyncTime();
public SyncTime()
{
	new string[64];
	new tmphour;
	new tmpminute;
	new tmpsecond;
	gettime(tmphour, tmpminute, tmpsecond);
	FixHour(tmphour);
	tmphour = shifthour;
	if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
	{
		format(string, sizeof(string), ""ZUTA"[cenzura] Europe RP: {F3FF02}Sada je {FFFFFF}%d:00 {F3FF02}sati.",tmphour);
		BroadCast(-1,string);
		ghour = tmphour;
		Plata();
		if (realtime)
		{
			SetWorldTime(tmphour);
		}
	}
}
Poslednja Izmena: Decembar 27, 2012, 17:39:26 POSLE PODNE od tRonic.pWn
Y United Europe - RolePlay 50% Finish....





Evo drug
forward Plata();
forward porez();
public Plata()
{
    	for(new i = 0; i < MAX_PLAYERS; i++)
    	{
			if(IsPlayerConnected(i))
			{
            if(PlayerInfo[i][pVipSati] > 0)
	   	 	{
			PlayerInfo[i][pVipSati] --;
			}
			else
			{
			PlayerInfo[i][pVipSati] = 0;
			SendClientMessage(i, -1, ""CRVENA"[YUE]: {FFFFFF}Vas VIP paket je istekao.");
			}
			new nxtlevel;
			nxtlevel = PlayerInfo[i][pLevel]+1;
			new string[128];
        	format(string, sizeof(string), "~y~IzvjeÅ¡ce iz vlade~n~~w~Plata je legla~n~~w~Iznos: $800");
			PlayerInfo[i][pBankaNovac]+=800;
			GameTextForPlayer(i, string, 5000, 1);
			PlayerInfo[i][pVipSati]--;
			GivePlayerCash(i,200);
            PlayerInfo[i][pExp]++;
            PlayerInfo[i][pOrgKazna]--;
			PlayerInfo[i][pOrgKazna] = 0;
			SendClientMessage(i, -1, ""CRVENA"[YUE]: {FFFFFF}Vasa organizacijska kazna je istekla.");
			}
		}
		return 1;
}
[/b]
Y United Europe - RolePlay 50% Finish....





Blaeks

*

Madmen