07.02.2012, 04:42
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; }