14.02.2015, 17:57
I want to create payday system to player get pay at 00:00, 01:00 , 02:00,12:00 and the like .. ??
#include <time>
new H,M,S;
gettime(H,M,S);
if(M == 0 && S == 0)
{
//Your Code
}
public OnPlayerConnect(playerid) { SetTimerEx("Payhour", 3600000, true, "i", playerid); // Every hour (3600000 ms), the callback "Payhour" will be called. return 1; } forward Payhour(playerid); public Payhour(playerid) { GivePlayerMoney(playerid, 1000); SendClientMessage(playerid, -1, "Here's your payment ($1000)"); return 1; }