PayDay and Score problem
#1

1. I wanna to put, that every kill is 1 score, and it givin 1000 $ to player who kills
2. I have bug in PayDay, thats, its write: Bank account + Pay, but its could add on bank account... Bank account stay the same

payday:
Код:
funkcija PayDay()
{
    new Sati, Min, Sec, string[128], banka, placa;
	gettime(Sati, Min, Sec);
	format(string, sizeof(string), "Server: Sada je %i:00 sati", Sati);
	SetWorldTime(Sati);
	SendClientMessageToAll(-1, string);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    banka = PlayerInfo[i][Banka];
		placa = PlayerInfo[i][Level] * 1000;
    	PlayerInfo[i][exp] ++;
    	SendClientMessage(i, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|");
		format(string, sizeof(string), "  Stanje: $%d", banka);
		SendClientMessage(i, Grey, string);
		format(string, sizeof(string), "  Uplaceno: $%i",placa);
		SendClientMessage(i, Grey, string);
		SendClientMessage(i, Grey, "|--------------------------------------|");
		format(string, sizeof(string), "  Novo stanje: $%d + $%i", banka, placa);
		SendClientMessage(i, Grey, string);
		SendClientMessage(i, Grey, "|--------------------------------------|");
		if(PlayerInfo[i][exp] >= PlayerInfo[i][Level] * 4)
		{
		    PlayerInfo[i][Level] ++;
	  		format(string, sizeof(string), "[LEVEL UP+++] Vas novi Level je: %d", PlayerInfo[i][Level]);
	  		SendClientMessage(i, COLOR_LIGHTBLUE, string);
			PlayerInfo[i][exp] = 0;
  		}
		format(string, sizeof(string), "~y~PayDay~n~~w~Placa ~n~~g~$%d", placa);
		GameTextForPlayer(i, string, 5000, 1);
 	}
 	return 1;
}
Reply


Messages In This Thread
PayDay and Score problem - by FL3GM4 - 14.12.2012, 01:03
Re: PayDay and Score problem - by maramizo - 14.12.2012, 01:08
Re: PayDay and Score problem - by LarzI - 14.12.2012, 01:18
Re: PayDay and Score problem - by FL3GM4 - 14.12.2012, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)