Help with conect time
#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


Messages In This Thread
Help with conect time - by Taleski - 08.08.2012, 05:51
Re: Help with conect time - by Jstylezzz - 08.08.2012, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)