SA-MP Forums Archive
Hi! Need help. - 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)
+--- Thread: Hi! Need help. (/showthread.php?tid=386115)



Hi! Need help. - Majava - 19.10.2012

How i can make working paycheck like every 10min you get this amount money and score.
i have working saving load system.
PHP код:
enum pInfo
pCash
,
pScore 
PHP код:
PlayerInfo[playerid][pScore]++;
SetPlayerScore(playeridPlayerInfo[playerid][pScore]); 
I should take score from pScore and, it to Tablist score and give __ this amount money.


Re: Hi! Need help. - XRabbit - 19.10.2012

Use SetTimer (SetTimerEx)


Re: Hi! Need help. - Abhishek. - 19.10.2012

if you are asking for suggestion then no because it will only give him money and score with the things which are alredy saved but if he is in game and he earned a score by some moethod it dosent gets saved till he disconect so make a payday callback like
public Payday()
{
for(new players=0;players<=MAX_PLAYERS;players++)
{
SetPlayerScore(players,GetPlayerScore(players)+1);

}
return 1;
}


Re: Hi! Need help. - Majava - 19.10.2012

How i can make script loading player's score?


Re: Hi! Need help. - XtremeR - 19.10.2012

use this:
https://sampforum.blast.hk/showthread.php?tid=207768