[FS/Snippet]Connor's Auto Payday
#4

This isn't very functional at all, looking at the timer. It needs to have a loop within it, here i'll fix your script, give me a minute. Plus i'll take out the unnecessary bits, of which there are a lot.

62 -> 22 lines
not functional -> functional

pawn Code:
#include <a_samp>
forward Timer();
#define COLOR_LIGHTGREEN 0x9ACD32AA

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Connnor's Auto Payday");
    print("--------------------------------------\n");
    SetTimer("Timer", 600000, 1); // Each 10 minutes the Timer will go off.
    return 1;
}

public Timer()
{
    for(new a=0; a<MAX_PLAYERS; a++)
      {
        GivePlayerMoney(a, 5000);
        }
    SendClientMessageToAll(COLOR_LIGHTGREEN, "You've recieved a payday of 5000 dollars!");
    return 1;
}
Reply


Messages In This Thread
[FS/Snippet]Connor's Auto Payday - by 1337connor - 15.04.2009, 20:35
Re: [FS/Snippet]Connor's Auto Payday - by Sandra18[NL] - 15.04.2009, 20:40
Re: [FS/Snippet]Connor's Auto Payday - by Rks25 - 15.04.2009, 20:41
Re: [FS/Snippet]Connor's Auto Payday - by Weirdosport - 15.04.2009, 21:16
Re: [FS/Snippet]Connor's Auto Payday - by [IB]Scorcher - 15.04.2009, 23:30
Re: [FS/Snippet]Connor's Auto Payday - by Weirdosport - 15.04.2009, 23:33
Re: [FS/Snippet]Connor's Auto Payday - by [IB]Scorcher - 15.04.2009, 23:37
Re: [FS/Snippet]Connor's Auto Payday - by Weirdosport - 15.04.2009, 23:39
Re: [FS/Snippet]Connor's Auto Payday - by eXchainZ-FoReVeR - 06.06.2009, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)