16.04.2018, 14:20
PHP код:
OngamemodeInit
SetTimer("Payday", 3600000, true);
forward Payday();
public Payday()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
pInfo[i][Money] += 400;
}
SendClientMessageToAll(-1, Heres your payday);
return 1;
}
I made this
enum Playerinfo
{
PayDay,
}
Payday row is set on MYSQL database.
and I don't want to make per hour for every player online, I want to set 60 minutes in mysql row, and when their minutes goes 0 it forwards payday + resets timer
and i don't know if payday script is made good