18.03.2012, 22:58
pawn Код:
public CamTime()
{
for(new i; i<MAX_PLAYERS; i++)
{
SpawnInRound(i);
SetTimer("RoundTimer", 60000, false);
}
return 1;
}
pawn Код:
stock StartDesertRound()
{
for(new i; i<MAX_PLAYERS; i++)
{
SendClientMessage(i, COLOR_YELLOW, " Map: Desert ");
SendClientMessage(i, COLOR_YELLOW, "Round Time: 10 minutes ");
SendClientMessage(i, COLOR_YELLOW, "Rack up as many kills as you can!");
SendClientMessage(i, COLOR_YELLOW, "At the end of the round voting for the next will begin!");
SetPlayerCameraPos(i, -218.8484, 1851.0262, 168.4845);
SetPlayerPos(i, -218.8484,1851.0262,168.4845);
SetPlayerCameraLookAt(i, -231.0072,1644.3071,67.1937);
ShowPlayerDialog(i, 4, DIALOG_STYLE_LIST, "Weapons", "Deagle\rShotgun\nSniper\rDeagle\nAk47\rDeagle\nM4\rMP5", "Ok", "");
desertround = 1;
SetPlayerHealth(i, 100);
SetTimer("CamTime", 20000, false);
TogglePlayerControllable(i, 0);
roundinprogress = true;
}
return 1;
}
stock StartWoodsRound()
{
for(new i; i<MAX_PLAYERS; i++)
{
SendClientMessage(i, COLOR_YELLOW, " Map: Woods ");
SendClientMessage(i, COLOR_YELLOW, "Round Time: 10 minutes ");
SendClientMessage(i, COLOR_YELLOW, "Rack up as many kills as you can!");
SendClientMessage(i, COLOR_YELLOW, "At the end of the round voting for the next will begin!");
SetPlayerCameraPos(i, -1663.4386,-2248.3936,34.4361);
SetPlayerPos(i, -1663.4386,-2248.3936,34.4361);
SetPlayerCameraLookAt(i, -1613.8433,-2169.3018,23.7248);
//ShowPlayerDialog(i, 4, DIALOG_STYLE_LIST, "Weapons", "Deagle\rShotgun\nSniper\rDeagle\nAk47\rDeagle\nM4\rMP5", "Ok", "");
woodsround ++;
SetTimer("CamTime", 20000, false);
roundinprogress = true;
}
return 1;
}
stock StartBaysideRound()
{
for(new i; i<MAX_PLAYERS; i++)
{
SendClientMessage(i, COLOR_YELLOW, " Map: Bayside ");
SendClientMessage(i, COLOR_YELLOW, "Round Time: 10 minutes ");
SendClientMessage(i, COLOR_YELLOW, "Rack up as many kills as you can!");
SendClientMessage(i, COLOR_YELLOW, "At the end of the round voting for the next will begin!");
SetPlayerPos(i, -2669.0940,2213.4553,74.6946);
SetPlayerCameraPos(i, -2669.0940,2213.4553,74.6946);
SetPlayerCameraLookAt(i, -2243.0249,2461.7085,4.9764);
//ShowPlayerDialog(i, 4, DIALOG_STYLE_LIST, "Weapons", "Deagle\rShotgun\nSniper\rDeagle\nAk47\rDeagle\nM4\rMP5", "Ok", "");
baysideround ++;
SetTimer("CamTime", 20000, false);
roundinprogress = true;
}
return 1;
}