Need help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help. (
/showthread.php?tid=231373)
Need help. -
Randomai - 25.02.2011
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:
Код:
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;
}
i think that works, i just need clock close the healthbar, any ideas how? thanks
Re: Need help. -
Marricio - 25.02.2011
well. you must use vars.. its easy tought but i cant make it for you.
Re: Need help. -
Randomai - 25.02.2011
Is there any command like "check how many players are in team, 1"?
Re: Need help. -
Randomai - 25.02.2011
sorry for double posting, but anyone know my problem?