16.07.2010, 20:47
need how to make chanepos timer (timer of (setplayrpos))
like DM server in 10 min change all players pos
like DM server in 10 min change all players pos
public OnGameModeInit()
{
SetTimer("EndOfRound", 60000*60*10, true);
return 1;
}
forward EndOfRound();
public EndOfRound()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerPos(i, x, y, z);
}
return 1;
}
new posStep=-1;
public OnGameModeInit()
{
SetTimer("EndOfRound", 10000, true);
return 1;
}
forward EndOfRound();
public EndOfRound()
{
posStep++;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(posStep == 0)
{
SetPlayerPos(i, x, y, z);
}
else if(posStep == 1)
{
SetPlayerPos(i, x, y, z);
}
// etc.
}
return 1;
}