15.04.2009, 21:16
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
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;
}