How to set timer!?
#1

Hey guys, ya know, last time, i asked for the KEY to be pressed by F or something like that.. well..,

Now i want like that, for example:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SECONDARY_ATTACK )
    {
        if (PlayerToPoint(1, playerid,-2487.4114,-612.5793,132.5592)) // Place he needs to be so the gate can be opened
      {
          MoveObject(gate1, -2487.3696,-611.0781,132.7919); // Gate that will open
        return 1;
      }
I want to set timer after it, as when it passes, the gate closes automaticially.. how do i do that? if you know, please tell me.. thanks!

Coord's of closed gate:

pawn Код:
MoveObject(gate1, 2215.454833,-1147.475585,1025.796875); // Gate that will close after time passes
Reply


Messages In This Thread
How to set timer!? - by Moustafa - 15.06.2009, 15:42
Re: How to set timer!? - by Lewwy - 15.06.2009, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)