25.02.2011, 15:07
Hello.Need help with 2 things.
1. Im making zombie server and i want that after there is 0 players in human team, like that zombies have infected all humans, then zombies win.i dont know how to do it, but my "idea" was something like this:
2. i was thinking how i can make round time, like that there is clock close health.one round is 30 minutes.
anyone know how to do it?i want something like this:
i think that works, i just need clock close the healthbar, any ideas how? thanks
1. Im making zombie server and i want that after there is 0 players in human team, like that zombies have infected all humans, then zombies win.i dont know how to do it, but my "idea" was something like this:
Код:
if there is 0 players in human team
{
SetTimer("ZombieTeamWin",300, false);
}
Код:
public ZombieTeamWin()
{
SetTimer("ChangeRound",10000,0);
SendClientMessageToAll(COLOR_RED,"Wait till next round starts!");
GameTextForAll("~r~Zombies Have Take The World!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerCameraPos(i,-1438.0342,1751.5375,45.6543);
SetPlayerCameraLookAt(i,-1736.0754,1132.5067,45.6543);
SetPlayerInterior(i,0);
}
return 1;
}
2. i was thinking how i can make round time, like that there is clock close health.one round is 30 minutes.
anyone know how to do it?i want something like this:
Код:
{
SetTimer("HumanTeamWin",1800000, false); //When round begins, this will go on ( 30 minutes)
}
Код:
public HumanTeamWin()
{
SetTimer("ChangeRound",10000,0);
SendClientMessageToAll(COLOR_RED,"Wait till next round starts!");
GameTextForAll("~r~Humans Have Saved The World!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerCameraPos(i,-1438.0342,1751.5375,45.6543);
SetPlayerCameraLookAt(i,-1736.0754,1132.5067,45.6543);
SetPlayerInterior(i,0);
}
return 1;
}

