help with time
#3

I don't remember much from coding but I guess it's something like this.

Код:
// Under main()

new timer[MAX_PLAYERS];

forward timer(playerid);

// Wherever you want, aslong it's under main()

public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)) // Your coordinates
    {
       timer[playerid] = SetTimerEx("timer", 30000, true, "i", playerid);
    }
	return 1;
}

// Bottom of script.

public timer(playerid)
{
    // Code for taking over the turf.
    SendClientMessage(playerid, 0x00FF00AA, "You took the turf!");
    {
               KillTimer(timer[playerid]);
    }
    return 1;
}
Reply


Messages In This Thread
help with time - by BlacKxStory - 07.02.2012, 03:11
Re: help with time - by Ballu Miaa - 07.02.2012, 03:31
Re: help with time - by Chrillzen - 07.02.2012, 04:42
Re : help with time - by BlacKxStory - 07.02.2012, 12:19
Re: help with time - by MP2 - 07.02.2012, 13:16
Re : help with time - by BlacKxStory - 07.02.2012, 13:22
Re : help with time - by BlacKxStory - 07.02.2012, 13:55
Re: Re : help with time - by MP2 - 07.02.2012, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)