26.02.2010, 07:11
oops, the playerid needs to be replaced by ID of course, lol..
i also forgot to use the GetMaxPlayers() (will return the server.cfg settings) instead of just MAX_PLAYERS, as most servers dont host 500 slots (MAX_PLAYERS=500, yeah), this will decrease the loop a bit
i also forgot to use the GetMaxPlayers() (will return the server.cfg settings) instead of just MAX_PLAYERS, as most servers dont host 500 slots (MAX_PLAYERS=500, yeah), this will decrease the loop a bit
Код:
SetTimer("TimerPirateShip",3000,true);
Код:
forward TimerPirateShip(); public TimerPirateShip() { new ID,MaxPlayers; MaxPlayers=GetMaxPlayers(); for(ID=0;ID<MaxPlayers;ID++) { if(IsPlayerInRangeOfPoint(ID, 20.0, 2000.6755,1543.2694,13.5859)) { GivePlayerMoney(ID,50); } } }