Quote:
Originally Posted by The_Moddler
pawn Код:
public OnGameModeInit() { SetTimer("Check", 2500, 1); return 1; }
forward Check(); public Check() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 2.0, 2305.9927, -16.2388, 26.7496)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2271.6396,2289.1282,10.8203); } } } return 1; }
|
can u explain why that 3rd brace and IsPlayerConnected and changing from half a sec to 2 and a half secs fixes it?