Help with conect time
#1

Why the conect time is not goint UP?
and it's not giving payday to the players
Reply
#2

you will have to do like:
pawn Код:
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]);
}
This is just a simple payday system...
it will obviously not work if you just copy paste it, so just try to understand what happens, and write it yourself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)