Public feed
#598615
#include <a_samp>
new gPlayerClass[MAX_PLAYERS];
enum PlayerSpawnInfo {
modelid,
Float:x,
Float:y,
Float:z,
Float:angle,
interiorid,
name
};
new gSpawns[][PlayerSpawnInfo] =
{
{ 21, 1404.604248, -806.659545, 85.035697, 183.646392, 0, "Vinewood Sign" },
{ 33, 815.614135, -1103.054199, 25.790115, 271.166259, 0, "LS Church" },
{ 44, 478.277313, -1499.273071, 20.481977, 267.054718, 0, "Rodeo Drive" },
{ 98, 519.385742, -1813.862304, 6.578125, 177.877502, 0, "Santa Maria Beach" },
{ 138, 384.682312, -2074.724365, 7.835937, 180.633331, 0, "LS Carneval" },
{ 140, 836.994262, -2051.738525, 12.867187, 178.874023, 0, "Verona Beach" },
{ 195, 1128.236816, -1426.739013, 22.768623, 181.352279, 0, "Market" },
{ 293, 1544.599731, -1372.771850, 329.565185, 359.820892, 0, "LS Tower" },
{ 280, 230.324127, 74.091468, 1005.039062, 270.376403, 6, "LSPD" },
{ 294, 1682.579101, -2240.712646, 13.546875, 179.935256, 0, "LS Airport" },
{ 287, 2778.520751, -2456.092285, 13.635927, 89.530944, 0, "LS Armybase" },
{ 0, 2495.999023, -1709.281982, 1014.742187, 1.489299, 3, "CJs House" },
{ 107, 2519.525146, -1678.190795, 14.755790, 56.720695, 0, "Sweets House" },
{ 105, 2459.478759, -1689.993286, 13.544223, 356.530242, 0, "Ryders House" },
{ 106, 2489.524902, -1645.871582, 14.070312, 118.106788, 0, "OG Logs House" },
{ 104, 1980.767333, -1221.897216, 20.023437, 1.370959, 0, "Glen Park" },
{ 103, 1976.166503, -1223.084472, 20.023437, 9.719410, 0, "Glen Park" },
{ 102, 1968.982299, -1224.033203, 20.023437, 4.562980, 0, "Glen Park" },
{ 108, 2558.094482, -1211.427246, 54.531250, 89.513259, 0, "Los Flores" },
{ 109, 2558.094482, -1211.427246, 54.531250, 89.513259, 0, "Los Flores" },
{ 110, 2558.094482, -1211.427246, 54.531250, 89.513259, 0, "Los Flores" },
{ 18, 2104.949707, -102.453254, 2.131499, 126.008514, 0, "Palomino Creek Beach" },
{ 299, 695.355468, -498.542449, 16.335937, 0.797155, 0, "Dillimore" },
{ 155, 376.634979, -117.078361, 1001.492187, 183.844818, 5, "Pizzashop Blueberry" },
{ 298, 877.435729, -25.968255, 63.195312, 154.862670, 0, "Catalinas House" },
{ 239, -563.270874, -178.957321, 78.406250, 180.811538, 0, "Forest Depot" },
{ 67, -85.035736, -1171.814331, 2.254194, 66.564689, 0, "Badlands Petrol Station" },
{ 35, -738.950988, -1990.864501, 9.713872, 93.294319, 0, "Dirty Lake" },
{ 198, -1058.803588, -1205.568481, 129.218750, 274.556518, 0, "The Farm" },
{ 1, -1081.787475, -1607.812744, 76.367187, 183.288085, 0, "The Truth Farm" },
{ 26, -2409.592529, -2189.166748, 34.039062, 0.492092, 0, "Chilliad Down" },
{ 223, -2236.727539, -1747.066162, 480.872161, 36.321491, 0, "Chilliad Up" },
{ 98,-2377.817871,-579.725402,132.117187,124.668487, 0, "Missionary Hill" },
{ 258,-2720.882324,-317.303497,7.843750,41.025329, 0, "Golf Club SF" },
{ 61,-1362.190429,-247.282806,14.143965,315.981018, 0, "Airport SF" },
{ 50,-2035.406250,174.913711,28.835937,262.144775, 0, "CJ Garage SF" },
{ 287,-1387.016723,498.638885,21.250000,44.491466, 0, "SF Armybase" },
{ 281,-1616.119750,685.204711,7.187500,180.650680, 0, "SFPD" },
{ 56,-1957.489379,883.430175,42.109680,270.180358, 0, "SF Statue Financial" },
{ 21,-2686.028320,202.990554,4.335937,1.330852, 0, "SF Tuning" },
{ 56,-1696.511962,1361.667602,9.804687,273.112792, 0, "Pier 69" },
{ 249,-2675.452392,1419.166748,906.460937,269.394165, 3, "Pleasure Dome 1" },
{ 296,-2675.408691,1401.405517,906.460937,267.920867, 3, "Pleasure Dome 2" },
{ 233,-2488.158203,2365.282470,10.268322,201.684967, 0, "Bayside Marina" },
{ 170,-1472.640991,2620.452636,58.781250,180.221282, 0, "El Quebrados" },
{ 73,-1294.603637,2525.744384,90.382812,132.648696, 0, "Ghosttown" },
{ 11,-259.371368,2583.959960,63.570312,172.713699, 0, "Las Payasdas" },
{ 34,-730.963439,1525.722412,39.227214,95.994003, 0, "Las Barrancas" },
{ 93,-687.870178,937.785095,13.632812,181.150680, 0, "Desert Villa" },
{ 182,-144.054321,1222.334838,19.899219,176.837310, 0, "Fort Carson" },
{ 70,-361.846557,1586.200805,76.570770,132.464920, 0, "The Big Ear" },
{ 287,293.413879,1908.420776,17.640625,271.930358, 0, "Army Base" },
{ 16,824.345886,857.475585,12.093680,194.949630, 0, "Hunter Quarry" },
{ 83,1957.870361,1018.067016,992.468750,269.524902, 10, "Dragon Casino" },
{ 46,1703.684570,1616.168945,10.300539,112.591941, 0, "Airport LV" },
{ 178,-113.572067,-11.760893,1000.718750,269.148681, 3, "Sex Shop LV" },
{ 282,242.202407,155.808883,1003.029968,92.570198, 3, "LVPD" },
{ 179,2493.726806,2773.314941,10.809680,91.823936, 0, "KACC Military" },
{ 259,1418.887817,2774.154052,14.813474,88.859863, 0, "Golf Club LV" }
};
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
for(new i=0; i<sizeof(gSpawns); i++)
{
AddPlayerClass(gSpawns[i][modelid], gSpawns[i][x], gSpawns[i][y], gSpawns[i][z], gSpawns[i][angle], 0, 0, 0, 0, 0, 0);
}
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
GameTextForPlayer(playerid, gSpawns[classid][name], 2000, 3);
gPlayerClass[playerid] = classid;
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid, gSpawns[gPlayerClass[playerid]][interiorid]);
return 1;
}
the error:
C:\samp-server-0.2.1-win32\gamemodes\fun.pwn(15) : warning 228: length of initialler exceeds size of the enum field
C:\samp-server-0.2.1-win32\gamemodes\fun.pwn(15) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.