rendered paste body// Colorado Springs Massacre GM 0.1
// Coded by Chiarboss
// ©2007
// Dont edit code or part of it without my permission
// To get permission contact: marco.chiarelli@hotmail.it
#include <a_samp>
#pragma tabsize 0
new Float:xdeath;
new Float:ydeath;
new Float:zdeath;
//colori
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x1111AAFF
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
#define ATTACK_WIN1 0
#define ATTACK_WIN2 1
#define TEAM_EASTCOLORADO 1
#define TEAM_WESTCOLORADO 2
#define CHECKPOINT_EAST 1
#define CHECKPOINT_WEST 2
#define AFTER_CHECKPOINT_EAST 3
#define AFTER_CHECKPOINT_WEST 4
//-------------------------------------------------------------------------
new gTeam[MAX_PLAYERS];
new consecutive[MAX_PLAYERS];
new gPlayerCheckpointStatus[MAX_PLAYERS];
new inarmory[MAX_PLAYERS];
new tk[MAX_PLAYERS];
new indeath[MAX_PLAYERS];
new death[MAX_PLAYERS];
new gRoundTimer;
new gRoundTimerEast;
new gRoundTimerWest;
new inrockeast;
new inrockwest;
new st;
//-------------------------------------------------------------------------
forward GameModeExitFunc();
forward ForAfterCheckpoint();
forward ECTeamHasPutTheBomb();
forward WCTeamHasPutTheBomb();
//-------------------------------------------------------------------------
main()
{
print("\nLoaded Colorado Springs Massacre GM 0.1\n");
}
//-------------------------------------------------------------------------
public OnGameModeInit()
{
inrockeast = 0;
inrockwest = 0;
st = 0;
UsePlayerPedAnims();
SetGameModeText("C.S. Massacre GM 0.1");
ShowPlayerMarkers(0);
ShowNameTags(1);
AddPlayerClass(121,-1143.313110,1091.037841,38.939147,133.560211,0,0,0,0,0,0);
AddPlayerClass(122,-1156.023681,1082.960205,39.975006,136.380233,0,0,0,0,0,0);
AddPlayerClass(123,-1149.033935,1096.290893,38.941177,134.186843,0,0,0,0,0,0);
AddPlayerClass(117,-1653.572143,564.042541,39.035675,315.429473,0,0,0,0,0,0);
AddPlayerClass(118,-1641.005737,572.190795,40.056526,313.549468,0,0,0,0,0,0);
AddPlayerClass(120,-1648.633178,558.572998,39.011383,314.152740,0,0,0,0,0,0);
CreateObject(1305, -1145.632202, 1114.502808, 38.857384, 0, 0, 22.5);
CreateObject(1305, -1143.796875, 1113.113403, 38.641991, 0, 0, 33.75);
CreateObject(1305, -1142.127197, 1110.951416, 38.660313, 0, 0, 45);
CreateObject(1305, -1140.346680, 1109.372925, 38.656784, 0, 0, 67.5);
CreateObject(1305, -1138.776001, 1108.027100, 38.652191, 0, 0, 78.75);
CreateObject(1305, -1136.918213, 1106.333618, 38.649986, 0, 0, 67.5);
CreateObject(1305, -1135.327637, 1104.473389, 39.066921, 0, 0, 78.75);
CreateObject(1305, -1133.338013, 1103.184082, 38.648987, 0, 0, 56.25);
CreateObject(1305, -1131.739136, 1101.309692, 38.660378, 0, 0, 78.75);
CreateObject(1305, -1130.138794, 1099.703979, 38.663158, 0, 0, 90);
CreateObject(1305, -1128.220703, 1098.120483, 38.648705, 0, 0, 78.75);
CreateObject(1305, -1126.525024, 1096.042969, 38.663567, 0, 0, 45); //
CreateObject(1305, -1144.962402, 1113.149536, 41.197971, 0, 0, 348.75);
CreateObject(1305, -1142.996094, 1111.463501, 41.279114, 0, 0, 326.25);
CreateObject(1305, -1141.289551, 1109.542114, 41.321217, 0, 0, 326.25);
CreateObject(1305, -1139.450928, 1107.555298, 41.492455, 0, 0, 303.75);
CreateObject(1305, -1137.684204, 1106.028320, 41.486378, 0, 0, 292.5);
CreateObject(1305, -1136.092773, 1104.403564, 41.892300, 0, 0, 281.25);
CreateObject(1305, -1134.249023, 1103.238892, 41.395424, 0, 0, 303.75);
CreateObject(1305, -1132.654663, 1101.792236, 41.160763, 0, 0, 292.5);
CreateObject(1305, -1130.899658, 1100.170532, 41.298775, 0, 0, 315);
CreateObject(1305, -1129.095703, 1098.409790, 41.302479, 0, 0, 292.5);
CreateObject(1305, -1127.444702, 1096.592651, 41.209862, 0, 0, 281.25); //
CreateObject(1305, -1144.178589, 1112.416504, 43.620911, 0, 0, 258.75);
CreateObject(1305, -1142.328857, 1110.428345, 43.657570, 0, 0, 281.25);
CreateObject(1305, -1141.087402, 1108.581665, 43.898781, 0, 0, 270);
CreateObject(1305, -1139.196167, 1106.733521, 44.148384, 0, 0, 292.5);
CreateObject(1305, -1137.223999, 1105.340454, 44.154377, 0, 0, 281.25);
CreateObject(1305, -1135.891724, 1103.442139, 44.388508, 0, 0, 303.75);
CreateObject(1305, -1133.856689, 1102.259155, 43.800285, 0, 0, 281.25);
CreateObject(1305, -1132.196533, 1100.954224, 43.688801, 0, 0, 258.75);
CreateObject(1305, -1130.376343, 1099.187256, 43.612629, 0, 0, 225);
CreateObject(1305, -1128.732422, 1097.080444, 43.470440, 0, 0, 213.75); //
CreateObject(1305, -1143.899658, 1111.280640, 45.760468, 0, 0, 213.75);
CreateObject(1305, -1142.325562, 1109.451782, 46.174557, 0, 0, 180);
CreateObject(1305, -1140.488037, 1107.421509, 46.265224, 0, 0, 202.5);
CreateObject(1305, -1138.435059, 1106.012085, 46.539673, 0, 0, 180);
CreateObject(1305, -1137.048218, 1103.659912, 46.982655, 0, 0, 112.5);
CreateObject(1305, -1134.904053, 1102.173340, 46.444504, 0, 0, 90);
CreateObject(1305, -1133.081055, 1100.400146, 46.196053, 0, 0, 112.5);
CreateObject(1305, -1131.102539, 1098.560425, 46.143398, 0, 0, 90);
CreateObject(1305, -1129.550049, 1096.901733, 46.155346, 0, 0, 78.75); //
CreateObject(1305, -1143.350342, 1110.577515, 48.466732, 0, 0, 78.75);
CreateObject(1305, -1141.550659, 1108.767578, 48.856270, 0, 0, 56.25);
CreateObject(1305, -1140.126465, 1107.153442, 49.259712, 0, 0, 45);
CreateObject(1305, -1138.211060, 1105.336792, 49.403603, 0, 0, 67.4999);
CreateObject(1305, -1137.103638, 1103.123291, 49.974407, 0, 0, 78.75);
CreateObject(1305, -1135.642944, 1101.834473, 49.254356, 0, 0, 67.4999);
CreateObject(1305, -1133.929443, 1100.206787, 48.893055, 0, 0, 90);
CreateObject(1305, -1132.070557, 1098.942261, 48.622749, 0, 0, 78.75);
CreateObject(1305, -1130.418823, 1097.504761, 48.656872, 0, 0, 78.75); //
CreateObject(1305, -1652.755737, 540.466553, 38.718349, 0, 0, 281.25); //
CreateObject(1305, -1654.440918, 542.287720, 38.725273, 0, 0, 292.5);
CreateObject(1305, -1656.370972, 543.845337, 38.716736, 0, 0, 270);
CreateObject(1305, -1658.130859, 545.461548, 38.715050, 0, 0, 281.25);
CreateObject(1305, -1659.906250, 547.152710, 38.715248, 0, 0, 281.25);
CreateObject(1305, -1661.571777, 548.962280, 39.139587, 0, 0, 292.5);
CreateObject(1305, -1663.599487, 550.394470, 38.824272, 0, 0, 270);
CreateObject(1305, -1665.227173, 552.118774, 38.725647, 0, 0, 326.25);
CreateObject(1305, -1667.157104, 553.979797, 38.720657, 0, 0, 337.5);
CreateObject(1305, -1668.747925, 555.669800, 38.719200, 0, 0, 326.25);
CreateObject(1305, -1670.277344, 557.559448, 38.732876, 0, 0, 0);
CreateObject(1305, -1671.549927, 558.450378, 38.722996, 0, 0, 0);
CreateObject(1305, -1653.653442, 541.607605, 41.131344, 0, 0, 0); //
CreateObject(1305, -1655.341187, 543.447327, 41.101017, 0, 0, 337.5);
CreateObject(1305, -1656.986084, 544.982971, 41.186131, 0, 0, 0);
CreateObject(1305, -1658.599365, 546.487183, 41.382576, 0, 0, 337.5);
CreateObject(1305, -1660.156860, 548.111633, 41.496136, 0, 0, 315);
CreateObject(1305, -1661.974121, 549.918640, 41.881866, 0, 0, 315);
CreateObject(1305, -1663.750122, 551.494873, 41.506260, 0, 0, 281.25);
CreateObject(1305, -1667.030518, 554.843323, 41.464886, 0, 0, 292.5);
CreateObject(1305, -1665.615845, 552.852844, 41.583893, 0, 0, 270);
CreateObject(1305, -1668.669189, 556.521301, 41.506229, 0, 0, 303.75);
CreateObject(1305, -1670.294434, 558.060059, 41.681583, 0, 0, 270);
CreateObject(1305, -1654.454834, 542.558167, 43.532757, 0, 0, 247.5); //
CreateObject(1305, -1655.873657, 544.284790, 43.832691, 0, 0, 281.25);
CreateObject(1305, -1657.619995, 545.903687, 43.741241, 0, 0, 303.75);
CreateObject(1305, -1658.973389, 547.472290, 44.032356, 0, 0, 270);
CreateObject(1305, -1660.768677, 549.174622, 44.025948, 0, 0, 225);
CreateObject(1305, -1662.822510, 550.916016, 44.315815, 0, 0, 213.75);
CreateObject(1305, -1664.372314, 552.486450, 44.129856, 0, 0, 258.75);
CreateObject(1305, -1665.835083, 554.135681, 44.044884, 0, 0, 247.5);
CreateObject(1305, -1667.022827, 555.950989, 44.113705, 0, 0, 281.25);
CreateObject(1305, -1668.918091, 557.485962, 44.260979, 0, 0, 315);
CreateObject(1305, -1654.875488, 544.260254, 46.389290, 0, 0, 315); //
CreateObject(1305, -1656.587524, 545.467957, 46.164677, 0, 0, 326.25);
CreateObject(1305, -1657.875122, 547.259033, 46.426598, 0, 0, 315);
CreateObject(1305, -1659.590332, 548.883362, 46.437275, 0, 0, 337.5);
CreateObject(1305, -1661.486084, 550.601563, 46.469212, 0, 0, 348.75);
CreateObject(1305, -1663.033325, 552.322876, 46.431183, 0, 0, 0);
CreateObject(1305, -1664.780762, 554.087219, 46.627769, 0, 0, 22.5);
CreateObject(1305, -1666.344971, 556.027405, 46.960667, 0, 0, 22.5);
CreateObject(1305, -1667.972778, 557.050476, 46.663815, 0, 0, 281.25);
CreateObject(1305, -1655.522949, 545.149658, 49.067211, 0, 0, 236.2501); //
CreateObject(1305, -1656.825928, 546.508972, 48.808506, 0, 0, 270);
CreateObject(1305, -1658.364258, 548.067871, 49.226891, 0, 0, 281.25);
CreateObject(1305, -1660.295532, 549.902893, 48.904922, 0, 0, 225);
CreateObject(1305, -1662.083740, 551.797729, 48.827122, 0, 0, 213.75);
CreateObject(1305, -1663.615723, 553.309326, 48.938377, 0, 0, 191.25);
CreateObject(1305, -1665.010010, 555.031189, 49.225105, 0, 0, 168.75);
CreateObject(1305, -1666.452759, 556.805176, 49.720619, 0, 0, 157.5);
Object();
SetWeather(19);
SetWorldTime(0);
return 1;
}
//-------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFF8A00AA, "Welcome to Colorado Springs Massacre GM 0.1 [coded by Chiarboss]");
SendClientMessage(playerid, 0xFFFFFFAA, "Type /about if you don't now how this mode work");
SendClientMessage(playerid,0xFFFF00AA,"Type /help for knowing the rules of GM");
GameTextForPlayer(playerid, "~g~- ~r~Colorado Springs ~y~Massacre ~g~-", 6000, 1);
SendClientMessage(playerid,COLOR_RED,"Choice a character!");
GivePlayerMoney(playerid, 10000);
SetPlayerColor(playerid, COLOR_GREY); // Set the player's color to inactive
inarmory[playerid] = 0;
indeath[playerid] = 0;
death[playerid] = 0;
return 1;
}
//-------------------------------------------------------------------------
public OnPlayerText(playerid)
{
printf("OnPlayerText(%d)", playerid);
return 1;
}
//-------------------------------------------------------------------------
public OnPlayerInfoChange(playerid)
{
printf("OnPlayerInfoChange(%d)");
return 1;
}
//-------------------------------------------------------------------------
public OnPlayerSpawn(playerid) {
SetPlayerInterior(playerid,0);
PlayerPlaySound(playerid, 1098, 0, 0, 0);
SendClientMessage(playerid, 0xFF8A00AA, "Type /shop to enter in your Personal Shop.");
if(indeath[playerid] == 1) {
death[playerid]++;
if(death[playerid] < 5) {
SetPlayerPos(playerid, xdeath, ydeath, zdeath);
}
}
if(gTeam[playerid] == TEAM_EASTCOLORADO) {
GivePlayerWeapon(playerid, 24, 2000);
GivePlayerWeapon(playerid, 27, 1500);
GivePlayerWeapon(playerid, 30, 1250);
SetPlayerCheckpoint(playerid,-1660.219116,551.800170,38.868011,5.0);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_WEST;
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid,"~w~Go to ~r~put the bomb ~w~to the ~y~fench of the ~g~opposing team",5000,3);
}
else if(gTeam[playerid] == TEAM_WESTCOLORADO) {
GivePlayerWeapon(playerid, 23, 2000);
GivePlayerWeapon(playerid, 25, 1500);
GivePlayerWeapon(playerid, 31, 1100);
SetPlayerCheckpoint(playerid,-1137.669067,1102.352294,38.806056,5.0);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_EAST;
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid,"~w~Go to ~r~put the bomb ~w~to the ~y~fench of the ~b~opposing team",5000,3);
}
return 1;
}
//-------------------------------------------------------------------------
//+----------------------+--------------------------+
//| AntiTeamkill 0.3 | Coded by Franc[e]sco |
//| | noffaganzo@hotmail.it |
//| | and |
//| | Yom yomki@hotmail.fr |
//+----------------------+--------------------------+
//| Dont edit the code without my permission. |
//| To get permission contact noffaganzo@hotmail.it |
//+- - - - - - - - - - - Updates - - - - - - - - - -+
//| Yom - added console message when kick |
//+-------------------------------------------------+
public OnPlayerDeath(playerid, killerid, reason)
{
new string[256];
new name[MAX_PLAYER_NAME];
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
if(gTeam[killerid] != gTeam[playerid]) {
// Valid kill
consecutive[killerid]++;
st++;
GetPlayerName(killerid,name, sizeof(name));
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
if(st == 1)
{
format(string, sizeof(string), "%s made the first kill! +3 kills to him!",name);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 2);
SendClientMessageToAll(COLOR_YELLOW,string);
}
if(consecutive[killerid] == 5)
{
format(string, sizeof(string), "%s is rockin' out!",name);
SendClientMessageToAll(COLOR_YELLOW,string);
}
else if(consecutive[killerid] == 6)
{
format(string, sizeof(string), "OMG! %s is pwning you all!",name);
SendClientMessageToAll(COLOR_YELLOW,string);
}
else if(consecutive[killerid] == 7)
{
format(string, sizeof(string), "WOW! %s ~w~is an omicide fury!",name);
SendClientMessageToAll(COLOR_YELLOW,string);
}
else if(consecutive[killerid] >= 8)
{
format(string, sizeof(string), "%s: the king of the server... 0.0",name);
SendClientMessageToAll(COLOR_YELLOW,string);
}
SendDeathMessage(killerid,playerid,reason);
GetPlayerPos(playerid, xdeath, ydeath, zdeath);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 1000);
GivePlayerMoney(playerid, -1000);
GameTextForPlayer(playerid, "~n~~y~Wasted!", 1000, 3);
GameTextForPlayer(killerid, "~n~~y~Good shot!", 1000, 3);
}
//TEAM KILL
else
{
SendClientMessage(killerid, COLOR_RED, "No teamkilling! Be careful the next time!");
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
GivePlayerMoney(killerid, -2000);
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid, x, y, z);
z = 1000;
SetPlayerPos(killerid, Float:x, Float:y, Float:z);
tk[killerid] ++;
if(tk[killerid] == 2)
{
SendClientMessage(killerid, COLOR_RED, "Once again and you will be kicked!");
}
if(tk[killerid] >= 3)
{
GetPlayerName(killerid,name, sizeof(name));
printf(" -A.T.K Script-: %s kicked for teamkilling",name);
Kick(killerid);
format(string, sizeof(string), "The AntiTeamkill system kicked %s for teamkilling!",name);
SendClientMessageToAll(COLOR_GREEN, string);
}
}
}
return 1;
}
//-------------------------------------------------------------------------
stock SetupPlayerForClassSelection(playerid)
{
PlayerPlaySound(playerid,1187, 0, 0, 0);
SetPlayerPos(playerid,-1481.175659,714.608154,6.992187);
SetPlayerFacingAngle(playerid, 86.235641);
SetPlayerCameraPos(playerid,-1483.804199,714.423461,7.177867);
SetPlayerCameraLookAt(playerid,-1483.804199,714.423461,7.177867);
return;
}
//-------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
printf("OnPlayerRequestClass(%d, %d)", playerid, classid);
SetupPlayerForClassSelection(playerid);
switch (classid) {
case 0,1,2:
{
gTeam[playerid] = TEAM_EASTCOLORADO;
GameTextForPlayer(playerid, "~n~~b~E.C.R.T. Agent~n~~n~~w~Weapon: ~b~Desert Eagle, Combat Shotgun, AK47.", 5000, 3);
}
case 3,4,5:
{
gTeam[playerid] = TEAM_WESTCOLORADO;
GameTextForPlayer(playerid, "~n~~g~W.C.R.T. Agent~n~~n~~w~Weapon: ~g~Silenced Pistol, Shotgun, M4.", 5000, 3);
}
}
return 1;
}
//-------------------------------------------------------------------------
public OnPlayerEnterCheckpoint(playerid) {
switch (gPlayerCheckpointStatus[playerid]) {
case CHECKPOINT_EAST: {
inrockeast++;
if(inrockeast < 5) {
GameTextForAll("~n~~w~The ~g~Team W.C. ~w~has put ~r~one bomb ~w~on the fench of the ~b~E.C. ~y~rocks block",3000,3);
gRoundTimer = SetTimer("ForAfterCheckpoint",20000,0);
for (new i=0; i<MAX_PLAYERS; i++) {
gPlayerCheckpointStatus[i] = AFTER_CHECKPOINT_EAST;
SetPlayerCheckpoint(i,-1137.669067,1102.352294,38.806056,2.5);
gRoundTimerEast = SetTimer("WCTeamHasPutTheBomb",15000,0);
}
}
}
case CHECKPOINT_WEST: {
inrockwest++;
if(inrockwest < 5) {
GameTextForAll("~n~~w~The ~b~Team E.C. ~w~has put ~r~one bomb ~w~on the fench of the ~g~W.C. ~y~rocks block",3000,3);
gRoundTimer = SetTimer("ForAfterCheckpoint",20000,0);
for (new i=0; i<MAX_PLAYERS; i++) {
gPlayerCheckpointStatus[i] = AFTER_CHECKPOINT_WEST;
SetPlayerCheckpoint(i,-1660.219116,551.800170,38.868011,2.5);
gRoundTimerWest = SetTimer("ECTeamHasPutTheBomb",15000,0);
}
}
}
case AFTER_CHECKPOINT_EAST: {
if(gTeam[playerid] == TEAM_EASTCOLORADO) {
KillTimer(gRoundTimerEast);
GameTextForAll("~n~~w~The ~g~Team E.C. ~w~has disabled ~r~the bomb.",3000,3);
} else {
SendClientMessage(playerid,COLOR_RED,"You arent of the Team E.C.");
}
}
case AFTER_CHECKPOINT_WEST: {
if(gTeam[playerid] == TEAM_WESTCOLORADO) {
KillTimer(gRoundTimerWest);
GameTextForAll("~n~~w~The ~g~Team W.C. ~w~has disabled ~r~the bomb.",3000,3);
} else {
SendClientMessage(playerid,COLOR_RED,"You arent of the Team W.C.");
}
}
default: {
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
//-------------------------------------------------------------------------
public ECTeamHasPutTheBomb() {
for (new i=0; i<MAX_PLAYERS; i++) {
TogglePlayerControllable(i,0);
}
if(inrockwest == 1) {
CreateExplosion(-1655.522949, 545.149658, 49.067211,10,10);
CreateExplosion(-1656.825928, 546.508972, 48.808506,10,10);
CreateExplosion(-1658.364258, 548.067871, 49.226891,10,10);
CreateExplosion(-1660.295532, 549.902893, 48.904922,10,10);
CreateExplosion(-1662.083740, 551.797729, 48.827122,10,10);
CreateExplosion(-1663.615723, 553.309326, 48.938377,10,10);
CreateExplosion(-1665.010010, 555.031189, 49.225105,10,10);
CreateExplosion(-1666.452759, 556.805176, 49.720619,10,10);
CreateExplosion(-1656.747070, 550.685181, 37.686432,10,10);
CreateExplosion(-1667.750854, 561.621216, 37.701839,10,10);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1652.755737, 540.466553, 38.718349, 0, 0, 281.25); //
CreateObject(1305, -1654.440918, 542.287720, 38.725273, 0, 0, 292.5);
CreateObject(1305, -1656.370972, 543.845337, 38.716736, 0, 0, 270);
CreateObject(1305, -1658.130859, 545.461548, 38.715050, 0, 0, 281.25);
CreateObject(1305, -1659.906250, 547.152710, 38.715248, 0, 0, 281.25);
CreateObject(1305, -1661.571777, 548.962280, 39.139587, 0, 0, 292.5);
CreateObject(1305, -1663.599487, 550.394470, 38.824272, 0, 0, 270);
CreateObject(1305, -1665.227173, 552.118774, 38.725647, 0, 0, 326.25);
CreateObject(1305, -1667.157104, 553.979797, 38.720657, 0, 0, 337.5);
CreateObject(1305, -1668.747925, 555.669800, 38.719200, 0, 0, 326.25);
CreateObject(1305, -1670.277344, 557.559448, 38.732876, 0, 0, 0);
CreateObject(1305, -1671.549927, 558.450378, 38.722996, 0, 0, 0);
CreateObject(1305, -1653.653442, 541.607605, 41.131344, 0, 0, 0); //
CreateObject(1305, -1655.341187, 543.447327, 41.101017, 0, 0, 337.5);
CreateObject(1305, -1656.986084, 544.982971, 41.186131, 0, 0, 0);
CreateObject(1305, -1658.599365, 546.487183, 41.382576, 0, 0, 337.5);
CreateObject(1305, -1660.156860, 548.111633, 41.496136, 0, 0, 315);
CreateObject(1305, -1661.974121, 549.918640, 41.881866, 0, 0, 315);
CreateObject(1305, -1663.750122, 551.494873, 41.506260, 0, 0, 281.25);
CreateObject(1305, -1667.030518, 554.843323, 41.464886, 0, 0, 292.5);
CreateObject(1305, -1665.615845, 552.852844, 41.583893, 0, 0, 270);
CreateObject(1305, -1668.669189, 556.521301, 41.506229, 0, 0, 303.75);
CreateObject(1305, -1670.294434, 558.060059, 41.681583, 0, 0, 270);
CreateObject(1305, -1654.454834, 542.558167, 43.532757, 0, 0, 247.5); //
CreateObject(1305, -1655.873657, 544.284790, 43.832691, 0, 0, 281.25);
CreateObject(1305, -1657.619995, 545.903687, 43.741241, 0, 0, 303.75);
CreateObject(1305, -1658.973389, 547.472290, 44.032356, 0, 0, 270);
CreateObject(1305, -1660.768677, 549.174622, 44.025948, 0, 0, 225);
CreateObject(1305, -1662.822510, 550.916016, 44.315815, 0, 0, 213.75);
CreateObject(1305, -1664.372314, 552.486450, 44.129856, 0, 0, 258.75);
CreateObject(1305, -1665.835083, 554.135681, 44.044884, 0, 0, 247.5);
CreateObject(1305, -1667.022827, 555.950989, 44.113705, 0, 0, 281.25);
CreateObject(1305, -1668.918091, 557.485962, 44.260979, 0, 0, 315);
CreateObject(1305, -1654.875488, 544.260254, 46.389290, 0, 0, 315); //
CreateObject(1305, -1656.587524, 545.467957, 46.164677, 0, 0, 326.25);
CreateObject(1305, -1657.875122, 547.259033, 46.426598, 0, 0, 315);
CreateObject(1305, -1659.590332, 548.883362, 46.437275, 0, 0, 337.5);
CreateObject(1305, -1661.486084, 550.601563, 46.469212, 0, 0, 348.75);
CreateObject(1305, -1663.033325, 552.322876, 46.431183, 0, 0, 0);
CreateObject(1305, -1664.780762, 554.087219, 46.627769, 0, 0, 22.5);
CreateObject(1305, -1666.344971, 556.027405, 46.960667, 0, 0, 22.5);
CreateObject(1305, -1667.972778, 557.050476, 46.663815, 0, 0, 281.25);
Object();
}
else if(inrockwest == 2) {
CreateExplosion(-1654.875488, 544.260254, 46.389290,10,20);
CreateExplosion(-1656.587524, 545.467957, 46.164677,10,20);
CreateExplosion(-1657.875122, 547.259033, 46.426598,10,20);
CreateExplosion(-1659.590332, 548.883362, 46.437275,10,20);
CreateExplosion(-1661.486084, 550.601563, 46.469212,10,20);
CreateExplosion(-1663.033325, 552.322876, 46.431183,10,20);
CreateExplosion(-1664.780762, 554.087219, 46.627769,10,20);
CreateExplosion(-1666.344971, 556.027405, 46.960667,10,20);
CreateExplosion(-1667.972778, 557.050476, 46.663815,10,20);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1652.755737, 540.466553, 38.718349, 0, 0, 281.25); //
CreateObject(1305, -1654.440918, 542.287720, 38.725273, 0, 0, 292.5);
CreateObject(1305, -1656.370972, 543.845337, 38.716736, 0, 0, 270);
CreateObject(1305, -1658.130859, 545.461548, 38.715050, 0, 0, 281.25);
CreateObject(1305, -1659.906250, 547.152710, 38.715248, 0, 0, 281.25);
CreateObject(1305, -1661.571777, 548.962280, 39.139587, 0, 0, 292.5);
CreateObject(1305, -1663.599487, 550.394470, 38.824272, 0, 0, 270);
CreateObject(1305, -1665.227173, 552.118774, 38.725647, 0, 0, 326.25);
CreateObject(1305, -1667.157104, 553.979797, 38.720657, 0, 0, 337.5);
CreateObject(1305, -1668.747925, 555.669800, 38.719200, 0, 0, 326.25);
CreateObject(1305, -1670.277344, 557.559448, 38.732876, 0, 0, 0);
CreateObject(1305, -1671.549927, 558.450378, 38.722996, 0, 0, 0);
CreateObject(1305, -1653.653442, 541.607605, 41.131344, 0, 0, 0); //
CreateObject(1305, -1655.341187, 543.447327, 41.101017, 0, 0, 337.5);
CreateObject(1305, -1656.986084, 544.982971, 41.186131, 0, 0, 0);
CreateObject(1305, -1658.599365, 546.487183, 41.382576, 0, 0, 337.5);
CreateObject(1305, -1660.156860, 548.111633, 41.496136, 0, 0, 315);
CreateObject(1305, -1661.974121, 549.918640, 41.881866, 0, 0, 315);
CreateObject(1305, -1663.750122, 551.494873, 41.506260, 0, 0, 281.25);
CreateObject(1305, -1667.030518, 554.843323, 41.464886, 0, 0, 292.5);
CreateObject(1305, -1665.615845, 552.852844, 41.583893, 0, 0, 270);
CreateObject(1305, -1668.669189, 556.521301, 41.506229, 0, 0, 303.75);
CreateObject(1305, -1670.294434, 558.060059, 41.681583, 0, 0, 270);
CreateObject(1305, -1654.454834, 542.558167, 43.532757, 0, 0, 247.5); //
CreateObject(1305, -1655.873657, 544.284790, 43.832691, 0, 0, 281.25);
CreateObject(1305, -1657.619995, 545.903687, 43.741241, 0, 0, 303.75);
CreateObject(1305, -1658.973389, 547.472290, 44.032356, 0, 0, 270);
CreateObject(1305, -1660.768677, 549.174622, 44.025948, 0, 0, 225);
CreateObject(1305, -1662.822510, 550.916016, 44.315815, 0, 0, 213.75);
CreateObject(1305, -1664.372314, 552.486450, 44.129856, 0, 0, 258.75);
CreateObject(1305, -1665.835083, 554.135681, 44.044884, 0, 0, 247.5);
CreateObject(1305, -1667.022827, 555.950989, 44.113705, 0, 0, 281.25);
CreateObject(1305, -1668.918091, 557.485962, 44.260979, 0, 0, 315);
Object();
}
else if(inrockwest == 3) {
CreateExplosion(-1654.454834, 542.558167, 43.532757,10,30);
CreateExplosion(-1655.873657, 544.284790, 43.832691,10,30);
CreateExplosion(-1657.619995, 545.903687, 43.741241,10,30);
CreateExplosion(-1658.973389, 547.472290, 44.032356,10,30);
CreateExplosion(-1660.768677, 549.174622, 44.025948,10,30);
CreateExplosion(-1662.822510, 550.916016, 44.315815,10,30);
CreateExplosion(-1664.372314, 552.486450, 44.129856,10,30);
CreateExplosion(-1665.835083, 554.135681, 44.044884,10,30);
CreateExplosion(-1667.022827, 555.950989, 44.113705,10,30);
CreateExplosion(-1668.918091, 557.485962, 44.260979,10,30);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1652.755737, 540.466553, 38.718349, 0, 0, 281.25); //
CreateObject(1305, -1654.440918, 542.287720, 38.725273, 0, 0, 292.5);
CreateObject(1305, -1656.370972, 543.845337, 38.716736, 0, 0, 270);
CreateObject(1305, -1658.130859, 545.461548, 38.715050, 0, 0, 281.25);
CreateObject(1305, -1659.906250, 547.152710, 38.715248, 0, 0, 281.25);
CreateObject(1305, -1661.571777, 548.962280, 39.139587, 0, 0, 292.5);
CreateObject(1305, -1663.599487, 550.394470, 38.824272, 0, 0, 270);
CreateObject(1305, -1665.227173, 552.118774, 38.725647, 0, 0, 326.25);
CreateObject(1305, -1667.157104, 553.979797, 38.720657, 0, 0, 337.5);
CreateObject(1305, -1668.747925, 555.669800, 38.719200, 0, 0, 326.25);
CreateObject(1305, -1670.277344, 557.559448, 38.732876, 0, 0, 0);
CreateObject(1305, -1671.549927, 558.450378, 38.722996, 0, 0, 0);
CreateObject(1305, -1653.653442, 541.607605, 41.131344, 0, 0, 0); //
CreateObject(1305, -1655.341187, 543.447327, 41.101017, 0, 0, 337.5);
CreateObject(1305, -1656.986084, 544.982971, 41.186131, 0, 0, 0);
CreateObject(1305, -1658.599365, 546.487183, 41.382576, 0, 0, 337.5);
CreateObject(1305, -1660.156860, 548.111633, 41.496136, 0, 0, 315);
CreateObject(1305, -1661.974121, 549.918640, 41.881866, 0, 0, 315);
CreateObject(1305, -1663.750122, 551.494873, 41.506260, 0, 0, 281.25);
CreateObject(1305, -1667.030518, 554.843323, 41.464886, 0, 0, 292.5);
CreateObject(1305, -1665.615845, 552.852844, 41.583893, 0, 0, 270);
CreateObject(1305, -1668.669189, 556.521301, 41.506229, 0, 0, 303.75);
CreateObject(1305, -1670.294434, 558.060059, 41.681583, 0, 0, 270);
Object();
}
else if(inrockwest == 4) {
CreateExplosion(-1653.653442, 541.607605, 41.131344,10,40);
CreateExplosion(-1655.341187, 543.447327, 41.101017,10,40);
CreateExplosion(-1656.986084, 544.982971, 41.186131,10,40);
CreateExplosion(-1658.599365, 546.487183, 41.382576,10,40);
CreateExplosion(-1660.156860, 548.111633, 41.496136,10,40);
CreateExplosion(-1661.974121, 549.918640, 41.881866,10,40);
CreateExplosion(-1663.750122, 551.494873, 41.506260,10,40);
CreateExplosion(-1667.030518, 554.843323, 41.464886,10,40);
CreateExplosion(-1665.615845, 552.852844, 41.583893,10,40);
CreateExplosion(-1668.669189, 556.521301, 41.506229,10,40);
CreateExplosion(-1670.294434, 558.060059, 41.681583,10,40);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1652.755737, 540.466553, 38.718349, 0, 0, 281.25); //
CreateObject(1305, -1654.440918, 542.287720, 38.725273, 0, 0, 292.5);
CreateObject(1305, -1656.370972, 543.845337, 38.716736, 0, 0, 270);
CreateObject(1305, -1658.130859, 545.461548, 38.715050, 0, 0, 281.25);
CreateObject(1305, -1659.906250, 547.152710, 38.715248, 0, 0, 281.25);
CreateObject(1305, -1661.571777, 548.962280, 39.139587, 0, 0, 292.5);
CreateObject(1305, -1663.599487, 550.394470, 38.824272, 0, 0, 270);
CreateObject(1305, -1665.227173, 552.118774, 38.725647, 0, 0, 326.25);
CreateObject(1305, -1667.157104, 553.979797, 38.720657, 0, 0, 337.5);
CreateObject(1305, -1668.747925, 555.669800, 38.719200, 0, 0, 326.25);
CreateObject(1305, -1670.277344, 557.559448, 38.732876, 0, 0, 0);
CreateObject(1305, -1671.549927, 558.450378, 38.722996, 0, 0, 0);
Object();
}
else if(inrockwest == 5) {
CreateExplosion(-1652.755737, 540.466553, 38.718349,10,70);
CreateExplosion(-1654.440918, 542.287720, 38.725273,10,70);
CreateExplosion(-1656.370972, 543.845337, 38.716736,10,70);
CreateExplosion(-1658.130859, 545.461548, 38.715050,10,70);
CreateExplosion(-1659.906250, 547.152710, 38.715248,10,70);
CreateExplosion(-1661.571777, 548.962280, 39.139587,10,70);
CreateExplosion(-1663.599487, 550.394470, 38.824272,10,70);
CreateExplosion(-1665.227173, 552.118774, 38.725647,10,70);
CreateExplosion(-1667.157104, 553.979797, 38.720657,10,70);
CreateExplosion(-1668.747925, 555.669800, 38.719200,10,70);
CreateExplosion(-1670.277344, 557.559448, 38.732876,10,70);
CreateExplosion(-1671.549927, 558.450378, 38.722996,10,70);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
EndTheRound(ATTACK_WIN1);
}
return 1;
}
//-------------------------------------------------------------------------
public WCTeamHasPutTheBomb() {
for (new i=0; i<MAX_PLAYERS; i++) {
TogglePlayerControllable(i,0);
}
if(inrockeast == 1) {
CreateExplosion(-1143.350342, 1110.577515, 48.466732,10,10);
CreateExplosion(-1141.550659, 1108.767578, 48.856270,10,10);
CreateExplosion(-1140.126465, 1107.153442, 49.259712,10,10);
CreateExplosion(-1138.211060, 1105.336792, 49.403603,10,10);
CreateExplosion(-1137.103638, 1103.123291, 49.974407,10,10);
CreateExplosion(-1135.642944, 1101.834473, 49.254356,10,10);
CreateExplosion(-1133.929443, 1100.206787, 48.893055,10,10);
CreateExplosion(-1132.070557, 1098.942261, 48.622749,10,10);
CreateExplosion(-1130.418823, 1097.504761, 48.656872,10,10);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1145.632202, 1114.502808, 38.857384, 0, 0, 22.5);
CreateObject(1305, -1143.796875, 1113.113403, 38.641991, 0, 0, 33.75);
CreateObject(1305, -1142.127197, 1110.951416, 38.660313, 0, 0, 45);
CreateObject(1305, -1140.346680, 1109.372925, 38.656784, 0, 0, 67.5);
CreateObject(1305, -1138.776001, 1108.027100, 38.652191, 0, 0, 78.75);
CreateObject(1305, -1136.918213, 1106.333618, 38.649986, 0, 0, 67.5);
CreateObject(1305, -1135.327637, 1104.473389, 39.066921, 0, 0, 78.75);
CreateObject(1305, -1133.338013, 1103.184082, 38.648987, 0, 0, 56.25);
CreateObject(1305, -1131.739136, 1101.309692, 38.660378, 0, 0, 78.75);
CreateObject(1305, -1130.138794, 1099.703979, 38.663158, 0, 0, 90);
CreateObject(1305, -1128.220703, 1098.120483, 38.648705, 0, 0, 78.75);
CreateObject(1305, -1126.525024, 1096.042969, 38.663567, 0, 0, 45); //
CreateObject(1305, -1144.962402, 1113.149536, 41.197971, 0, 0, 348.75);
CreateObject(1305, -1142.996094, 1111.463501, 41.279114, 0, 0, 326.25);
CreateObject(1305, -1141.289551, 1109.542114, 41.321217, 0, 0, 326.25);
CreateObject(1305, -1139.450928, 1107.555298, 41.492455, 0, 0, 303.75);
CreateObject(1305, -1137.684204, 1106.028320, 41.486378, 0, 0, 292.5);
CreateObject(1305, -1136.092773, 1104.403564, 41.892300, 0, 0, 281.25);
CreateObject(1305, -1134.249023, 1103.238892, 41.395424, 0, 0, 303.75);
CreateObject(1305, -1132.654663, 1101.792236, 41.160763, 0, 0, 292.5);
CreateObject(1305, -1130.899658, 1100.170532, 41.298775, 0, 0, 315);
CreateObject(1305, -1129.095703, 1098.409790, 41.302479, 0, 0, 292.5);
CreateObject(1305, -1127.444702, 1096.592651, 41.209862, 0, 0, 281.25); //
CreateObject(1305, -1144.178589, 1112.416504, 43.620911, 0, 0, 258.75);
CreateObject(1305, -1142.328857, 1110.428345, 43.657570, 0, 0, 281.25);
CreateObject(1305, -1141.087402, 1108.581665, 43.898781, 0, 0, 270);
CreateObject(1305, -1139.196167, 1106.733521, 44.148384, 0, 0, 292.5);
CreateObject(1305, -1137.223999, 1105.340454, 44.154377, 0, 0, 281.25);
CreateObject(1305, -1135.891724, 1103.442139, 44.388508, 0, 0, 303.75);
CreateObject(1305, -1133.856689, 1102.259155, 43.800285, 0, 0, 281.25);
CreateObject(1305, -1132.196533, 1100.954224, 43.688801, 0, 0, 258.75);
CreateObject(1305, -1130.376343, 1099.187256, 43.612629, 0, 0, 225);
CreateObject(1305, -1128.732422, 1097.080444, 43.470440, 0, 0, 213.75); //
CreateObject(1305, -1143.899658, 1111.280640, 45.760468, 0, 0, 213.75);
CreateObject(1305, -1142.325562, 1109.451782, 46.174557, 0, 0, 180);
CreateObject(1305, -1140.488037, 1107.421509, 46.265224, 0, 0, 202.5);
CreateObject(1305, -1138.435059, 1106.012085, 46.539673, 0, 0, 180);
CreateObject(1305, -1137.048218, 1103.659912, 46.982655, 0, 0, 112.5);
CreateObject(1305, -1134.904053, 1102.173340, 46.444504, 0, 0, 90);
CreateObject(1305, -1133.081055, 1100.400146, 46.196053, 0, 0, 112.5);
CreateObject(1305, -1131.102539, 1098.560425, 46.143398, 0, 0, 90);
CreateObject(1305, -1129.550049, 1096.901733, 46.155346, 0, 0, 78.75);
Object();
}
else if(inrockeast == 2) {
CreateExplosion(-1143.899658, 1111.280640, 45.760468,10,20);
CreateExplosion(-1142.325562, 1109.451782, 46.174557,10,20);
CreateExplosion(-1140.488037, 1107.421509, 46.265224,10,20);
CreateExplosion(-1138.435059, 1106.012085, 46.539673,10,20);
CreateExplosion(-1137.048218, 1103.659912, 46.982655,10,20);
CreateExplosion(-1134.904053, 1102.173340, 46.444504,10,20);
CreateExplosion(-1133.081055, 1100.400146, 46.196053,10,20);
CreateExplosion(-1131.102539, 1098.560425, 46.143398,10,20);
CreateExplosion(-1129.550049, 1096.901733, 46.155346,10,20);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1145.632202, 1114.502808, 38.857384, 0, 0, 22.5);
CreateObject(1305, -1143.796875, 1113.113403, 38.641991, 0, 0, 33.75);
CreateObject(1305, -1142.127197, 1110.951416, 38.660313, 0, 0, 45);
CreateObject(1305, -1140.346680, 1109.372925, 38.656784, 0, 0, 67.5);
CreateObject(1305, -1138.776001, 1108.027100, 38.652191, 0, 0, 78.75);
CreateObject(1305, -1136.918213, 1106.333618, 38.649986, 0, 0, 67.5);
CreateObject(1305, -1135.327637, 1104.473389, 39.066921, 0, 0, 78.75);
CreateObject(1305, -1133.338013, 1103.184082, 38.648987, 0, 0, 56.25);
CreateObject(1305, -1131.739136, 1101.309692, 38.660378, 0, 0, 78.75);
CreateObject(1305, -1130.138794, 1099.703979, 38.663158, 0, 0, 90);
CreateObject(1305, -1128.220703, 1098.120483, 38.648705, 0, 0, 78.75);
CreateObject(1305, -1126.525024, 1096.042969, 38.663567, 0, 0, 45); //
CreateObject(1305, -1144.962402, 1113.149536, 41.197971, 0, 0, 348.75);
CreateObject(1305, -1142.996094, 1111.463501, 41.279114, 0, 0, 326.25);
CreateObject(1305, -1141.289551, 1109.542114, 41.321217, 0, 0, 326.25);
CreateObject(1305, -1139.450928, 1107.555298, 41.492455, 0, 0, 303.75);
CreateObject(1305, -1137.684204, 1106.028320, 41.486378, 0, 0, 292.5);
CreateObject(1305, -1136.092773, 1104.403564, 41.892300, 0, 0, 281.25);
CreateObject(1305, -1134.249023, 1103.238892, 41.395424, 0, 0, 303.75);
CreateObject(1305, -1132.654663, 1101.792236, 41.160763, 0, 0, 292.5);
CreateObject(1305, -1130.899658, 1100.170532, 41.298775, 0, 0, 315);
CreateObject(1305, -1129.095703, 1098.409790, 41.302479, 0, 0, 292.5);
CreateObject(1305, -1127.444702, 1096.592651, 41.209862, 0, 0, 281.25); //
CreateObject(1305, -1144.178589, 1112.416504, 43.620911, 0, 0, 258.75);
CreateObject(1305, -1142.328857, 1110.428345, 43.657570, 0, 0, 281.25);
CreateObject(1305, -1141.087402, 1108.581665, 43.898781, 0, 0, 270);
CreateObject(1305, -1139.196167, 1106.733521, 44.148384, 0, 0, 292.5);
CreateObject(1305, -1137.223999, 1105.340454, 44.154377, 0, 0, 281.25);
CreateObject(1305, -1135.891724, 1103.442139, 44.388508, 0, 0, 303.75);
CreateObject(1305, -1133.856689, 1102.259155, 43.800285, 0, 0, 281.25);
CreateObject(1305, -1132.196533, 1100.954224, 43.688801, 0, 0, 258.75);
CreateObject(1305, -1130.376343, 1099.187256, 43.612629, 0, 0, 225);
CreateObject(1305, -1128.732422, 1097.080444, 43.470440, 0, 0, 213.75);
Object();
}
else if(inrockeast == 3) {
CreateExplosion(-1144.178589, 1112.416504, 43.620911,10,30);
CreateExplosion(-1142.328857, 1110.428345, 43.657570,10,30);
CreateExplosion(-1141.087402, 1108.581665, 43.898781,10,30);
CreateExplosion(-1139.196167, 1106.733521, 44.148384,10,30);
CreateExplosion(-1137.223999, 1105.340454, 44.154377,10,30);
CreateExplosion(-1135.891724, 1103.442139, 44.388508,10,30);
CreateExplosion(-1133.856689, 1102.259155, 43.800285,10,30);
CreateExplosion(-1132.196533, 1100.954224, 43.688801,10,30);
CreateExplosion(-1130.376343, 1099.187256, 43.612629,10,30);
CreateExplosion(-1128.732422, 1097.080444, 43.470440,10,30);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1145.632202, 1114.502808, 38.857384, 0, 0, 22.5);
CreateObject(1305, -1143.796875, 1113.113403, 38.641991, 0, 0, 33.75);
CreateObject(1305, -1142.127197, 1110.951416, 38.660313, 0, 0, 45);
CreateObject(1305, -1140.346680, 1109.372925, 38.656784, 0, 0, 67.5);
CreateObject(1305, -1138.776001, 1108.027100, 38.652191, 0, 0, 78.75);
CreateObject(1305, -1136.918213, 1106.333618, 38.649986, 0, 0, 67.5);
CreateObject(1305, -1135.327637, 1104.473389, 39.066921, 0, 0, 78.75);
CreateObject(1305, -1133.338013, 1103.184082, 38.648987, 0, 0, 56.25);
CreateObject(1305, -1131.739136, 1101.309692, 38.660378, 0, 0, 78.75);
CreateObject(1305, -1130.138794, 1099.703979, 38.663158, 0, 0, 90);
CreateObject(1305, -1128.220703, 1098.120483, 38.648705, 0, 0, 78.75);
CreateObject(1305, -1126.525024, 1096.042969, 38.663567, 0, 0, 45); //
CreateObject(1305, -1144.962402, 1113.149536, 41.197971, 0, 0, 348.75);
CreateObject(1305, -1142.996094, 1111.463501, 41.279114, 0, 0, 326.25);
CreateObject(1305, -1141.289551, 1109.542114, 41.321217, 0, 0, 326.25);
CreateObject(1305, -1139.450928, 1107.555298, 41.492455, 0, 0, 303.75);
CreateObject(1305, -1137.684204, 1106.028320, 41.486378, 0, 0, 292.5);
CreateObject(1305, -1136.092773, 1104.403564, 41.892300, 0, 0, 281.25);
CreateObject(1305, -1134.249023, 1103.238892, 41.395424, 0, 0, 303.75);
CreateObject(1305, -1132.654663, 1101.792236, 41.160763, 0, 0, 292.5);
CreateObject(1305, -1130.899658, 1100.170532, 41.298775, 0, 0, 315);
CreateObject(1305, -1129.095703, 1098.409790, 41.302479, 0, 0, 292.5);
CreateObject(1305, -1127.444702, 1096.592651, 41.209862, 0, 0, 281.25);
Object();
}
else if(inrockeast == 4) {
CreateExplosion(-1144.962402, 1113.149536, 41.197971,10,40);
CreateExplosion(-1142.996094, 1111.463501, 41.279114,10,40);
CreateExplosion(-1141.289551, 1109.542114, 41.321217,10,40);
CreateExplosion(-1139.450928, 1107.555298, 41.492455,10,40);
CreateExplosion(-1137.684204, 1106.028320, 41.486378,10,40);
CreateExplosion(-1136.092773, 1104.403564, 41.892300,10,40);
CreateExplosion(-1134.249023, 1103.238892, 41.395424,10,40);
CreateExplosion(-1132.654663, 1101.792236, 41.160763,10,40);
CreateExplosion(-1130.899658, 1100.170532, 41.298775,10,40);
CreateExplosion(-1129.095703, 1098.409790, 41.302479,10,40);
CreateExplosion(-1127.444702, 1096.592651, 41.209862,10,40);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
CreateObject(1305, -1145.632202, 1114.502808, 38.857384, 0, 0, 22.5);
CreateObject(1305, -1143.796875, 1113.113403, 38.641991, 0, 0, 33.75);
CreateObject(1305, -1142.127197, 1110.951416, 38.660313, 0, 0, 45);
CreateObject(1305, -1140.346680, 1109.372925, 38.656784, 0, 0, 67.5);
CreateObject(1305, -1138.776001, 1108.027100, 38.652191, 0, 0, 78.75);
CreateObject(1305, -1136.918213, 1106.333618, 38.649986, 0, 0, 67.5);
CreateObject(1305, -1135.327637, 1104.473389, 39.066921, 0, 0, 78.75);
CreateObject(1305, -1133.338013, 1103.184082, 38.648987, 0, 0, 56.25);
CreateObject(1305, -1131.739136, 1101.309692, 38.660378, 0, 0, 78.75);
CreateObject(1305, -1130.138794, 1099.703979, 38.663158, 0, 0, 90);
CreateObject(1305, -1128.220703, 1098.120483, 38.648705, 0, 0, 78.75);
CreateObject(1305, -1126.525024, 1096.042969, 38.663567, 0, 0, 45);
Object();
}
else if(inrockeast == 5) {
CreateExplosion(-1145.632202, 1114.502808, 38.857384,10,70);
CreateExplosion(-1143.796875, 1113.113403, 38.641991,10,70);
CreateExplosion(-1142.127197, 1110.951416, 38.660313,10,70);
CreateExplosion(-1140.346680, 1109.372925, 38.656784,10,70);
CreateExplosion(-1138.776001, 1108.027100, 38.652191,10,70);
CreateExplosion(-1136.918213, 1106.333618, 38.649986,10,70);
CreateExplosion(-1135.327637, 1104.473389, 39.066921,10,70);
CreateExplosion(-1133.338013, 1103.184082, 38.648987,10,70);
CreateExplosion(-1131.739136, 1101.309692, 38.660378,10,70);
CreateExplosion(-1130.138794, 1099.703979, 38.663158,10,70);
CreateExplosion(-1128.220703, 1098.120483, 38.648705,10,70);
CreateExplosion(-1126.525024, 1096.042969, 38.663567,10,70);
for(new i=0; i<MAX_OBJECTS; i++){DestroyObject(i);}
EndTheRound(ATTACK_WIN2);
}
return 1;
}
//-------------------------------------------------------------------------
public ForAfterCheckpoint() {
for (new i=0; i<MAX_PLAYERS; i++) {
TogglePlayerControllable(i,1);
SetPlayerHealth(i,0);
}
KillTimer(gRoundTimer);
return 1;
}
//-------------------------------------------------------------------------
EndTheRound(winner) {
switch (winner) {
case ATTACK_WIN1: {
GameTextForAll("~g~W.C. ~y~fench ~w~has been ~r~smashed!", 5000, 6);
KillTimer(gRoundTimer);
}
case ATTACK_WIN2: {
GameTextForAll("~b~E.C. ~y~fench ~w~has been ~r~smashed!", 5000, 6);
}
}
SetTimer("GameModeExitFunc", 5000, 0);
for (new i=0; i<MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
TogglePlayerControllable(i,0);
}
}
}
//-------------------------------------------------------------------------
public GameModeExitFunc()
{
for (new i=0; i<MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
SendClientMessage(i,0xFF8A00AA,"Thanks for have played at Colorado Springs Massacre GM 0.1");
}
}
GameModeExit();
}
//-------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/help", true)==0){
SendClientMessage(playerid,0xFFFF00AA,"This is a simple Break-in.");
SendClientMessage(playerid,0xFFFF00AA,"There are two team in which to spawn: The Team W.C. and the Team E.C.");
SendClientMessage(playerid,0xFFFF00AA,"Every team must place five bombs on the rocks block of the opposing team (checkpoint).");
SendClientMessage(playerid,0xFFFF00AA,"The Bomb can is disabled entering a second time in the checkpoint within fifteen second");
SendClientMessage(playerid,0xFFFF00AA,"from its activation.");
SendClientMessage(playerid,0xFFFF00AA,"The first team that place the five bombs, win the round.");
SendClientMessage(playerid,0xFFFF00AA,"Type /cmdlist for knowing the list of Commands...");
return 1;
}
if(strcmp(cmd, "/about", true)==0){
SendClientMessage(playerid,0xFFFFFFAA,"Colorado Springs Massacre GM 0.1");
SendClientMessage(playerid,0xFFFFFFAA,"This gamemode was created by Chiarboss;");
SendClientMessage(playerid,0xFFFFFFAA,"Do NOT copy this gamemode code or part of it.");
return 1;
}
if(strcmp(cmd, "/cmdlist", true)==0){
SendClientMessage(playerid,0xFFFF00AA,"/cmdlist ;");
SendClientMessage(playerid,0xFFFF00AA,"/help ;");
SendClientMessage(playerid,0xFFFF00AA,"/about ;");
SendClientMessage(playerid,0xFFFF00AA,"/shop ;");
SendClientMessage(playerid,0xFFFF00AA,"/indeath ;");
SendClientMessage(playerid,0xFFFF00AA,"/shophelp ;");
SendClientMessage(playerid,0xFFFF00AA,"/dthsystemhelp ;");
return 1;
}
if (strcmp(cmd, "/shophelp", true)==0) {
SendClientMessage(playerid,0xFFFF00AA,"If you are spawned, press /shop for enter in your Personal Shop;");
SendClientMessage(playerid,0xFFFF00AA,"Type /sawnoff if you want buy a Sawn Off Shotgun for 1000$;");
SendClientMessage(playerid,0xFFFF00AA,"type /charges if you want buy a Sachet charges for 1200$.");
SendClientMessage(playerid,0xFFFF00AA,"Every time that you choose an option,");
SendClientMessage(playerid,0xFFFF00AA,"you will newly press /armory.");
return 1;
}
if (strcmp(cmd, "/dthsystemhelp", true)==0) {
SendClientMessage(playerid,0xFFFF00AA,"With this system, you can spawn in your death coordinates.");
SendClientMessage(playerid,0xFFFF00AA,"Type /indeath for enable/disable this variable.");
SendClientMessage(playerid,0xFFFF00AA,"You can use the function of this command only five times.");
return 1;
}
if(strcmp(cmd,"/indeath", true)==0) {
if(death[playerid] < 5) {
if(indeath[playerid] == 0) {
SendClientMessage(playerid,0xFF8A00AA,"You have enabled the indeath variable.");
indeath[playerid] = 1;
}
else if(indeath[playerid] == 1) {
SendClientMessage(playerid,0xFF8A00AA,"You have disabled the indeath variable.");
indeath[playerid] = 0;
}
} else {
SendClientMessage(playerid,COLOR_RED,"The command has been disabled.");
}
return 1;
}
if(strcmp(cmd, "/shop", true)==0)
{
inarmory[playerid] ++;
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname, sizeof(pname));
format(string, sizeof(string), "- Welcome to your Personal Shop, %s; -", pname);
SendClientMessage(playerid, 0xFF8A00AA, string);
SendClientMessage(playerid, 0xFF8A00AA, "Here you can buy:");
SendClientMessage(playerid, 0xFF8A00AA, "----------------------------------");
SendClientMessage(playerid, 0xFF8A00AA, "/sawnoff [1000$]");
SendClientMessage(playerid, 0xFF8A00AA, "/charges [2000$]");
SendClientMessage(playerid, 0xFF8A00AA, "----------------------------------");
return 1;
}
if (strcmp(cmd, "/sawnoff", true)==0) {
if (inarmory[playerid] == 1) {
if(GetPlayerMoney(playerid) >= 1000){
SendClientMessage(playerid, 0xFF8A00AA, "- You have bought a Sawn Off Shotgun for 1000$. -");
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerMoney(playerid, -1000);
inarmory[playerid] = 0;
} else {
SendClientMessage(playerid, 0xFF8A00AA, "You dont have enough money! Kill to earn and come back!");
}
return 1;
}
}
if(strcmp(cmd, "/charges", true) == 0)
{
if(inarmory[playerid] == 1){
if(GetPlayerMoney(playerid) >= 1200)
{
SendClientMessage(playerid, 0xFF8A00AA, "- You have bought a Sachet Charges for 1200$. -");
GivePlayerWeapon(playerid, 39, 20);
GivePlayerMoney(playerid, -1200);
inarmory[playerid] = 0;
}
else
{
SendClientMessage(playerid, 0xFF8A00AA, "You dont have enough money! Kill to earn and come back!");
}
return 1;
}
}
return 0;
}
//-------------------------------------------------------------------------
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
//-------------------------------------------------------------------------
stock Object() {
CreateObject(969, -1141.320679, 1104.142334, 37.619526, 0, 0, 135);
CreateObject(969, -1129.932251, 1092.675171, 37.636444, 0, 0, 135);
CreateObject(969, -1656.747070, 550.685181, 37.686432, 0, 0, 315);
CreateObject(969, -1667.750854, 561.621216, 37.701839, 0, 0, 315);
CreateObject(3570, -1236.128296, 1012.911011, 43.631668, 0, 0, 315);
CreateObject(3570, -1221.832642, 999.283020, 43.633163, 0, 0, 315);
CreateObject(3570, -1236.101563, 1012.866577, 46.328995, 0, 0, 315);
CreateObject(3570, -1221.880005, 999.271729, 46.330490, 0, 0, 315);
CreateObject(3570, -1292.943970, 924.757629, 46.174347, 0, 0, 315);
CreateObject(3570, -1292.904297, 924.770386, 48.871674, 0, 0, 315);
CreateObject(3570, -1307.355957, 938.057495, 46.178421, 0, 0, 315);
CreateObject(3570, -1307.270874, 938.140625, 48.875748, 0, 0, 315);
CreateObject(1225, -1295.678467, 928.662781, 45.217052, 0, 0, 348.75);
CreateObject(1225, -1297.026245, 927.815796, 45.248791, 0, 0, 348.75);
CreateObject(1225, -1296.542236, 929.426758, 45.217487, 0, 0, 348.75);
CreateObject(1225, -1298.432129, 928.538818, 45.255394, 0, 0, 348.75);
CreateObject(1225, -1297.316162, 930.194336, 45.217232, 0, 0, 348.75);
CreateObject(1225, -1299.163086, 931.501343, 45.620590, 0, 0, 348.75);
CreateObject(1225, -1299.516479, 929.481506, 45.319824, 0, 0, 348.75);
CreateObject(1225, -1297.709106, 931.432922, 45.279480, 0, 0, 348.75);
CreateObject(1225, -1299.950928, 933.613159, 45.308342, 0, 0, 348.75);
CreateObject(1225, -1299.773315, 932.147827, 45.619793, 0, 0, 348.75);
CreateObject(1225, -1303.044556, 935.584656, 45.217587, 0, 0, 348.75);
CreateObject(1225, -1302.175781, 934.804199, 45.217243, 0, 0, 348.75);
CreateObject(1225, -1301.292725, 933.796021, 45.218571, 0, 0, 348.75);
CreateObject(1225, -1304.419189, 934.283142, 45.246902, 0, 0, 348.75);
CreateObject(1225, -1303.127319, 932.673340, 45.251049, 0, 0, 348.75);
CreateObject(1225, -1302.090210, 931.483093, 45.346558, 0, 0, 348.75);
CreateObject(918, -1299.112305, 931.596375, 46.776451, 0, 0, 0);
CreateObject(918, -1299.649170, 932.250122, 46.758148, 0, 0, 0);
CreateObject(918, -1295.704346, 928.723755, 46.381065, 0, 0, 0);
CreateObject(918, -1296.997803, 927.922302, 46.403816, 0, 0, 0);
CreateObject(918, -1302.945190, 935.636963, 46.372498, 0, 0, 0);
CreateObject(918, -1304.335083, 934.226929, 46.404320, 0, 0, 0);
CreateObject(918, -1297.681763, 931.518555, 46.439484, 0, 0, 0);
CreateObject(918, -1302.033447, 931.562866, 46.504959, 0, 0, 0);
CreateObject(3570, -1573.992310, 656.872742, 43.709236, 0, 0, 315);
CreateObject(3570, -1574.022827, 656.900085, 46.406563, 0, 0, 315);
CreateObject(3570, -1559.681885, 643.632446, 43.716408, 0, 0, 315.8594);
CreateObject(3570, -1559.680420, 643.606750, 46.413734, 0, 0, 315.8594);
CreateObject(3570, -1504.194580, 730.596252, 46.191895, 0, 0, 315.8594);
CreateObject(3570, -1504.175903, 730.544067, 48.889221, 0, 0, 315.8594);
CreateObject(3570, -1489.973999, 717.011597, 46.190926, 0, 0, 315.8594);
CreateObject(3570, -1490.027100, 716.940552, 48.888252, 0, 0, 315.8594);
CreateObject(1225, -1501.466064, 726.762207, 45.231083, 0, 0, 0);
CreateObject(1225, -1500.629517, 725.911926, 45.230183, 0, 0, 0);
CreateObject(1225, -1498.455322, 724.549561, 45.326454, 0, 0, 0);
CreateObject(1225, -1499.661621, 725.051086, 45.231102, 0, 0, 0);
CreateObject(1225, -1499.762939, 727.825378, 45.265209, 0, 0, 0);
CreateObject(1225, -1498.689331, 726.817871, 45.260670, 0, 0, 0);
CreateObject(1225, -1497.429443, 725.688171, 45.343994, 0, 0, 0);
CreateObject(1225, -1497.226807, 724.258789, 45.648399, 0, 0, 0);
CreateObject(1225, -1496.556519, 723.706421, 45.649406, 0, 0, 0);
CreateObject(1225, -1496.536743, 722.110962, 45.327618, 0, 0, 0);
CreateObject(1225, -1494.910400, 723.683716, 45.351387, 0, 0, 0);
CreateObject(1225, -1495.736206, 721.294800, 45.230602, 0, 0, 0);
CreateObject(1225, -1494.811523, 720.403931, 45.230392, 0, 0, 0);
CreateObject(1225, -1493.945068, 719.556519, 45.229988, 0, 0, 0);
CreateObject(1225, -1494.073730, 722.402344, 45.264946, 0, 0, 0);
CreateObject(1225, -1492.720459, 721.266357, 45.266548, 0, 0, 0);
CreateObject(918, -1497.290161, 724.236938, 46.811756, 0, 0, 0);
CreateObject(918, -1496.618530, 723.666565, 46.811508, 0, 0, 0);
CreateObject(918, -1497.539795, 725.627625, 46.492649, 0, 0, 0);
CreateObject(918, -1496.686523, 722.069458, 46.465313, 0, 0, 0);
CreateObject(918, -1501.477295, 726.650269, 46.384331, 0, 0, 0);
CreateObject(918, -1499.799683, 727.738586, 46.423073, 0, 0, 0);
CreateObject(918, -1492.805054, 721.199219, 46.420631, 0, 0, 0);
CreateObject(918, -1494.085205, 719.522888, 46.372215, 0, 0, 0);
return;
}