[Ajuda] Dinheiro
#5

Peguei essa parte de uma GM:

quando for usar o GivePlayerMoney usa: GivePlayerGrana

PHP код:
new DinheiroMAX_PLAYERS ];

forward AtualizarGrana();

SetTimer("AtualizarGrana"1000true);

public 
AtualizarGrana()
{
    for(new 
0MAX_PLAYERSi++)
    {
        
ResetPlayerMoney(i);
        
GivePlayerMoney(iGetPlayerGrana(i));
    }
}

stock GivePlayerGrana(playeridammount) return Dinheiroplayerid ] += ammount;
stock GetPlayerGrana(playerid) return Dinheiroplayerid ];
stock ResetPlayerGrana(playerid) return Dinheiroplayerid ] = 0
Reply


Messages In This Thread
Dinheiro - by JoelNyiTz - 02.07.2018, 02:42
Re: Dinheiro - by PT - 02.07.2018, 07:12
Re: Dinheiro - by JoelNyiTz - 02.07.2018, 14:12
Re: Dinheiro - by ipsLuan - 02.07.2018, 15:02
Re: Dinheiro - by AutoMatic2 - 02.07.2018, 16:16
Re: Dinheiro - by AdrianoStk - 02.07.2018, 18:09
Re: Dinheiro - by willttoonn - 02.07.2018, 19:56
Re: Dinheiro - by AutoMatic2 - 02.07.2018, 22:39
Re: Dinheiro - by PT - 03.07.2018, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)