lil question
#3

pawn Код:
new Level[MAX_PLAYERS];
new Hours[MAX_PLAYERS];
forward H(playerid)


public OnPlayerConnect(playerid)
{
    SetTimerEx("H",60*60*1000,true,"i",playerid);
    return 1;
}

public H(playerid)
{
    Hours[playerid]++;
    if(Hours[playerid] == 1)
    {
         SendClientMessage(playerid,COLOR,"You're now lvl 1!");
         Level[playerid]= 1;
     }
     else if(Hours[playerid] == 5)
     {
         SendClientMessage(playerid,COLOR,"You're now lvl 2!");
         Level[playerid]=2;
      }
      return 1;
}
Not tested
Reply


Messages In This Thread
lil question - by tanush - 21.03.2011, 23:43
Re: lil question - by Mauzen - 22.03.2011, 00:12
Re: lil question - by Marricio - 22.03.2011, 00:17
Re: lil question - by tanush - 22.03.2011, 00:54
Re: lil question - by tanush - 22.03.2011, 01:10
Re: lil question - by tanush - 22.03.2011, 02:07
Re: lil question - by Tee - 22.03.2011, 02:10
Re: lil question - by tanush - 22.03.2011, 03:19
Re: lil question - by Tee - 22.03.2011, 04:05
Re: lil question - by PinkFloydLover - 22.03.2011, 04:13

Forum Jump:


Users browsing this thread: 3 Guest(s)