Lil question
#5

Use https://sampwiki.blast.hk/wiki/SetTimerEx
pawn Код:
new Timer[MAX_PLAYERS]

public OnPlayerConnect(playerid)
{
    Timer[playerid] = SetTimerEx("OnlineTimeUpdate",216000000,1,"%d",playerid);
    return 1;
}

public OnPlayerDisconnect(playeridmreason)
{
    KillTimer(Timer[playerid]);
    return 1;
}

forward OnlineTimeUpdate(playerid);
public OnlineTimeUpdate(playerid)
{
    SetPlayerScore(playerid,GetPlayerScore(playerid)++);
    return 1;
}
Reply


Messages In This Thread
Lil question - by Tanush123 - 17.08.2011, 18:19
Re: Lil question - by KingTurtle - 17.08.2011, 18:21
Re: Lil question - by Tanush123 - 17.08.2011, 18:57
Re: Lil question - by Tanush123 - 17.08.2011, 21:04
Re: Lil question - by =WoR=Varth - 18.08.2011, 02:39
Re: Lil question - by Tanush123 - 18.08.2011, 03:16
Re: Lil question - by =WoR=Varth - 18.08.2011, 03:21
Re: Lil question - by Tanush123 - 18.08.2011, 14:59
Re: Lil question - by Pinguinn - 18.08.2011, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)