[ajuda] playday
#1

alguem pode me passar um tutorial de como criar playday ?
pf agradeзo.
Reply
#2

й muito simples:

Coloque no Topo:
pawn Код:
forward Pd();
No Final do GM
pawn Код:
public Pd()
{
    for(new i; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i))
        {
            GivePlayerMoney(i, 150); // aonde estб o 150 й a quantidade de dinheiro que cada player irб receber.
        }
    }
    SendClientMessageToAll(-1,"Parabйns, vocк recebeu payday!");
}
Coloque no OnGameModeInit
pawn Код:
SetTimer("Pd", 5000, true);
Reply
#3

pawn Код:
#include a_samp

#define tempo 1// em horas

forward
        payday(playerid);

public payday(playerid)
{
    for(new j; j < MAX_PLAYERS; ++j)
    {
        if(!IsPlayerConnected(j))
        {
            GivePlayerMoney(playerid,2500);
            SendClientMessage(j,-1,"payday, vocк recebeu seu pagamento.");
            SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
        }
    }
    return 1;
}

public OnGameModeInit()
{
    SetTimer("payday",1*60000,true);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)