How to make Payday ??in pawno ?
#1

Hello i cant Make Payday..In RP
You Must know every hour we Get payday..
I want to make it
Can any one give me code please
Reply
#2

Bump hey please Help Me
Looks Like None Like some one to grow Up
Really sad.
Reply
#3

pawn Код:
forward payday();
pawn Код:
SetTimer("payday", 600000, 1);

pawn Код:
public payday()
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        GameTextForPlayer(playerid, "PAYDAY", 1000, 1);
        GivePlayerMoney(i, 1000);
    }
    return 1;
}
Reply
#4

ah Thanks Worked
Reply
#5

OOPS sorry But Now i tried To enter Not working help

And Tell Me where you edit which Line thanks
Reply
#6

It should work fine.

pawn Код:
//OnGameModeInit
SetTimer("payday", 600000, 1);

//Anywhere in your script
forward payday();
public payday()
{
    for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
    {
        GameTextForPlayer(i, "PAYDAY", 1000, 1);
        GivePlayerMoney(i, 1000);
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by SwatOwner
Посмотреть сообщение
Bump hey please Help Me
Looks Like None Like some one to grow Up
Really sad.
I think you should do that, because there's a rule in this board:
No bumping within 48 hours

On topic:
You're doing something wrong with it, because it should work.
Reply
#8

If you think that please Connect my PC and do please...
I will be happy if you do it
Reply
#9

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
You're doing something wrong with it, because it should work.
Not really, he put "playerid" instead of "i" in the gametext.

Anyway, the code provided by CyberGhost should work. You did something wrong.

And if you didn't know, you need to wait 1 hour for payday...
Reply
#10

Give yourself a command to force payday. That way, not only can you test paydays easier but you can also force paydays once your server is up and you are admin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)