Can I look at current maps?
#1
Do you want to look at some current maps, to find out how something is done?

If yes, then read on. Some map authors do give out their map files, which can reveal how something is accomplished.

Currently, Redirect_Left, Confucius & DialUp do grant access to their maps, in their entirity. This includes code, objects & spawns.
So basically, if you want to see one of their maps, just ask!


If any other mappers are alright to distribute their maps to those who ask, just add a reply here, and also state if its OK for me to give them copies out of the jServers SVN system (where I store all of Sumos assets and where the auto-compiler will grab things from) or if you want to handle it from your own copies of files so you can track who has what.
Also no, I won't show how something is done in SumoCore, SumoCore will not be released ever, and will likely go with me to my grave.

Riotken is willing to discuss map features & theming, and makes his coding available.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#2
If personal help is needed I'm willing to give out snippets (as I've done with my mapping tutorial) & assist people personally, but the main part of the map - the objects - is something I would like to keep "secret".
Reply
#3
(02-22-2014, 10:49 PM)[MM]IKKE Wrote: If personal help is needed I'm willing to give out snippets (as I've done with my mapping tutorial) & assist people personally, but the main part of the map - the objects - is something I would like to keep "secret".

what do you mean? The objects are only IDs and coordinates. I don't think someone will steal them and even if they will I don't see anything that they could get from it.

If someone wants to know anything about the concept or how people perceive a map. In other words the theory behind some maps(not only mine any map) I can help you to analyze it and understand what makes that map interesting or boring. And yeah if by an chance someone wants the code for some of my maps you can ask me or Redirect.

For server stuff or scripting I recommend talking with Dialup, Ikke and Revo. Redirect will help too if he is not busy but that doesn't mean you can bother him with any idiocy.
Reply
#4
I'm not hiding anything Smile use my maps and scripts if you want. If somebody needs something very special - use PM
Quote:Also no, I won't show how something is done in SumoCore, SumoCore will not be released ever, and will likely go with me to my grave.
Sadly, but clever - we don't need sumo clones
Quote:2013: <~Redirect_Left> I don't like you.
2017: <~Redirect_Left> I like DialUp, he's cool.
Reply
#5
First post updated with names of people who will give maps.
(02-23-2014, 08:46 AM)DialUp Wrote: Sadly, but clever - we don't need sumo clones

Plus I wasn't joking, Sumo (and jServers as a whole) is backed up onto this flash drive, along with a few other things. I literally can be buried with it [image]
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#6
(02-22-2014, 11:22 PM)Riotken Wrote: what do you mean? The objects are only IDs and coordinates. I don't think someone will steal them and even if they will I don't see anything that they could get from it.
Remember we're talking about SA-MP. Map theft happened before. It's the only "unique" part from my side.
Reply
#7
I want any map to see how to done NPC because I'm stuck in the new codes that show when i tick box NPCs Big Grin
[Image: 5_Capture.PNG]
[Image: 4_Capture.PNG]
[Image: Captures.PNG]
Reply
#8
This is Dumper Dodgers: http://foxbox.theskyisnotblue.com/dtd.pwn
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#9
http://pastebin.com/eaPCRqYY <-- Objects+Spawn Point
http://imgur.com/5RgGfN9,uReL20d,INBoaDR...XC,fNVczIV <--The Pictures of map


Please tell me if you put this map in server Big Grin
Reply
#10
Use http://jservers.info/map to create a map.

Forum for tutorials and questions: http://sumoserv.com/forum/forumdisplay.php?fid=35
Reply
#11
Please use http://sumoserv.com/map for uploading the map. For more info about map making and Dynamic spawn points, Please refer to [MM]IKKE's tutorial here: http://sumoserv.com/forum/showthread.php?tid=1140
[Image: sig.php?name=Wagonr401]
[Image: oie_nod20S0HYKDQ.png]
[13:30:45] <SumoA> Server Bot banned Bad_Bot [Reason:Cheat Detected (C:13)]
Reply
#12
can i see the code of cross the bridge?
[Image: nkUB4LW.gif]
Reply
#13
Code:
//////////DO NOT EDIT THE BELOW THREE LINES - IT IS USED BY SUMO TO DETECT IF THIS MAP IS COMPATIBLE////////
// This file was generated using v1.0.3 of the generator.
// This file was generated at Wednesday 1st of August 2012 01:52:39 PM.
// This file is valid for Sumo 3.8.1 and higher. It will work on no earlier versions.
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// BEGIN YOUR MAP DATA - THIS IS A FULL FILE. IT CONTAINS CORE SUMO / SA:MP DATA AS WELL AS YOUR MAP DATA //

#define MAPMAKER "This map is 'Cross The Bridge' and made by FUNExtreme"
#define AUTHOR "FUNExtreme"
#define MAP "Cross The Bridge"
#include <a_samp> // SA:MP Include.
#include <CTB_LOADOUT> // This is your vehicle loadout. It's an include file in an arrayed format.
#include <SumoCore2_upd3> // Include the current version of the Sumo core.

//======================================================================= Custom
#define MOA 2 //Moving Objects Amount
new MovingObjects[MOA]; //0 = Elevator, 1 = Road
new bool:MovingObjectsStatus[MOA] = {false, false}; //True is moved state. False is original state
new Float:MovingObjectsSpeed[MOA] = {4.0, 20.0};
new JumpPickup;
new JumpTimer;
new Float:PreviousHealth[SUMOSLOTS];
new DetectionWarnings[SUMOSLOTS];
//=================================================================== End Custom

// Begin bulk map data.
public OnGameModeInit()
{
    // Load a skin, at the co-ords you set for SetPlayerPos.
    AddPlayerClass(SKIN_ID,-2683.60009766,1455.50000000,151.39999390, 0.0,0,0,0,0,0,0);

    // Begin your settings - they align properly when copy pasted into Pawno.exe
    Z_FALLOFF                    = 50.0;
    WIN_TIME                    = 450;
    MapTime                        = 12;
    Weather                        = SUNNY;
    RED_IDENTIFY_TYPE            = 2;
    RESPAWN_DELAY                 = 5;
    GIVE_NITRO                    = 1;
    RANDOM_MODDED_VEHICLES        = 1;
    MOD_ALL_VEHICLES            = 1;
    ENABLE_NOT_MOVE_LOSE        = 0;
    NOT_MOVE_WARNINGS            = 3;
    ENABLE_REPAIR                 = 1;
    REPAIR_INTERVAL             = 60;
    REPAIR_AMOUNT                 = 100;
    MAX_ALLOWED_HEALTH            = 1100;
    ENABLE_FIRE_TRUCK_RESCUE    = 0;

    // Advanced Settings - Post on jServers forum under map making for any help with these.
    MAP_INCLUDES_WEAPONS             = 0;
    MAP_USES_SPEED_ALTERATION         = 1;
    AC_DISABLE_HEALTH_DETECTION     = 1;
    MAX_SPEED_ALLOWED                 = 125;
    DISABLE_Z_DETECTION             = 0;
    ALLOW_EARLY_FINISH                 = 1;
    FIRE_TRUCK_RESCUE_AMT            = 250;
    FORCE_DUEL_CAR                  = 0;


    // Load your objects
    //---------- Static objects
    CreateObject(8171,-2661.59960938,1524.29980469,73.40000153,0.00000000,90.00000000,0.00000000); //object(vgssairportland06) (1)
    CreateObject(8171,-2662.39990234,1668.40002441,79.09999847,0.00000000,90.00000000,0.00000000); //object(vgssairportland06) (2)
    CreateObject(8171,-2662.00000000,1860.39941406,79.59999847,0.00000000,90.00000000,0.00000000); //object(vgssairportland06) (3)
    CreateObject(8171,-2662.10009766,1746.40002441,79.19999695,0.00000000,90.00000000,0.00000000); //object(vgssairportland06) (4)
    CreateObject(8171,-2662.30004883,1998.59997559,70.59999847,0.00000000,90.00000000,0.00000000); //object(vgssairportland06) (5)
    CreateObject(8171,-2700.69995117,1999.80004883,72.80000305,0.00000000,270.00000000,0.00000000); //object(vgssairportland06) (6)
    CreateObject(8171,-2700.39990234,1857.80004883,80.80000305,0.00000000,270.00000000,0.00000000); //object(vgssairportland06) (7)
    CreateObject(8171,-2701.00000000,1669.90002441,81.09999847,0.00000000,270.00000000,0.00000000); //object(vgssairportland06) (8)
    CreateObject(8171,-2700.80004883,1779.69995117,81.00000000,0.00000000,270.00000000,0.00000000); //object(vgssairportland06) (9)
    CreateObject(8171,-2701.10009766,1520.90002441,72.90000153,0.00000000,270.00000000,0.00000000); //object(vgssairportland06) (10)
    CreateObject(1662,-2679.10009766,1448.00000000,56.20000076,0.00000000,0.00000000,105.99990845); //object(nt_roadblockci) (1)
    CreateObject(8171,-2682.79980469,1455.69921875,71.59999847,0.00000000,270.00000000,90.00000000); //object(vgssairportland06) (11)
    CreateObject(8171,-2680.79980469,2066.59960938,71.40000153,0.00000000,270.00000000,270.00000000); //object(vgssairportland06) (12)
    CreateObject(1662,-2683.69995117,2074.89990234,56.70000076,0.00000000,0.00000000,285.74609375); //object(nt_roadblockci) (2)
    CreateObject(18450,-2681.30004883,1636.50000000,109.90000153,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (1)
    CreateObject(18450,-2681.30004883,1712.90002441,109.88002777,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (2)
    CreateObject(18450,-2681.29980469,1791.79980469,109.87999725,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (3)
    CreateObject(18450,-2681.29980469,1871.00000000,109.87999725,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (4)
    CreateObject(18450,-2681.39990234,1892.59997559,109.69999695,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (5)
    CreateObject(18450,-2681.50000000,1918.89941406,126.59999847,0.00000000,339.99938965,90.00000000); //object(cs_roadbridge04) (6)
    CreateObject(1634,-2685.39990234,1878.19995117,110.69999695,0.00000000,0.00000000,0.00000000); //object(landjump2) (1)
    CreateObject(1634,-2681.30004883,1878.19995117,110.69999695,0.00000000,0.00000000,0.00000000); //object(landjump2) (2)
    CreateObject(1634,-2677.50000000,1878.19995117,110.69999695,0.00000000,0.00000000,0.00000000); //object(landjump2) (3)
    CreateObject(3260,-2688.39990234,1881.80004883,111.09999847,0.00000000,0.00000000,0.00000000); //object(oldwoodpanel) (2)
    CreateObject(3260,-2674.39990234,1881.90002441,111.19999695,0.00000000,0.00000000,0.00000000); //object(oldwoodpanel) (3)
    CreateObject(970,-2663.19995117,1581.50000000,63.29999924,0.00000000,358.00000000,90.00000000); //object(fencesmallb) (1)
    CreateObject(970,-2663.19995117,1585.69995117,63.50000000,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (2)
    CreateObject(970,-2663.19921875,1608.29980469,64.59999847,0.00000000,357.98950195,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2663.19995117,1604.19995117,64.40000153,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (4)
    CreateObject(970,-2699.80004883,1581.50000000,63.29999924,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (5)
    CreateObject(970,-2699.80004883,1585.69995117,63.50000000,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (6)
    CreateObject(970,-2699.80004883,1608.30004883,64.59999847,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (7)
    CreateObject(970,-2699.80004883,1604.09997559,64.40000153,0.00000000,357.99499512,90.00000000); //object(fencesmallb) (8)
    CreateObject(3458,-2681.19995117,1958.80004883,139.10000610,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (5)
    CreateObject(3458,-2681.19995117,1963.50000000,139.10000610,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (6)
    CreateObject(3458,-2668.89990234,1954.50000000,139.69999695,0.00000000,16.00000000,90.00000000); //object(vgncarshade1) (7)
    CreateObject(3458,-2681.19995117,1968.40002441,139.10000610,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (8)
    CreateObject(3458,-2681.19995117,1973.30004883,139.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (9)
    CreateObject(3458,-2694.00000000,1954.30004883,139.69999695,0.00000000,344.00000000,270.00000000); //object(vgncarshade1) (10)
    CreateObject(18450,-2681.50000000,1636.59997559,180.19999695,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (1)
    CreateObject(18450,-2681.50000000,1716.40002441,180.19999695,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (1)
    CreateObject(18450,-2681.50000000,1795.69921875,180.19999695,0.00000000,0.00000000,90.00000000); //object(cs_roadbridge04) (1)
    CreateObject(3458,-2694.00000000,1912.09997559,145.30000305,0.00000000,0.00000000,270.00000000); //object(vgncarshade1) (11)
    CreateObject(3458,-2688.89990234,1873.19995117,145.30000305,0.00000000,0.00000000,285.00000000); //object(vgncarshade1) (12)
    CreateObject(3458,-2669.00000000,1912.09997559,145.30000305,0.00000000,0.00000000,90.00000000); //object(vgncarshade1) (13)
    CreateObject(3458,-2674.10009766,1873.09997559,145.30000305,0.00000000,0.00000000,75.00000000); //object(vgncarshade1) (14)
    CreateObject(3458,-2681.39990234,1858.19995117,145.30000305,0.00000000,0.00000000,270.00000000); //object(vgncarshade1) (15)
    CreateObject(8171,-2683.30004883,1455.59997559,110.09999847,0.00000000,270.00000000,90.00000000); //object(vgssairportland06) (11)
    CreateObject(8171,-2683.60009766,1455.50000000,149.39999390,0.00000000,270.00000000,90.00000000); //object(vgssairportland06) (11)
    CreateObject(8171,-2681.10009766,2066.69995117,109.50000000,0.00000000,270.00000000,270.00000000); //object(vgssairportland06) (12)
    CreateObject(8171,-2680.19995117,2066.80004883,147.19999695,0.00000000,270.00000000,270.00000000); //object(vgssairportland06) (12)
    CreateObject(970,-2663.10009766,1920.80004883,64.59999847,0.00000000,2.00000000,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2663.10009766,1924.90002441,64.40000153,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2663.30004883,1947.00000000,63.29999924,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2663.30004883,1942.80004883,63.50000000,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2699.80004883,1920.80004883,64.59999847,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2699.80004883,1924.90002441,64.40000153,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2699.80004883,1947.19995117,63.29999924,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(970,-2699.80004883,1943.09997559,63.59999847,0.00000000,1.99951172,90.00000000); //object(fencesmallb) (3)
    CreateObject(935,-2665.10009766,1911.00000000,64.90000153,357.00000000,0.00000000,0.00000000); //object(barrel3) (1)
    CreateObject(935,-2665.10009766,1888.30004883,65.80000305,358.00000000,0.00000000,0.00000000); //object(barrel3) (2)
    CreateObject(935,-2697.89990234,1888.30004883,65.80000305,357.99499512,0.00000000,0.00000000); //object(barrel3) (3)
    CreateObject(935,-2697.69995117,1910.90002441,64.90000153,356.99523926,0.00000000,0.00000000); //object(barrel3) (4)
    CreateObject(935,-2665.10009766,1857.50000000,66.69999695,357.99499512,0.00000000,0.00000000); //object(barrel3) (5)
    CreateObject(935,-2697.89990234,1857.30004883,66.69999695,357.99499512,0.00000000,0.00000000); //object(barrel3) (6)
    CreateObject(935,-2665.10009766,1826.50000000,67.40000153,357.99499512,0.00000000,0.00000000); //object(barrel3) (7)
    CreateObject(935,-2697.89990234,1826.40002441,67.40000153,357.99499512,0.00000000,0.00000000); //object(barrel3) (8)
    CreateObject(935,-2665.10009766,1795.69995117,67.80000305,0.00000000,0.00000000,0.00000000); //object(barrel3) (9)
    CreateObject(935,-2697.89990234,1795.59997559,67.80000305,0.00000000,0.00000000,0.00000000); //object(barrel3) (10)
    CreateObject(935,-2665.10009766,1764.40002441,68.00000000,0.00000000,0.00000000,0.00000000); //object(barrel3) (11)
    CreateObject(935,-2697.80004883,1764.40002441,68.00000000,0.00000000,0.00000000,0.00000000); //object(barrel3) (12)
    CreateObject(935,-2665.10009766,1733.69995117,67.80000305,0.00000000,0.00000000,0.00000000); //object(barrel3) (13)
    CreateObject(935,-2665.10009766,1702.80004883,67.40000153,1.00000000,0.00000000,0.00000000); //object(barrel3) (14)
    CreateObject(935,-2665.10009766,1671.90002441,66.80000305,0.99975586,0.00000000,0.00000000); //object(barrel3) (15)
    CreateObject(935,-2665.10009766,1641.00000000,65.80000305,2.00000000,0.00000000,0.00000000); //object(barrel3) (16)
    CreateObject(935,-2665.10009766,1618.09997559,65.00000000,1.99951172,0.00000000,0.00000000); //object(barrel3) (17)
    CreateObject(935,-2697.80004883,1618.00000000,64.90000153,1.99951172,0.00000000,0.00000000); //object(barrel3) (18)
    CreateObject(935,-2697.89990234,1640.90002441,65.80000305,1.99951172,0.00000000,0.00000000); //object(barrel3) (19)
    CreateObject(935,-2697.89990234,1671.80004883,66.80000305,0.99975586,0.00000000,0.00000000); //object(barrel3) (20)
    CreateObject(935,-2697.89990234,1702.69995117,67.40000153,0.99975586,0.00000000,0.00000000); //object(barrel3) (21)
    CreateObject(935,-2697.89990234,1733.50000000,67.80000305,0.00000000,0.00000000,0.00000000); //object(barrel3) (22)
    CreateObject(2935,-2689.80004883,1872.50000000,66.90000153,358.00000000,0.00000000,33.00000000); //object(kmb_container_yel) (1)
    CreateObject(2935,-2689.19995117,1655.69995117,66.90000153,2.00000000,0.00000000,32.99743652); //object(kmb_container_yel) (2)
    CreateObject(2934,-2674.10009766,1841.69995117,67.69999695,359.00000000,0.00000000,327.00000000); //object(kmb_container_red) (1)
    CreateObject(2932,-2689.89990234,1811.40002441,68.19999695,0.00000000,0.00000000,33.00000000); //object(kmb_container_blue) (1)
    CreateObject(2934,-2673.39990234,1687.59997559,67.69999695,1.00000000,0.00000000,33.00000000); //object(kmb_container_red) (2)
    CreateObject(2932,-2689.50000000,1718.30004883,68.30000305,0.00000000,0.00000000,327.00000000); //object(kmb_container_blue) (2)
    CreateObject(13435,-2685.50000000,1774.00000000,71.40000153,0.00000000,18.00000000,14.00000000); //object(sw_logs08) (1)
    CreateObject(3567,-2690.19995117,1776.69995117,67.90000153,0.00000000,0.00000000,18.00000000); //object(lasnfltrail) (1)
    CreateObject(13435,-2699.19995117,1771.50000000,67.19999695,0.00000000,344.00000000,12.00000000); //object(sw_logs08) (2)
    CreateObject(3528,-2681.30004883,1868.40002441,149.69999695,0.00000000,0.00000000,90.00000000); //object(vgsedragon) (1)
    CreateObject(1633,-2685.39990234,1600.00000000,181.69999695,0.00000000,0.00000000,180.00000000); //object(landjump) (1)
    CreateObject(1633,-2681.30004883,1600.00000000,181.69999695,0.00000000,0.00000000,179.99450684); //object(landjump) (2)
    CreateObject(1633,-2677.60009766,1600.00000000,181.69999695,0.00000000,0.00000000,179.99450684); //object(landjump) (3)
    CreateObject(1318,-2681.50000000,1837.90002441,147.30000305,0.00000000,213.99993896,270.00000000); //object(arrow) (2)


    //---------- Dynamic objects
    MovingObjects[0] = CreateObject(13607,-2681.39990234,1556.30004883,60.29999924,0.00000000,0.00000000,0.00000000); //sumoelevator(down)
       SetTimerEx("DelayedMoveObject", 5*1000, false, "d", MovingObjects[0]);
    MovingObjects[1] = CreateObject(18450,-2681.50000000,1892.30004883,180.19999695,0.00000000,0.00000000,90.00000000); //movingbridge(closed)

    JumpPickup = CreatePickup(1313, 14, -2681.6052,1858.4684,147.8285);

    SetTimer("RandomBarrelExplosions", 2*1000, true);
    SetTimer("SpawnAreaDetection", 1000, true);

    // Finished custom settings. Now lets tell Sumo to begin the game, map is finalized.
    FinalizeLoading();
    return 1;
}

// Begin other required functions.
stock OnPlayerRequestClassEx(playerid, classid)
{
    SetPlayerPos(playerid, -2683.60009766,1455.50000000,151.39999390);
    SetPlayerCameraPos(playerid, -2681.50000000, 1915.90002441, 221.89999390);
    SetPlayerCameraLookAt(playerid, -2681.50000000, 1900.90002441, 216.89999390);
    SendClientMessage(playerid, COLOR_GREY, "Press Shift to play"); // Because people are stupid if we don't add this line.
    return 1;
}

// Extra OnPlayerConnect function - the real OnPlayerConnect is part of the SumoCore.
// The below is called at the same time though, so you can add code here as desired.
stock OnPlayerConEx(playerid)
{
    SendClientMessage(playerid,COLOR_AQUA, MAPMAKER);
    SendClientMessage(playerid,COLOR_AQUA, " "); // blank line for effect.
    return 1;
}

// The main spawning. The below is called upon spawning for players.
stock OnPlayerSpawnEx(playerid)
{
    // Lets do some miscellaneous stuff before we finalise the spawning. This is all required by the Sumo Core, or at least removing it will break things.
    TogglePlayerControllable(playerid,0); // Reset to 1 by the sumo core when it says you're ready, and not before.
    new veid = random(sizeof(vehiclearray)); // GetRandomSkin(playerid);; // Get random vehicle from the allowed array you specified in loadout.

        

    // Begin your spawning code.
    // DATE: August 1, 2012 || TIME: 22:00:41
    if(vehiclearray[veid][vehid] == 406)
    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2681.5850, 2057.2341, 57.5956, 180.1016, -1, -1, 0);
    }
    else
    {
        if(playerid == 0)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 1974.300048, 62.299999, 160.000000, -1, -1, 0);    }
        if(playerid == 1)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 1980.099975, 61.900001, 159.999389, -1, -1, 0);    }
        if(playerid == 2)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 1986.000000, 61.599998, 159.999389, -1, -1, 0);    }
        if(playerid == 3)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 1992.000000, 61.200000, 159.999389, -1, -1, 0);    }
        if(playerid == 4)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 1998.199951, 60.799999, 159.999389, -1, -1, 0);    }
        if(playerid == 5)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2004.300048, 60.400001, 159.999389, -1, -1, 0);    }
        if(playerid == 6)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2010.300048, 60.000000, 159.999389, -1, -1, 0);    }
        if(playerid == 7)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2016.099975, 59.599998, 159.999389, -1, -1, 0);    }
        if(playerid == 8)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2022.099975, 59.099998, 159.999389, -1, -1, 0);    }
        if(playerid == 9)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2028.300048, 58.700000, 159.999389, -1, -1, 0);    }
        if(playerid == 10)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2034.099975, 58.299999, 159.999389, -1, -1, 0);    }
        if(playerid == 11)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2040.000000, 57.799999, 159.999389, -1, -1, 0);    }
        if(playerid == 12)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2045.900024, 57.299999, 159.999389, -1, -1, 0);    }
        if(playerid == 13)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2051.800048, 56.900001, 159.999389, -1, -1, 0);    }
        if(playerid == 14)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2665.500000, 2057.800048, 56.900001, 159.999389, -1, -1, 0);    }
        if(playerid == 15)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 1974.900024, 61.900001, 199.995117, -1, -1, 0);    }
        if(playerid == 16)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 1980.599975, 61.500000, 199.995117, -1, -1, 0);    }
        if(playerid == 17)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 1986.800048, 61.099998, 199.995117, -1, -1, 0);    }
        if(playerid == 18)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 1993.000000, 60.700000, 199.995117, -1, -1, 0);    }
        if(playerid == 19)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 1999.300048, 60.299999, 199.995117, -1, -1, 0);    }
        if(playerid == 20)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 2006.099975, 59.900001, 199.995117, -1, -1, 0);    }
        if(playerid == 21)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 2013.599975, 59.400001, 199.995117, -1, -1, 0);    }
        if(playerid == 22)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 2022.099975, 58.700000, 199.995117, -1, -1, 0);    }
        if(playerid == 23)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 2029.199951, 58.200000, 199.995117, -1, -1, 0);    }
        if(playerid == 24)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2677.899902, 2037.300048, 57.599998, 199.995117, -1, -1, 0);    }
        if(playerid == 25)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.699951, 1974.900024, 61.900001, 159.999389, -1, -1, 0);    }
        if(playerid == 26)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.199951, 1980.599975, 61.500000, 159.999389, -1, -1, 0);    }
        if(playerid == 27)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.199951, 1986.800048, 61.099998, 159.999389, -1, -1, 0);    }
        if(playerid == 28)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.199951, 1993.000000, 60.700000, 159.999389, -1, -1, 0);    }
        if(playerid == 29)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.500000, 1999.300048, 60.299999, 159.999389, -1, -1, 0);    }
        if(playerid == 30)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.500000, 2006.099975, 59.900001, 159.999389, -1, -1, 0);    }
        if(playerid == 31)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.600097, 2013.599975, 59.400001, 159.999389, -1, -1, 0);    }
        if(playerid == 32)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.600097, 2022.099975, 58.700000, 159.999389, -1, -1, 0);    }
        if(playerid == 33)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.600097, 2029.199951, 58.200000, 159.999389, -1, -1, 0);    }
        if(playerid == 34)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2685.800048, 2037.300048, 57.599998, 159.999389, -1, -1, 0);    }
        if(playerid == 35)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 1974.300048, 62.299999, 200.000000, -1, -1, 0);    }
        if(playerid == 36)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 1980.099975, 61.900001, 200.000000, -1, -1, 0);    }
        if(playerid == 37)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 1986.000000, 61.599998, 200.000000, -1, -1, 0);    }
        if(playerid == 38)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 1992.000000, 61.200000, 200.000000, -1, -1, 0);    }
        if(playerid == 39)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 1998.199951, 60.799999, 200.000000, -1, -1, 0);    }
        if(playerid == 40)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2004.300048, 60.400001, 200.000000, -1, -1, 0);    }
        if(playerid == 41)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2010.300048, 60.000000, 200.000000, -1, -1, 0);    }
        if(playerid == 42)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2016.099975, 59.599998, 200.000000, -1, -1, 0);    }
        if(playerid == 43)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2022.099975, 59.099998, 200.000000, -1, -1, 0);    }
        if(playerid == 44)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2028.300048, 58.700000, 200.000000, -1, -1, 0);    }
        if(playerid == 45)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2034.099975, 58.299999, 200.000000, -1, -1, 0);    }
        if(playerid == 46)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2040.000000, 57.799999, 200.000000, -1, -1, 0);    }
        if(playerid == 47)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2045.900024, 57.299999, 200.000000, -1, -1, 0);    }
        if(playerid == 48)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2051.800048, 56.900001, 200.000000, -1, -1, 0);    }
        if(playerid == 49)    {
            CreateSumoVehicle(playerid,vehiclearray[veid][vehid], -2697.399902, 2057.800048, 56.900001, 200.000000, -1, -1, 0);    }
    }
    SpawnedFunction(playerid); // Let sumo core take control again, we're done with them here.
    return 1;
}


//======================================================================= Custom
//-2681.39990234,1556.30004883,113.69999695 //sumoelevator(up)
//-2681.50000000,1892.30004883,180.19999695 //movingbridge(open)

#define BARREL_AMOUNT 22
new Float:BarrelPos[BARREL_AMOUNT][3] =
{
    {-2665.10009766,1911.00000000,64.90000153},
    {-2665.10009766,1888.30004883,65.80000305},
    {-2697.89990234,1888.30004883,65.80000305},
    {-2697.69995117,1910.90002441,64.90000153},
    {-2665.10009766,1857.50000000,66.69999695},
    {-2697.89990234,1857.30004883,66.69999695},
    {-2665.10009766,1826.50000000,67.40000153},
    {-2697.89990234,1826.40002441,67.40000153},
    {-2665.10009766,1795.69995117,67.80000305},
    {-2697.89990234,1795.59997559,67.80000305},
    {-2665.10009766,1764.40002441,68.00000000},
    {-2697.80004883,1764.40002441,68.00000000},
    {-2665.10009766,1733.69995117,67.80000305},
    {-2665.10009766,1702.80004883,67.40000153},
    {-2665.10009766,1671.90002441,66.80000305},
    {-2665.10009766,1641.00000000,65.80000305},
    {-2665.10009766,1618.09997559,65.00000000},
    {-2697.80004883,1618.00000000,64.90000153},
    {-2697.89990234,1640.90002441,65.80000305},
    {-2697.89990234,1671.80004883,66.80000305},
    {-2697.89990234,1702.69995117,67.40000153},
    {-2697.89990234,1733.50000000,67.80000305}
};

public OnObjectMoved(objectid)
{
    if(objectid == MovingObjects[0])
    {
        SetTimerEx("DelayedMoveObject", 5*1000, false, "d", objectid);
    }
    else if(objectid == MovingObjects[1])
    {
        JumpTimer = SetTimerEx("DelayedMoveObject", 5*1000, false, "d", objectid);
    }
    return 1;
}

forward public DelayedMoveObject(objectid);
public DelayedMoveObject(objectid)
{
    if(objectid == MovingObjects[0])
    {
        if(MovingObjectsStatus[0] == false)
        {
            MovingObjectsStatus[0] = true;
            MoveObject(MovingObjects[0], -2681.39990234,1556.30004883,113.69999695, MovingObjectsSpeed[0]);
        }
        else
        {
            MovingObjectsStatus[0] = false;
            MoveObject(MovingObjects[0], -2681.39990234, 1556.30004883, 60.29999924, MovingObjectsSpeed[0]);
        }
    }
    else if(objectid == MovingObjects[1])
    {
        MoveObject(MovingObjectsStatus[1], -2681.50000000, 1892.30004883, 180.19999695, MovingObjectsSpeed[1]);
        MovingObjectsStatus[1] = false;
    }
    return 1;
}

stock OnPlayerPickUpPickupEx(playerid, pickupid)
{
    if(pickupid == JumpPickup)
    {
        if(MovingObjectsStatus[1] == true)
        {
            KillTimer(JumpTimer);
        }
        DestroyPickup(JumpPickup);
        JumpPickup = CreatePickup(1313, 14, -2681.6052,1850.4684,147.8285);
         //MoveObject(MovingObjectsStatus[1], -2681.50000000, 1875.30004883, 180.19999695, MovingObjectsSpeed[1]);
        MovingObjectsStatus[1] = true;
        GetVehicleHealth(GetPlayerVehicleID(playerid), PreviousHealth[playerid]);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, -0.2, 0.8);
        SetTimerEx("RestoreHealth", 4*1000, false, "d", playerid);
    }
    return 1;
}

forward public RestoreHealth(playerid);
public RestoreHealth(playerid)
{
    if(overtime == true) return 1;
    vInfo[aHistory[playerid][vehID]][wasBurning] = false;
    aHistory[playerid][lkvhealth] = PreviousHealth[playerid];
    SetVehicleHealth(GetPlayerVehicleID(playerid), PreviousHealth[playerid]);
    SendClientMessage(playerid, COLOR_ORANGE, "Your health is now the same as prior to the jump!");
    return 1;
}

forward public RandomBarrelExplosions();
public RandomBarrelExplosions()
{
    for(new i = 0; i < 6; i ++)
    {
        new Random = random(BARREL_AMOUNT);
        CreateExplosion(BarrelPos[Random][0], BarrelPos[Random][1], BarrelPos[Random][2], 0, 3.0);
    }
    return 1;
}

forward public SpawnAreaDetection();
public SpawnAreaDetection()
{
    new Float:X, Float:Y, Float:Z;
    for(new i = 0; i < SUMOSLOTS+1; i ++)
    {
        if(IsPlayerConnected(i))
        {
            if(aInfo[i][Playing] == 1)
            {
                GetPlayerPos(i, X, Y, Z);
                if((-2699.8 < X < -2663.3) && (1964.3 < Y < 2065.6) && (54.5 < Z < 62.5))
                {
                    DetectionWarnings[i] ++;
                    if(DetectionWarnings[i] == 6 || DetectionWarnings[i] == 11 || DetectionWarnings[i] == 16)
                    {
                        SendClientMessage(i, COLOR_GREY, "INFO: This map has spawn area detection enabled. Do not stay here or you will be eliminated.");
                    }
                    else if(DetectionWarnings[i] == 21)
                    {
                        SendClientMessage(i, COLOR_GREY, "INFO: You stayed within the spawn area for too long!");
                        Eliminate(i, 8, "Failed to move from spawn area ");
                    }
                }
                else
                {
                    DetectionWarnings[i] = 0;
                }
            }
        }
    }
    return 1;
}
//=================================================================== End Custom
// End of file.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)