PHP код:
if(DMZone[playerid] >= 1)
{
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(DMZone[playerid] == 1)
{
new RandomSpawn = random(6);
if (RandomSpawn == 0)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2595.3945,2758.7642,23.8222);
SetPlayerFacingAngle(playerid, 247.9706);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 1)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2600.9648,2726.4263,23.8222);
SetPlayerFacingAngle(playerid, 329.4380);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 2)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2639.5300,2729.5732,23.8222);
SetPlayerFacingAngle(playerid, 46.8321);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 3)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2642.3181,2757.0920,23.8222);
SetPlayerFacingAngle(playerid, 121.7195);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 4)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2649.0498,2780.8462,19.3222);
SetPlayerFacingAngle(playerid, 196.2701);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 5)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2607.4639,2732.1467,36.5386);
SetPlayerFacingAngle(playerid, 255.2007);
SetCameraBehindPlayer(playerid);
}
GivePlayerWeapon(playerid, 38, 2000);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_RED, "SHOOTING WITH MINIGUN OUTSIDE -MINIGUNMADNESS- WIL RESULT IN KICK OR BAN!!!");
SendClientMessage(playerid, COLOR_GREY, "Use /ExitDM to exit MinigunMadness.");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(DMZone[playerid] == 2)
{
new RandomSpawn = random(9);
if (RandomSpawn == 0)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2473.3635,1552.3779,33.2273);
SetPlayerFacingAngle(playerid, 162.4520);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 1)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2464.5215,1531.9247,17.3281);
SetPlayerFacingAngle(playerid, 356.1172);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 2)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2460.7542,1551.8220,23.1406);
SetPlayerFacingAngle(playerid, 179.0821);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 3)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2444.2595,1530.2435,20.2344);
SetPlayerFacingAngle(playerid, 340.1136);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 4)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2401.1440,1532.8340,26.0469);
SetPlayerFacingAngle(playerid, 17.7140);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 5)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2374.3948,1535.5518,26.0469);
SetPlayerFacingAngle(playerid, 57.7976);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 6)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2359.6692,1561.0190,26.0469);
SetPlayerFacingAngle(playerid, 162.1386);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 7)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2382.4871,1547.8801,10.8281);
SetPlayerFacingAngle(playerid, 108.2448);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 8)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2422.0405,1551.3163,7.9219);
SetPlayerFacingAngle(playerid, 143.3385);
SetCameraBehindPlayer(playerid);
}
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 47);
GivePlayerWeapon(playerid, 26, 44);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_RED, "SHOOTING WITH WEAPONS OUTSIDE -GlassMadness.- WIL RESULT IN KICK OR BAN!!!");
SendClientMessage(playerid, COLOR_GREY, "Use /ExitDM to exit GlassMadness.");
}
else
if(DMZone[playerid] = 0)
{
if(IsPlayerLuxAdmin(playerid) || IsPlayerAdmin(playerid))
{
SetPlayerPos(playerid, -2934.1000,-543.9000,4.9000);
SetPlayerInterior(playerid, 0);
GameTextForPlayer(playerid,"~r~/Cmds ~b~/Rules",2500,5);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw0);
}
else
{
SetPlayerPos(playerid, -2353.2153,-1641.8929,483.7031);
SetPlayerInterior(playerid, 0);
GameTextForPlayer(playerid,"~r~/Cmds ~b~/Rules",2500,5);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw0);
}
}
}
return 1;
}
SetPlayerPos(playerid, RandSpawn[rand][0], RandSpawn[rand][1], RandSpawn[rand][2]);