Payday+Score system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Payday+Score system (
/showthread.php?tid=134348)
Payday+Score system -
Assyria - 16.03.2010
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
Re: Payday+Score system -
Andy_McKinley - 16.03.2010
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.
Re: Payday+Score system -
Assyria - 16.03.2010
Yeah.. but It would be cool if somebody can share a 100% accomplished filterscript.
Re: Payday+Score system -
Jeffry - 16.03.2010
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
Re: Payday+Score system -
Assyria - 19.03.2010
Hello again, Does anybody know how to make that score and cash also to save it self?
Regards,
Assyria
Re: Payday+Score system -
Mystique - 19.03.2010
Use a system like dubd