Remove Payday Minutes - 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: Remove Payday Minutes (
/showthread.php?tid=570070)
Remove Payday Minutes +REP -
TheWay - 05.04.2015
When is payday I want to remove his payday minutes from stats.
Something like:
if paydayminutes = 10 at payday to make his playingminutes = 10 already do this.
But I want to give -10 at payday minutes not to keep them like that. (10 or -10 was an example)
Код:
if(playerVariables[x][pPaydayMinutes] > 0)
{
playerVariables[x][pPlayingMinutes] = playerVariables[x][pPaydayMinutes];
if(playerVariables[x][pPlayingMinutes] + playerVariables[x][pPaydayMinutes] > 59 )
{
playerVariables[x][pPlayingHours]++;
playerVariables[x][pPlayingMinutes] = playerVariables[x][pPlayingMinutes] - 60;
}
}
Re: Remove Payday Minutes -
TheWay - 06.04.2015
BUMP!