Payday+Score system
#1

I would want to make a filterscript what gives you 5000 dollars and 1 score in every hour.

I dont know how to make that, so please if anyone do post here!

Regards, Assyria
Reply
#2

I have no experience with timers, but I do know how to use it. Go to your gamemodes map and search for timer.pwn and open it. You'll learn it.
Reply
#3

Yeah.. but It would be cool if somebody can share a 100% accomplished filterscript.
Reply
#4

Here you go:

pawn Code:
#include <a_samp>

new Pay;

public OnFilterScriptInit()
{
    Pay=SetTimer("PayHour",60*60*1000,1);
    return 1;
}

public OnFilterScriptExit()
{
    KillTimer(Pay);
    return 1;
}

forward PayHour();
public PayHour()
{
for(new i =0; i < MAX_PLAYERS; i++)
        {
        if(IsPlayerConnected(i)) {
        GivePlayerMoney(i, 5000);
        SetPlayerScore(i, GetPlayerScore(i)+1);
        SendClientMessage(i, 0xFFFF00FF, "[PAYDAY]: You got 5000$ and one score-point!");
        }
        }
return 1;
}
Hope this helped you.

Jeffry
Reply
#5

Hello again, Does anybody know how to make that score and cash also to save it self?

Regards,
Assyria
Reply
#6

Use a system like dubd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)