08.08.2012, 05:51
Why the conect time is not goint UP?
and it's not giving payday to the players
and it's not giving payday to the players
new paydaytimer[MAX_PLAYERS];
OnPlayerSpawn(playerid)
{
paydaytimer[playerid] = SetTimerEx("Payday",60000,true,"i",playerid);//set a timer when the player spawns
}
forward Payday(playerid);
public Payday(playerid)
{
if(Paydaycount[playerid] == 0)//only go trough the payday code if the paydaycount has reached 0
{
//payday code here
paydaycount = 600;//reset the paydaycount to 0
}
paydaycount--;//every minute, take 1- from the paydaycount
}
public OnPlayerDisconnect(playerid)
{
KillTimer(paydaytimer[playerid]);
}