[MM]IKKE's Map Making Tutorial
#46
add foxbox before the .theskyisnotblue.com, forgot to add my servername.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#47
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.1B of the generator.
// This file was generated at Monday 24th of February 2014 06:46:45 PM.
// This file is valid for Sumo 3.15 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 'Fast Cars' and made by Tom_Lucca"
#define AUTHOR "Tom_Lucca"
#define MAP "Fast Cars"
#include <a_samp>
#include <FAST_NO_BIKE> // This is your vehicle loadout. It's an include file in an arrayed format.
#include <jSSumoTestFastCars> // Include the current version of the Sumo core (currently SumoCore3, Update 3).



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

    // Begin your settings - they align properly when copy pasted into Pawno.exe
    Z_FALLOFF                    = 3.0;
    GAME_MODE_TYPE                = NORMAL;
    WIN_TIME                    = 400;
    MAX_MAP_PLAYERS                = 50;
    MapTime                        = 12;
    Weather                        = SUNNY;
    RED_IDENTIFY_TYPE            = 1;
    RESPAWN_DELAY                 = 12;
    GIVE_NITRO                    = 0;
    RANDOM_MODDED_VEHICLES        = 1;
    MOD_ALL_VEHICLES            = 1;
    ELIMINATE_FLIP                = 0;
    FLIP_FLIPPED                = 0;
    ENABLE_NOT_MOVE_LOSE        = 0;
    NOT_MOVE_WARNINGS            = 3;
    ENABLE_REPAIR                 = 1;
    REPAIR_INTERVAL             = 120;
    REPAIR_AMOUNT                 = 160;
    MAX_ALLOWED_HEALTH            = 1750;
    ENABLE_FIRE_TRUCK_RESCUE    = 0;
    LIMIT_TOTAL_DUMPERS            = 0;
    LIMIT_TOTAL_HARVESTERS        = 0;
    LIMIT_TOTAL_DOZERS            = 0;
    LIMIT_TOTAL_BIKES            = 0;
    LIMIT_TOTAL_SWAT            = 0;



    // Load your objects
    CreateObject(13607, 7689.19, 1600.27, 1144.71,   0.00, 0.00, 0.00);
CreateObject(13607, 7661.30, 1522.38, 1144.71,   0.00, 0.00, 0.00);
CreateObject(13607, 7607.72, 1585.53, 1144.71,   0.00, 0.00, 0.00);
CreateObject(18783, 7613.36, 1535.20, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18783, 7610.26, 1515.45, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18783, 7607.09, 1495.70, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18784, 7603.99, 1476.15, 1143.85,   0.00, 0.00, 261.25);
CreateObject(18783, 7601.01, 1456.49, 1143.82,   0.00, 0.00, 351.90);
CreateObject(18783, 7593.57, 1538.25, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18783, 7590.68, 1518.49, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18783, 7587.62, 1498.74, 1138.75,   0.00, 0.00, -8.76);
CreateObject(18784, 7584.24, 1479.29, 1143.85,   0.00, 0.00, 261.25);
CreateObject(18783, 7581.47, 1459.61, 1143.82,   0.00, 0.00, 351.90);
CreateObject(18807, 7576.85, 1412.84, 1136.04,   0.00, 0.00, 260.73);
CreateObject(18800, 7543.42, 1350.89, 1138.82,   0.00, 0.00, 259.99);
CreateObject(18783, 7529.91, 1411.09, 1139.60,   0.00, 0.00, -8.76);
CreateObject(970, 7540.97, 1417.30, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7540.34, 1413.20, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7539.71, 1409.12, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7539.06, 1405.01, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7538.52, 1401.64, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7521.24, 1420.50, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7520.60, 1416.41, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7519.98, 1412.27, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7519.35, 1408.19, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7520.56, 1402.43, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7518.85, 1404.82, 1142.56,   0.00, 0.00, 81.02);
CreateObject(970, 7524.69, 1401.82, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7528.77, 1401.20, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7532.86, 1400.56, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7536.18, 1400.01, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7539.30, 1419.68, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7535.19, 1420.31, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7531.09, 1420.93, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7526.96, 1421.57, 1142.56,   0.00, 0.00, 351.49);
CreateObject(970, 7523.59, 1422.08, 1142.56,   0.00, 0.00, 351.49);
CreateObject(1225, 7618.30, 1536.08, 1141.55,   0.00, 0.00, 0.00);
CreateObject(1225, 7604.80, 1538.08, 1141.55,   0.00, 0.00, 0.00);
CreateObject(1225, 7589.04, 1540.63, 1141.55,   0.00, 0.00, 0.00);
CreateObject(1225, 7590.73, 1585.73, 1141.76,   0.00, 0.00, 0.00);
CreateObject(1225, 7626.69, 1583.43, 1141.76,   0.00, 0.00, 0.00);
CreateObject(1225, 7679.12, 1525.46, 1141.77,   0.00, 0.00, 0.00);
CreateObject(1225, 7641.50, 1521.78, 1141.77,   0.00, 0.00, 0.00);
CreateObject(1225, 7661.16, 1524.60, 1141.77,   0.00, 0.00, 0.00);
CreateObject(1225, 7608.37, 1584.70, 1141.76,   0.00, 0.00, 0.00);
CreateObject(1225, 7688.33, 1618.29, 1141.66,   0.00, 0.00, 0.00);
CreateObject(1225, 7689.34, 1600.24, 1141.66,   0.00, 0.00, 0.00);
CreateObject(1225, 7690.45, 1579.94, 1141.66,   0.00, 0.00, 0.00);
    SetupDynamicSpawns();


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

// Begin other required functions.

public OnPlayerRequestClass(playerid, classid)
{

    SetPlayerPos(playerid,7705.30, 1577.29, 1141.16);
    SetPlayerCameraPos(playerid,7690.37, 1648.14, 1167.65);
    SetPlayerCameraLookAt(playerid,7690.37, 1648.14, 1167.65);
    SendClientMessage(playerid,COLOR_GREY,"Press Shift to play"); // Because people are stupid if we don't add this line.

    return 1;
}

// Some extra functions to help you do things in line with the core.
// The below is called at the same time though, so you can add code here as desired - such as resetting map vars, or displaying extra welcome message.
// If you use any of the 'Ex' features, you should removed the #pragma unused section.
stock OnPlayerConEx(playerid)
{
    SendClientMessage(playerid,COLOR_AQUA,MAPMAKER);
    SendClientMessage(playerid,COLOR_AQUA," "); // blank line for effect.

    return 1;
}

// Called when a player has DIED.
stock OnPlayerDeathEx(playerid,killerid,reason)
{
    #pragma unused playerid,killerid,reason
    return 1;
}

// Called when someone is eliminated, reasons are 1 (fell off), 2 (fell off bike/quad), 3 (died), 4 (exited car), 6 (failed to keep moving) (5 is not valid)
stock OnPlayerElimination(playerid,reason)
{
    #pragma unused playerid,reason
    return 1;
}

// Called when someone leaves the game, reasons are 0 (Timed Out), 1 (Player Quit), 2 (Kicked or Banned)
stock OnPlayerDisconnectEx(playerid,reason)
{
    #pragma unused playerid,reason
    return 1;
}

// Called whenever the player & server share data, this is up to 6 or 7 times a second. Used for highly accurate stuff.
// Returning 0 in this function will not sync the player, do not put inefficient code here, you'll lag the server.
stock OnPlayerUpdateEx(playerid)
{
    #pragma unused playerid
    return 1;
}

// Called when someone wins the map. Playerid is  the player won, and was_overtime is a bool (true of fale) depicting if overtime was active or not.
// useful for achievements and HCPs
stock OnPlayerWinGame(playerid,bool:was_overtime)
{
    #pragma unused playerid,was_overtime
    return 1;
}

// The main spawning. The below is called upon spawning for players.
public OnPlayerSpawn(playerid)
{

    SetPlayerPos(playerid,7705.30, 1577.29, 1141.16);
    // 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.
    GetRandomSkin(playerid); // Get a new random skin for the player
    new veid = random(sizeof(vehiclearray)); // Get random vehicle from the allowed array you specified in loadout.

    DynamicallySpawnPlayer(playerid,vehiclearray[veid][vehid]);
    SpawnedFunction(playerid); // Let sumo core take control again, we're done with them here.
    return 1;

}
// Setup your dynamic spawns, this puts them into the SumoCore memory to use randomly for later spawns.
SetupDynamicSpawns(){
    // DATE: February 24, 2014 || TIME: 16:12:44
    if(playerid == 0)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7681.049316, 1632.920410, 1146.709960, 194.000000, -1, -1, 0);    }
    if(playerid == 1)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7673.392089, 1629.981201, 1146.709960, 208.000000, -1, -1, 0);    }
    if(playerid == 2)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7666.673828, 1625.276855, 1146.709960, 222.000000, -1, -1, 0);    }
    if(playerid == 3)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7661.292968, 1619.086914, 1146.709960, 236.000000, -1, -1, 0);    }
    if(playerid == 4)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7657.569335, 1611.779052, 1146.709960, 250.000000, -1, -1, 0);    }
    if(playerid == 5)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7655.724121, 1603.787353, 1146.709960, 264.000000, -1, -1, 0);    }
    if(playerid == 6)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7655.867187, 1595.586791, 1146.709960, 278.000000, -1, -1, 0);    }
    if(playerid == 7)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7657.990234, 1587.664550, 1146.709960, 292.000000, -1, -1, 0);    }
    if(playerid == 8)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7661.966308, 1580.491088, 1146.709960, 306.000000, -1, -1, 0);    }
    if(playerid == 9)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7667.560058, 1574.492675, 1146.709960, 320.000000, -1, -1, 0);    }
    if(playerid == 10)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7674.438964, 1570.025634, 1146.709960, 334.000000, -1, -1, 0);    }
    if(playerid == 11)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7682.193847, 1567.355346, 1146.709960, 348.000000, -1, -1, 0);    }
    if(playerid == 12)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7690.364257, 1566.640502, 1146.709960, 362.000000, -1, -1, 0);    }
    if(playerid == 13)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7698.465332, 1567.923583, 1146.709960, 376.000000, -1, -1, 0);    }
    if(playerid == 14)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7706.015136, 1571.128295, 1146.709960, 390.000000, -1, -1, 0);    }
    if(playerid == 15)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7712.565429, 1576.064208, 1146.709960, 404.000000, -1, -1, 0);    }
    if(playerid == 16)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7717.726562, 1582.438232, 1146.709960, 418.000000, -1, -1, 0);    }
    if(playerid == 17)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7721.192871, 1589.871582, 1146.709960, 432.000000, -1, -1, 0);    }
    if(playerid == 18)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7722.757812, 1597.922729, 1146.709960, 446.000000, -1, -1, 0);    }
    if(playerid == 19)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7722.328613, 1606.113281, 1146.709960, 460.000000, -1, -1, 0);    }
    if(playerid == 20)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7719.930664, 1613.956665, 1146.709960, 474.000000, -1, -1, 0);    }
    if(playerid == 21)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7715.706542, 1620.987060, 1146.709960, 488.000000, -1, -1, 0);    }
    if(playerid == 22)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7709.906738, 1626.786621, 1146.709960, 502.000000, -1, -1, 0);    }
    if(playerid == 23)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7702.876464, 1631.010864, 1146.709960, 516.000000, -1, -1, 0);    }
    if(playerid == 24)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7695.033203, 1633.408813, 1146.709960, 530.000000, -1, -1, 0);    }
    if(playerid == 25)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7653.159179, 1555.030517, 1146.709960, 194.000000, -1, -1, 0);    }
    if(playerid == 26)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7645.501953, 1552.091186, 1146.709960, 208.000000, -1, -1, 0);    }
    if(playerid == 27)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7638.783691, 1547.386840, 1146.709960, 222.000000, -1, -1, 0);    }
    if(playerid == 28)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7633.402832, 1541.196899, 1146.709960, 236.000000, -1, -1, 0);    }
    if(playerid == 29)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7629.679199, 1533.889038, 1146.709960, 250.000000, -1, -1, 0);    }
    if(playerid == 30)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7627.833984, 1525.897338, 1146.709960, 264.000000, -1, -1, 0);    }
    if(playerid == 31)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7627.977050, 1517.696777, 1146.709960, 278.000000, -1, -1, 0);    }
    if(playerid == 32)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7630.100097, 1509.774536, 1146.709960, 292.000000, -1, -1, 0);    }
    if(playerid == 33)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7634.076171, 1502.601074, 1146.709960, 306.000000, -1, -1, 0);    }
    if(playerid == 34)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7639.669921, 1496.602661, 1146.709960, 320.000000, -1, -1, 0);    }
    if(playerid == 35)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7646.548828, 1492.135620, 1146.709960, 334.000000, -1, -1, 0);    }
    if(playerid == 36)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7654.303710, 1489.465332, 1146.709960, 348.000000, -1, -1, 0);    }
    if(playerid == 37)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7662.474121, 1488.750488, 1146.709960, 362.000000, -1, -1, 0);    }
    if(playerid == 38)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7670.575195, 1490.033569, 1146.709960, 376.000000, -1, -1, 0);    }
    if(playerid == 39)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7678.125000, 1493.238281, 1146.709960, 390.000000, -1, -1, 0);    }
    if(playerid == 40)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7684.675292, 1498.174194, 1146.709960, 404.000000, -1, -1, 0);    }
    if(playerid == 41)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7689.836425, 1504.548217, 1146.709960, 418.000000, -1, -1, 0);    }
    if(playerid == 42)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7693.302734, 1511.981567, 1146.709960, 432.000000, -1, -1, 0);    }
    if(playerid == 43)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7694.867675, 1520.032714, 1146.709960, 446.000000, -1, -1, 0);    }
    if(playerid == 44)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7694.438476, 1528.223266, 1146.709960, 460.000000, -1, -1, 0);    }
    if(playerid == 45)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7692.040527, 1536.066650, 1146.709960, 474.000000, -1, -1, 0);    }
    if(playerid == 46)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7687.816406, 1543.097045, 1146.709960, 488.000000, -1, -1, 0);    }
    if(playerid == 47)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7682.016601, 1548.896606, 1146.709960, 502.000000, -1, -1, 0);    }
    if(playerid == 48)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7674.986328, 1553.120849, 1146.709960, 516.000000, -1, -1, 0);    }
    if(playerid == 49)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7667.143066, 1555.518798, 1146.709960, 530.000000, -1, -1, 0);    }
    if(playerid == 50)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7599.579589, 1618.180419, 1146.709960, 194.000000, -1, -1, 0);    }
    if(playerid == 51)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7591.922363, 1615.241210, 1146.709960, 208.000000, -1, -1, 0);    }
    if(playerid == 52)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7585.204101, 1610.536865, 1146.709960, 222.000000, -1, -1, 0);    }
    if(playerid == 53)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7579.823242, 1604.346923, 1146.709960, 236.000000, -1, -1, 0);    }
    if(playerid == 54)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7576.099609, 1597.039062, 1146.709960, 250.000000, -1, -1, 0);    }
    if(playerid == 55)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7574.254394, 1589.047363, 1146.709960, 264.000000, -1, -1, 0);    }
    if(playerid == 56)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7574.397460, 1580.846801, 1146.709960, 278.000000, -1, -1, 0);    }
    if(playerid == 57)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7576.520507, 1572.924560, 1146.709960, 292.000000, -1, -1, 0);    }
    if(playerid == 58)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7580.496582, 1565.751098, 1146.709960, 306.000000, -1, -1, 0);    }
    if(playerid == 59)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7586.090332, 1559.752685, 1146.709960, 320.000000, -1, -1, 0);    }
    if(playerid == 60)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7592.969238, 1555.285644, 1146.709960, 334.000000, -1, -1, 0);    }
    if(playerid == 61)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7600.724121, 1552.615356, 1146.709960, 348.000000, -1, -1, 0);    }
    if(playerid == 62)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7608.894531, 1551.900512, 1146.709960, 362.000000, -1, -1, 0);    }
    if(playerid == 63)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7616.995605, 1553.183593, 1146.709960, 376.000000, -1, -1, 0);    }
    if(playerid == 64)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7624.545410, 1556.388305, 1146.709960, 390.000000, -1, -1, 0);    }
    if(playerid == 65)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7631.095703, 1561.324218, 1146.709960, 404.000000, -1, -1, 0);    }
    if(playerid == 66)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7636.256835, 1567.698242, 1146.709960, 418.000000, -1, -1, 0);    }
    if(playerid == 67)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7639.723144, 1575.131591, 1146.709960, 432.000000, -1, -1, 0);    }
    if(playerid == 68)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7641.288085, 1583.182739, 1146.709960, 446.000000, -1, -1, 0);    }
    if(playerid == 69)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7640.858886, 1591.373291, 1146.709960, 460.000000, -1, -1, 0);    }
    if(playerid == 70)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7638.460937, 1599.216674, 1146.709960, 474.000000, -1, -1, 0);    }
    if(playerid == 71)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7634.236816, 1606.247070, 1146.709960, 488.000000, -1, -1, 0);    }
    if(playerid == 72)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7628.437011, 1612.046630, 1146.709960, 502.000000, -1, -1, 0);    }
    if(playerid == 73)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7621.406738, 1616.270874, 1146.709960, 516.000000, -1, -1, 0);    }
    if(playerid == 74)    {
        CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7613.563476, 1618.668823, 1146.709960, 530.000000, -1, -1, 0);    }
}



// End of file.
Reply
#48
Your Spawns should be like
Quote: AddDynamicSpawn(number,number,number,number);
and not like
Quote: if(playerid == 0) {
CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7681.049316, 1632.920410, 1146.709960, 194.000000, -1, -1, 0); }
These are the old spawning methods. Convert this and the others to the new spawning methods at http://jservers.info/map/convert.php
[Image: sig.php?name=Wagonr401]
[Image: oie_nod20S0HYKDQ.png]
[13:30:45] <SumoA> Server Bot banned Bad_Bot [Reason:Cheat Detected (C:13)]
Reply
#49
(02-25-2014, 01:43 PM)Wagonr401 Wrote: Your Spawns should be like
Quote: AddDynamicSpawn(number,number,number,number);
and not like
Quote: if(playerid == 0) {
CreateSumoVehicle(playerid,vehiclearray[veid][vehid], 7681.049316, 1632.920410, 1146.709960, 194.000000, -1, -1, 0); }
These are the old spawning methods. Convert this and the others to the new spawning methods at http://jservers.info/map/convert.php
Thank you very much !!
Reply
#50
File link .. VehCreator.amx .. doesn't work
[Image: 5_Capture.PNG]
[Image: 4_Capture.PNG]
[Image: Captures.PNG]
Reply
#51
Fixed the links, they were pointing to jservers.info/filename.amx, they were changed to be in the map folder a while ago to keep the FTP directories clean, they're now in jservers.info/map/filename.amx
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#52
I tried the map making technique, but i got two major problems -
1) The pawno is showing 26 errors with #include <jSSumoTestMapName> & 1 error with #include <Sumocore2_upd3>
2) The samp_server.exe is not working.

Enclosed - Pics of the compile of Pawno for both #include and The server_log.txt and server.cfg


Attached Files Thumbnail(s)
           
FEAR ME !!
Reply
#53
1) Don't compile the include file.
2) Rename your include into 'SumoCore2_upd3'
3) Compile your map file and start the server.
Reply
#54
At this step :

Open your Map File (\SAMP Server\gamemodes\) and go to one of the first lines. This line will say "#include <SumoCore2_upd>" (or something similar to that). Change this to "#include <jSSumoTestMapName>". This refers to the include you've made. If you do it RDL's way, you'll need to change the include file name each time you load another map since you didn't include the MapName in jSSumoTest.inc.

when i push f5 ill get this errors :

C:\Users\ralph\Downloads\samp03z_svr_R1_win32\pawno\include\jssumotestmapname.inc(80) : error 017: undefined symbol "MAX_MAP_PLAYERS"
C:\Users\ralph\Downloads\samp03z_svr_R1_win32\gamemodes\Mapname.pwn(261) : error 017: undefined symbol "playerid"
C:\Users\ralph\Downloads\samp03z_svr_R1_win32\gamemodes\Mapname.pwn(265) : error 001: expected token: ";", but found "{"
C:\Users\ralph\Downloads\samp03z_svr_R1_win32\gamemodes\Mapname.pwn(322) : error 030: compound statement not closed at the end of file (started at line 258)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Any help ? Big Grin
Reply
#55
Find MAX_MAP_PLAYERS in the test file and remove it, and the comma after it.

What is line 261?
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#56
(08-25-2014, 06:08 PM)Redirect Left Wrote: Find MAX_MAP_PLAYERS in the test file and remove it, and the comma after it.

What is line 261?

DynamicallySpawnPlayer(playerid,vehiclearray[veid][vehid]);
Reply
#57
You likely copy pasted lines incorrectly. If that line was placed correctly, it would work correctly.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#58
(08-25-2014, 06:15 PM)Redirect Left Wrote: You likely copy pasted lines incorrectly. If that line was placed correctly, it would work correctly.

Should be this right ?

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.2 of the generator.                                
// This file was generated at Thursday 21st of August 2014 09:13:18 PM.                                                    
// This file is valid for Sumo 3.17 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 'Goodluck' and made by Ralphert"
#define AUTHOR "Ralphert"
#define MAP "Goodluck"
#include <NO_BIKES> // 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 (currently SumoCore3, Update 3).



// Begin bulk map data.
public OnGameModeInit()
{
    // Load a skin, at the co-ords you set for SetPlayerPos.
    AddPlayerClass(SKIN_ID,3584.6000976563,1986.4000244141,138.80000305176,0.0,0,0,0,0,0,0);
    
    // Begin your settings - they align properly when copy pasted into Pawno.exe
    Z_FALLOFF                    = 4;
    GAME_MODE_TYPE                = NORMAL;
    WIN_TIME                    = 400;
    MapTime                        = 12;
    Weather                        = SUNNY;
    RED_IDENTIFY_TYPE            = 1;
    RESPAWN_DELAY                 = 15;
    GIVE_NITRO                    = 0;
    RANDOM_MODDED_VEHICLES        = 1;
    MOD_ALL_VEHICLES            = 0;
    ELIMINATE_FLIP                = 0;
    FLIP_FLIPPED                = 0;
    ENABLE_NOT_MOVE_LOSE        = 0;
    NOT_MOVE_WARNINGS            = 3;
    ENABLE_REPAIR                 = 1;
    REPAIR_INTERVAL             = 60;
    REPAIR_AMOUNT                 = 160;
    REPAIR_X                    = 125;
    MAX_ALLOWED_HEALTH            = 1750;    
    ALLOW_RAMP_SPAWNING            = 0;    
    ENABLE_FIRE_TRUCK_RESCUE    = 1;
    LIMIT_TOTAL_DUMPERS            = 1;
    LIMIT_TOTAL_HARVESTERS        = 2;
    LIMIT_TOTAL_DOZERS            = 1;
    LIMIT_TOTAL_BIKES            = 3;
    LIMIT_TOTAL_SWAT            = 0;
    FORCE_RED_INVOLVEMENT        = 0;
    
    
    
    // Load your objects
    CreateObject(13607,3467.9004000,1986.0000000,108.4000000,0.0000000,0.0000000,0.0000000); //object(ringwalls) (1)
CreateObject(8558,3509.0000000,1980.7000000,103.1000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (2)
CreateObject(8558,3508.8000000,1985.2000000,103.1000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (3)
CreateObject(8558,3547.8999000,1987.2000000,103.1000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (4)
CreateObject(8558,3547.7000000,1982.1000000,103.1000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (5)
CreateObject(13607,3601.7000000,1984.5000000,108.4000000,0.0000000,0.0000000,0.0000000); //object(ringwalls) (3)
CreateObject(13607,3658.8000000,1929.4000000,108.4000000,0.0000000,0.0000000,0.0000000); //object(ringwalls) (5)
CreateObject(13607,3709.5000000,1987.9000000,108.4000000,0.0000000,0.0000000,0.0000000); //object(ringwalls) (6)
CreateObject(7621,3658.7000000,1970.8000000,98.6000000,0.0000000,0.0000000,0.0000000); //object(vegasnfrates06) (1)
CreateObject(7516,3652.2000000,1967.9000000,108.6000000,0.0000000,0.0000000,270.0000000); //object(vegasnfrates02) (1)
CreateObject(7621,3658.7000000,1979.7000000,98.6000000,0.0000000,0.0000000,0.0000000); //object(vegasnfrates06) (2)
CreateObject(8076,3637.0000000,1988.7000000,108.9000000,0.0000000,0.0000000,0.0000000); //object(vgsfrates05) (1)
CreateObject(8076,3639.3000000,2006.3000000,108.9000000,0.0000000,0.0000000,90.0000000); //object(vgsfrates05) (2)
CreateObject(8885,3638.2000000,2017.4000000,108.3000000,0.0000000,0.0000000,0.0000000); //object(vgsefrght03) (1)
CreateObject(8077,3654.1001000,2005.6000000,108.9000000,0.0000000,0.0000000,0.0000000); //object(vgsfrates06) (1)
CreateObject(8335,3665.8999000,2002.2000000,108.9000000,0.0000000,0.0000000,0.0000000); //object(vgsfrates08) (1)
CreateObject(8076,3673.0000000,1985.4000000,108.9000000,0.0000000,0.0000000,90.0000000); //object(vgsfrates05) (3)
CreateObject(8558,3655.8999000,1989.7000000,98.9000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (6)
CreateObject(8558,3656.3000000,1993.7000000,98.9000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (7)
CreateObject(8558,3659.0000000,1998.2000000,94.6000000,0.0000000,13.0000000,2.0000000); //object(vgshseing28) (8)
CreateObject(8558,3659.1001000,2002.0000000,94.6000000,0.0000000,12.9970000,2.0000000); //object(vgshseing28) (9)
CreateObject(3566,3671.7000000,1997.5000000,91.5000000,0.0000000,0.0000000,0.0000000); //object(lasntrk1) (1)
CreateObject(3566,3668.5000000,1997.2000000,91.5000000,0.0000000,0.0000000,0.0000000); //object(lasntrk1) (2)
CreateObject(3566,3665.5000000,1996.7000000,91.5000000,0.0000000,0.0000000,0.0000000); //object(lasntrk1) (3)
CreateObject(3566,3663.3000000,1996.5000000,91.5000000,0.0000000,0.0000000,0.0000000); //object(lasntrk1) (4)
CreateObject(3566,3660.3000000,1996.2000000,91.5000000,0.0000000,0.0000000,0.0000000); //object(lasntrk1) (5)
CreateObject(10412,3420.8000000,1982.8000000,131.0000000,0.0000000,0.0000000,36.0000000); //object(poshotel1_sfs) (1)
CreateObject(2932,3639.6001000,1966.0000000,106.3000000,0.0000000,0.0000000,92.0000000); //object(kmb_container_blue) (1)
CreateObject(2932,3676.0000000,2009.8000000,106.3000000,0.0000000,0.0000000,92.0000000); //object(kmb_container_blue) (2)
CreateObject(8397,3549.5000000,1994.7998000,104.6000000,0.0000000,29.9930000,91.9940000); //object(luxorpillar01_lvs) (3)
CreateObject(8397,3541.5000000,1994.6000000,104.6000000,0.0000000,29.9930000,91.9940000); //object(luxorpillar01_lvs) (4)
CreateObject(8397,3533.5000000,1994.4000000,104.6000000,0.0000000,29.9930000,91.9940000); //object(luxorpillar01_lvs) (5)
CreateObject(8397,3525.8000000,1994.2000000,104.6000000,0.0000000,29.9930000,91.9940000); //object(luxorpillar01_lvs) (6)
CreateObject(8397,3517.8000000,1994.0000000,104.6000000,0.0000000,29.9930000,91.9940000); //object(luxorpillar01_lvs) (7)
CreateObject(8397,3518.3000000,1973.3000000,104.6000000,0.0000000,29.9930000,271.9940000); //object(luxorpillar01_lvs) (8)
CreateObject(8397,3526.6001000,1973.5000000,104.6000000,0.0000000,29.9870000,271.9890000); //object(luxorpillar01_lvs) (9)
CreateObject(8397,3535.1001000,1974.0000000,104.6000000,0.0000000,29.9870000,271.9890000); //object(luxorpillar01_lvs) (10)
CreateObject(8397,3543.1001000,1974.4000000,104.6000000,0.0000000,29.9870000,271.9890000); //object(luxorpillar01_lvs) (11)
CreateObject(8397,3551.6001000,1974.9000000,104.6000000,0.0000000,29.9870000,271.9890000); //object(luxorpillar01_lvs) (12)
CreateObject(3515,3518.3999000,1993.6000000,113.4000000,0.0000000,54.0000000,270.0000000); //object(vgsfountain) (1)
CreateObject(3515,3525.8999000,1993.7000000,113.4000000,0.0000000,53.9980000,270.0000000); //object(vgsfountain) (2)
CreateObject(3515,3533.7000000,1994.1000000,113.4000000,0.0000000,53.9980000,270.0000000); //object(vgsfountain) (3)
CreateObject(3515,3541.5000000,1994.2000000,113.4000000,0.0000000,53.9980000,270.0000000); //object(vgsfountain) (4)
CreateObject(3515,3549.8000000,1994.6000000,113.4000000,0.0000000,53.9980000,270.0000000); //object(vgsfountain) (5)
CreateObject(3515,3551.8000000,1974.4000000,113.4000000,0.0000000,53.9980000,92.0000000); //object(vgsfountain) (6)
CreateObject(3515,3543.1001000,1974.5000000,113.4000000,0.0000000,53.9980000,92.0000000); //object(vgsfountain) (7)
CreateObject(3515,3534.8000000,1973.7000000,113.4000000,0.0000000,53.9980000,92.0000000); //object(vgsfountain) (8)
CreateObject(3515,3526.3999000,1973.4000000,113.4000000,0.0000000,53.9980000,92.0000000); //object(vgsfountain) (9)
CreateObject(3515,3518.2000000,1972.8000000,113.4000000,0.0000000,53.9980000,92.0000000); //object(vgsfountain) (10)
CreateObject(11470,3535.3000000,1984.8000000,139.8999900,0.0000000,182.0000000,90.0000000); //object(des_bigbull) (1)
CreateObject(7419,3738.2000000,1998.7000000,98.5000000,0.0000000,0.0000000,0.0000000); //object(mallcarpark_vgn01) (1)
CreateObject(1696,3695.1001000,1984.7000000,118.9000000,0.0000000,0.0000000,90.0000000); //object(roofstuff15) (1)
CreateObject(974,3733.1001000,1973.9000000,110.8000000,0.0000000,0.0000000,0.0000000); //object(tall_fence) (1)
CreateObject(976,3698.7000000,2030.6000000,104.9000000,0.0000000,0.0000000,226.0000000); //object(phils_compnd_gate) (1)
CreateObject(976,3704.6001000,2036.7000000,104.9000000,0.0000000,0.0000000,226.0000000); //object(phils_compnd_gate) (2)
CreateObject(976,3692.5000000,1954.1000000,104.9000000,0.0000000,0.0000000,310.0000000); //object(phils_compnd_gate) (3)
CreateObject(976,3695.3999000,1950.5000000,104.9000000,0.0000000,0.0000000,309.9960000); //object(phils_compnd_gate) (4)
CreateObject(3941,3689.7000000,1941.8000000,108.0000000,0.0000000,0.0000000,176.0000000); //object(comms02) (1)
CreateObject(6298,3552.3000000,1985.4000000,143.2000000,0.0000000,182.0000000,90.0000000); //object(ferris01_law2) (1)
CreateObject(3887,3638.7002000,1925.0000000,112.7000000,0.0000000,0.0000000,0.0000000); //object(demolish4_sfxrf) (1)
CreateObject(3866,3655.7998000,1902.9004000,111.7000000,0.0000000,2.0000000,158.0000000); //object(demolish1_sfxrf) (1)
CreateObject(1684,3648.5000000,1906.0000000,106.5000000,0.0000000,0.0000000,142.0000000); //object(portakabin) (1)
CreateObject(3873,3602.7998000,1984.0000000,122.2000000,0.0000000,0.0000000,0.0000000); //object(silicon04_sfs) (1)
CreateObject(3558,3672.8000000,1892.6000000,107.8000000,0.0000000,0.0000000,246.0000000); //object(compmedhos5_lae) (1)
CreateObject(9076,3406.3000000,1981.3000000,163.8999900,0.0000000,0.0000000,188.0000000); //object(sphinx01_lvs) (1)
CreateObject(8558,3630.3000000,1876.8000000,98.9000000,0.0000000,12.9970000,248.0000000); //object(vgshseing28) (10)
CreateObject(8558,3626.3000000,1878.3000000,98.9000000,0.0000000,12.9970000,247.9940000); //object(vgshseing28) (11)
CreateObject(1225,3642.5107000,1908.6488000,111.3738600,0.0000000,0.0000000,0.0000000); //object(barrel4) (1)
CreateObject(16146,3683.8000000,1922.6000000,108.0000000,0.0000000,0.0000000,326.0000000); //object(des_ufoinn) (1)
CreateObject(1225,3664.2000000,1908.6000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (11)
CreateObject(1225,3667.3000000,1907.0000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (12)
CreateObject(1225,3667.5000000,1904.0000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (13)
CreateObject(1225,3663.1001000,1906.5000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (14)
CreateObject(1225,3660.3999000,1905.8000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (15)
CreateObject(1225,3663.7000000,1904.5000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (16)
CreateObject(1225,3661.3999000,1909.6000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (17)
CreateObject(3558,3678.0000000,1908.0996000,107.8000000,0.0000000,0.0000000,245.9950000); //object(compmedhos5_lae) (2)
CreateObject(8558,3619.3999000,1861.5000000,98.9000000,0.0000000,0.9970000,247.9940000); //object(vgshseing28) (12)
CreateObject(8558,3623.8999000,1860.1000000,98.9000000,0.0000000,0.9940000,247.9940000); //object(vgshseing28) (13)
CreateObject(8558,3628.7000000,1858.6000000,98.9000000,0.0000000,0.9940000,249.9940000); //object(vgshseing28) (14)
CreateObject(8558,3625.3999000,1859.6000000,98.9000000,0.0000000,0.9890000,249.9940000); //object(vgshseing28) (15)
CreateObject(8558,3615.8999000,1863.5000000,98.9000000,0.0000000,0.9890000,249.9940000); //object(vgshseing28) (16)
CreateObject(8558,3612.1001000,1864.7000000,98.9000000,0.0000000,0.9890000,249.9940000); //object(vgshseing28) (17)
CreateObject(8558,3632.5000000,1856.9000000,98.9000000,0.0000000,0.9890000,249.9940000); //object(vgshseing28) (18)
CreateObject(14467,3619.3000000,1855.8000000,103.1000000,0.0000000,0.0000000,150.0000000); //object(carter_statue) (1)
CreateObject(621,3618.2000000,1881.6000000,100.7000000,0.0000000,0.0000000,0.0000000); //object(veg_palm02) (1)
CreateObject(621,3639.2000000,1872.9000000,100.7000000,0.0000000,0.0000000,0.0000000); //object(veg_palm02) (2)
CreateObject(621,3627.2000000,1840.0000000,100.7000000,0.0000000,0.0000000,0.0000000); //object(veg_palm02) (3)
CreateObject(621,3605.5000000,1847.8000000,100.7000000,0.0000000,0.0000000,0.0000000); //object(veg_palm02) (4)
CreateObject(3437,3601.3999000,1963.5000000,119.9000000,0.0000000,92.0000000,86.0000000); //object(ballypllr01_lvs) (1)
CreateObject(3437,3605.3000000,2004.8000000,119.9000000,0.0000000,92.0000000,85.9950000); //object(ballypllr01_lvs) (2)
CreateObject(8558,3433.5000000,2000.5000000,91.6000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (19)
CreateObject(8558,3433.0000000,2005.3000000,91.6000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (20)
CreateObject(8558,3430.5000000,2009.6000000,91.6000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (21)
CreateObject(8558,3396.6001000,2004.0000000,91.6000000,0.0000000,0.0000000,2.0000000); //object(vgshseing28) (22)
CreateObject(8558,3378.3999000,2006.1000000,91.6000000,0.0000000,330.0000000,94.0000000); //object(vgshseing28) (23)
CreateObject(8558,3377.1001000,2026.8000000,103.6000000,0.0000000,329.9960000,93.9990000); //object(vgshseing28) (24)
CreateObject(8558,3376.1001000,2044.3000000,113.6000000,0.0000000,329.9960000,93.9990000); //object(vgshseing28) (25)
CreateObject(8558,3373.5000000,2078.5000000,133.6000100,0.0000000,329.9960000,93.9990000); //object(vgshseing28) (26)
CreateObject(8558,3389.3999000,2098.8999000,143.5000000,0.0000000,0.0000000,3.9990000); //object(vgshseing28) (27)
CreateObject(8558,3406.7000000,2082.2000000,143.5000000,0.0000000,0.0000000,269.9940000); //object(vgshseing28) (28)
CreateObject(8558,3404.7000000,2043.0000000,143.5000000,0.0000000,0.0000000,263.9890000); //object(vgshseing28) (29)
CreateObject(1225,3635.0000000,1908.8000000,105.3000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (1)
CreateObject(1225,3643.5127000,1909.0830000,110.9205200,0.0000000,0.0000000,0.0000000); //object(barrel4) (1)
CreateObject(13667,3603.7002000,1983.5000000,155.3999900,0.0000000,0.0000000,0.0000000); //object(monkeyman) (1)
CreateObject(3574,3621.6001000,1943.5000000,107.6000000,0.0000000,0.0000000,0.0000000); //object(lasdkrtgrp2) (1)
CreateObject(13607,3481.5000000,1908.0000000,108.4000000,0.0000000,0.0000000,0.0000000); //object(ringwalls) (1)
CreateObject(13667,3600.8000000,1983.5000000,155.3999900,0.0000000,0.0000000,180.0000000); //object(monkeyman) (1)

/*
Objects converted: 108
Vehicles converted: 0
Vehicle models found: 0
----------------------
In the time this conversion took to finish a hummingbird could have flapped it's wings 3.95 times!
*/

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

// Begin other required functions.

public OnPlayerRequestClass(playerid, classid)
{
    
    SetPlayerPos(playerid,3584.6000976563,1986.4000244141,138.80000305176);
    SetPlayerCameraPos(playerid,3584.6000976563,1986.4000244141,148.80000305176);
    SetPlayerCameraLookAt(playerid,3511.1000976563,1983.9000244141,105.30000305176);
    SendClientMessage(playerid,COLOR_GREY,"Press Shift to play"); // Because people are stupid if we don't add this line.
    
    return 1;
}

// Some extra functions to help you do things in line with the core.
// The below is called at the same time though, so you can add code here as desired - such as resetting map vars, or displaying extra welcome message.
// If you use any of the 'Ex' features, you should removed the #pragma unused section.
stock OnPlayerConEx(playerid)
{
    SendClientMessage(playerid,COLOR_AQUA,MAPMAKER);
    SendClientMessage(playerid,COLOR_AQUA," "); // blank line for effect.
    
    return 1;
}

// Called when a player has DIED.
stock OnPlayerDeathEx(playerid,killerid,reason)
{
    #pragma unused playerid,killerid,reason
    return 1;
}

// Called when someone is eliminated, reasons are 1 (fell off), 2 (fell off bike/quad), 3 (died), 4 (exited car), 6 (failed to keep moving) (5 is not valid)
stock OnPlayerElimination(playerid,reason,killer)
{
    #pragma unused playerid,reason,killer
    return 1;
}

// Called when someone leaves the game, reasons are 0 (Timed Out), 1 (Player Quit), 2 (Kicked or Banned)
stock OnPlayerDisconnectEx(playerid,reason)
{
    #pragma unused playerid,reason
    return 1;
}

// Called whenever the player & server share data, this is up to 6 or 7 times a second. Used for highly accurate stuff.
// Returning 0 in this function will not sync the player, do not put inefficient code here, you'll lag the server.
stock OnPlayerUpdateEx(playerid)
{
    #pragma unused playerid
    return 1;
}

// Called when someone wins the map. Playerid is the player won, and was_overtime is a bool (true of fale) depicting if overtime was active or not.
// useful for achievements and HCPs
stock OnPlayerWinGame(playerid,bool:was_overtime)
{
    #pragma unused playerid,was_overtime
    return 1;
}

// The main spawning. The below is called upon spawning for players.
public OnPlayerSpawn(playerid)
{
    
    SetPlayerPos(playerid,3584.6000976563,1986.4000244141,138.80000305176);
    // 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.
    ////GetRandomSkin(playerid); // Get a new random skin for the player
    new veid = random(sizeof(vehiclearray)); // Get random vehicle from the allowed array you specified in loadout.

    DynamicallySpawnPlayer(playerid,vehiclearray[veid][vehid]);
    SpawnedFunction(playerid); // Let sumo core take control again, we're done with them here.
    return 1;

}
// Setup your dynamic spawns, this puts them into the SumoCore memory to use randomly for later spawns.
SetupDynamicSpawns(){
    //Add the below into 'OnGameModeInit' - anywhere in there is good
SetupDynamicSpawns();

// add the below into OnPlayerSpawn, where your old spawning code was, this triggers the new spawn sys
DynamicallySpawnPlayer(playerid,vehiclearray[veid][vehid]);

//Add the below to the BOTTOM of your script, directly before the End Of File notice outside of any brackets, remember to delete all the old vehicle stuff (all the if(playerid ==) stuff) at OnPlayerSpawn

SetupDynamicSpawns(){
// DATE: August 19, 2014 || TIME: 13:29:02 AddDynamicSpawn(3473.359375, 1940.650390, 110.400001, 194.00000);
AddDynamicSpawn(3465.702392, 1937.711181, 110.400001, 208.00000);
AddDynamicSpawn(3458.983642, 1933.006835, 110.400001, 222.00000);
AddDynamicSpawn(3453.602783, 1926.816894, 110.400001, 236.00000);
AddDynamicSpawn(3449.879394, 1919.509033, 110.400001, 250.00000);
AddDynamicSpawn(3448.034423, 1911.517333, 110.400001, 264.00000);
AddDynamicSpawn(3448.177490, 1903.316772, 110.400001, 278.00000);
AddDynamicSpawn(3450.300292, 1895.394531, 110.400001, 292.00000);
AddDynamicSpawn(3454.276611, 1888.221069, 110.400001, 306.00000);
AddDynamicSpawn(3459.870117, 1882.222656, 110.400001, 320.00000);
AddDynamicSpawn(3466.748779, 1877.755615, 110.400001, 334.00000);
AddDynamicSpawn(3474.503662, 1875.085327, 110.400001, 348.00000);
AddDynamicSpawn(3482.674316, 1874.370483, 110.400001, 362.00000);
AddDynamicSpawn(3490.775146, 1875.653564, 110.400001, 376.00000);
AddDynamicSpawn(3498.324951, 1878.858276, 110.400001, 390.00000);
AddDynamicSpawn(3504.875244, 1883.794189, 110.400001, 404.00000);
AddDynamicSpawn(3510.036865, 1890.168212, 110.400001, 418.00000);
AddDynamicSpawn(3513.503173, 1897.601562, 110.400001, 432.00000);
AddDynamicSpawn(3515.068115, 1905.652709, 110.400001, 446.00000);
AddDynamicSpawn(3514.638671, 1913.843261, 110.400001, 460.00000);
AddDynamicSpawn(3512.240722, 1921.686645, 110.400001, 474.00000);
AddDynamicSpawn(3508.016601, 1928.717041, 110.400001, 488.00000);
AddDynamicSpawn(3502.217041, 1934.516601, 110.400001, 502.00000);
AddDynamicSpawn(3495.186767, 1938.740844, 110.400001, 516.00000);
AddDynamicSpawn(3487.343261, 1941.138793, 110.400001, 530.00000);
AddDynamicSpawn(3459.759765, 2018.650390, 110.400001, 194.00000);
AddDynamicSpawn(3452.102783, 2015.711181, 110.400001, 208.00000);
AddDynamicSpawn(3445.384033, 2011.006835, 110.400001, 222.00000);
AddDynamicSpawn(3440.003173, 2004.816894, 110.400001, 236.00000);
AddDynamicSpawn(3436.279785, 1997.509033, 110.400001, 250.00000);
AddDynamicSpawn(3434.434814, 1989.517333, 110.400001, 264.00000);
AddDynamicSpawn(3434.577880, 1981.316772, 110.400001, 278.00000);
AddDynamicSpawn(3436.700683, 1973.394531, 110.400001, 292.00000);
AddDynamicSpawn(3440.677001, 1966.221069, 110.400001, 306.00000);
AddDynamicSpawn(3446.270507, 1960.222656, 110.400001, 320.00000);
AddDynamicSpawn(3453.149169, 1955.755615, 110.400001, 334.00000);
AddDynamicSpawn(3460.904052, 1953.085327, 110.400001, 348.00000);
AddDynamicSpawn(3469.074707, 1952.370483, 110.400001, 362.00000);
AddDynamicSpawn(3477.175537, 1953.653564, 110.400001, 376.00000);
AddDynamicSpawn(3484.725341, 1956.858276, 110.400001, 390.00000);
AddDynamicSpawn(3491.275634, 1961.794189, 110.400001, 404.00000);
AddDynamicSpawn(3496.437255, 1968.168212, 110.400001, 418.00000);
AddDynamicSpawn(3499.903564, 1975.601562, 110.400001, 432.00000);
AddDynamicSpawn(3501.468505, 1983.652709, 110.400001, 446.00000);
AddDynamicSpawn(3501.039062, 1991.843261, 110.400001, 460.00000);
AddDynamicSpawn(3498.641113, 1999.686645, 110.400001, 474.00000);
AddDynamicSpawn(3494.416992, 2006.717041, 110.400001, 488.00000);
AddDynamicSpawn(3488.617431, 2012.516601, 110.400001, 502.00000);
AddDynamicSpawn(3481.587158, 2016.740844, 110.400001, 516.00000);
AddDynamicSpawn(3473.743652, 2019.138793, 110.400001, 530.00000);
}



// End of file.
Reply
#59
No. It all goes tits up after // Setup your dynamic spawns, this puts them into the SumoCore memory to use randomly for later spawns.

You copy pasted the entire output of convert.php, instead of reading what it said in the box. You also had Random Spawns ticked, even though you weren't using random spawns to start with, and had to convert them.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#60
Sad 
I am getting these warning...

C:\Users\sahu\Desktop\SAMP\Server\gamemodes\FirstTry.pwn(200) : warning 203: symbol is never used: "AccountInfo"
C:\Users\sahu\Desktop\SAMP\Server\gamemodes\FirstTry.pwn(37) : warning 204: symbol is assigned a value that is never used: "REPAIR_X"
C:\Users\sahu\Desktop\SAMP\Server\gamemodes\FirstTry.pwn(37 -- 200) : warning 203: symbol is never used: "UserVehicle"

When i am below z-falloff level i am not eliminated...when i press enter my car goes on ring but i am on ground..and the time is also not working..I have set the win time on 400 but after 500 sec also nothing is happening.. i really like your tutorial but don't know how to solve these..please help..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)