Tick - To limit command useage
#2

pawn Код:
if ((GetTickCount() - g_tCrackTick[playerid]) > 15000)
        {
            SetPlayerHealth(playerid, 21);
            TogglePlayerControllable(playerid, true);
            ApplyAnimation(playerid,"PED","getup_front",5.0,0,1,1,1,1,1);
            SendClientMessage(playerid, 0x4AF8FF, " You've successfully got up! Remember to roleplay your injuries. ");
            g_bCrackState[playerid] = 0;
            g_tCrackTick[playerid] = GetTickCount();//add this.
         }
You for got add the part where it gets the tick after the command is executed!

BTW: Hi John Mitchell.
Reply


Messages In This Thread
Tick - To limit command useage - by Da' J' - 09.06.2012, 02:33
Re: Tick - To limit command useage - by JhnzRep - 09.06.2012, 03:06
Re: Tick - To limit command useage - by Da' J' - 09.06.2012, 03:26
Re: Tick - To limit command useage - by JhnzRep - 09.06.2012, 03:29
Re: Tick - To limit command useage - by Da' J' - 09.06.2012, 03:31
Re: Tick - To limit command useage - by JhnzRep - 09.06.2012, 03:33
Re: Tick - To limit command useage - by Da' J' - 09.06.2012, 03:37

Forum Jump:


Users browsing this thread: 1 Guest(s)