http://kepfeltoltes.hu/view/160424/sa-mp-014_www.kepfeltoltes.hu_.png Miért tűnik el?:=(
Sorok!
//----------------------------------------------------------
//
// GRAND LARCENY 1.0
// A freeroam gamemode for SA-MP 0.3
//
//----------------------------------------------------------
#include <a_samp>
#include <core>
#include <float>
#include \"../include/gl_common.inc\"
#include \"../include/gl_spawns.inc\"
#pragma tabsize 0
//----------------------------------------------------------
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777
#define CITY_LOS_SANTOS 0
#define CITY_SAN_FIERRO 1
#define CITY_LAS_VENTURAS 2
new total_vehicles_from_files=0;
// Class selection globals
new gPlayerCitySelection[MAX_PLAYERS];
new gPlayerHasCitySelected[MAX_PLAYERS];
new gPlayerLastCitySelectionTick[MAX_PLAYERS];
new Text:txtClassSelHelper;
new Text:txtLosSantos;
new Text:txtSanFierro;
new Text:txtLasVenturas;
//new thisanimid=0;
//new lastanimid=0;
//----------------------------------------------------------
main()
{
print(\"\\n---------------------------------------\");
print(\"Running Grand Larceny - by the SA-MP team\\n\");
print(\"---------------------------------------\\n\");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~Grand Larceny\",3000,4);
SendClientMessage(playerid,COLOR_WHITE,\"Welcome to {88AA88}G{FFFFFF}rand {88AA88}L{FFFFFF}arceny\");
// class selection init vars
gPlayerCitySelection[playerid] = -1;
gPlayerHasCitySelected[playerid] = 0;
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);
/*
Removes vending machines
RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
*/
/*
new ClientVersion[32];
GetPlayerVersion(playerid, ClientVersion, 32);
printf(\"Player %d reports client version: %s\", playerid, ClientVersion);*/
return 1;
}
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,1970.9177,-1572.7344,13.6068);
return 1;
}
//----------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
// if they ever return to class selection make them city
// select again first
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID) {
ResetPlayerMoney(playerid);
} else {
playercash = GetPlayerMoney(playerid);
if(playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
}
return 1;
}
//----------------------------------------------------------
ClassSel_SetupCharSelection(playerid)
{
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516);
SetPlayerFacingAngle(playerid,181.0);
SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,349.0453,193.2271,1014.1797);
SetPlayerFacingAngle(playerid,286.25);
SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875);
SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797);
}
}
//----------------------------------------------------------
// Used to init textdraws of city names
ClassSel_InitCityNameText(Text:txtInit)
{
TextDrawUseBox(txtInit, 0);
TextDrawLetterSize(txtInit,1.25,3.0);
TextDrawFont(txtInit, 0);
TextDrawSetShadow(txtInit,0);
TextDrawSetOutline(txtInit,1);
TextDrawColor(txtInit,0xEEEEEEFF);
TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
}
//----------------------------------------------------------
ClassSel_InitTextDraws()
{
// Init our observer helper text display
txtLosSantos = TextDrawCreate(10.0, 380.0, \"Los Santos\");
ClassSel_InitCityNameText(txtLosSantos);
txtSanFierro = TextDrawCreate(10.0, 380.0, \"San Fierro\");
ClassSel_InitCityNameText(txtSanFierro);
txtLasVenturas = TextDrawCreate(10.0, 380.0, \"Las Venturas\");
ClassSel_InitCityNameText(txtLasVenturas);
// Init our observer helper text display
txtClassSelHelper = TextDrawCreate(10.0, 415.0,
\" Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select.\");
TextDrawUseBox(txtClassSelHelper, 1);
TextDrawBoxColor(txtClassSelHelper,0x222222BB);
TextDrawLetterSize(txtClassSelHelper,0.3,1.0);
TextDrawTextSize(txtClassSelHelper,400.0,40.0);
TextDrawFont(txtClassSelHelper, 2);
TextDrawSetShadow(txtClassSelHelper,0);
TextDrawSetOutline(txtClassSelHelper,1);
TextDrawBackgroundColor(txtClassSelHelper,0x000000FF);
TextDrawColor(txtClassSelHelper,0xFFFFFFFF);
}
//----------------------------------------------------------
ClassSel_SetupSelectedCity(playerid)
{
if(gPlayerCitySelection[playerid] == -1) {
gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,1630.6136,-2286.0298,110.0);
SetPlayerCameraLookAt(playerid,1887.6034,-1682.1442,47.6167);
TextDrawShowForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,-1300.8754,68.0546,129.4823);
SetPlayerCameraLookAt(playerid,-1817.9412,769.3878,132.6589);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawShowForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
}
else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) {
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,1310.6155,1675.9182,110.7390);
SetPlayerCameraLookAt(playerid,2285.2944,1919.3756,68.2275);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawShowForPlayer(playerid,txtLasVenturas);
}
}
//----------------------------------------------------------
ClassSel_SwitchToNextCity(playerid)
{
gPlayerCitySelection[playerid]++;
if(gPlayerCitySelection[playerid] > CITY_LAS_VENTURAS) {
gPlayerCitySelection[playerid] = CITY_LOS_SANTOS;
}
PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_SwitchToPreviousCity(playerid)
{
gPlayerCitySelection[playerid]--;
if(gPlayerCitySelection[playerid] < CITY_LOS_SANTOS) {
gPlayerCitySelection[playerid] = CITY_LAS_VENTURAS;
}
PlayerPlaySound(playerid,1053,0.0,0.0,0.0);
gPlayerLastCitySelectionTick[playerid] = GetTickCount();
ClassSel_SetupSelectedCity(playerid);
}
//----------------------------------------------------------
ClassSel_HandleCitySelection(playerid)
{
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr);
if(gPlayerCitySelection[playerid] == -1) {
ClassSel_SwitchToNextCity(playerid);
return;
}
// only allow new selection every ~500 ms
if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
if(Keys & KEY_FIRE) {
gPlayerHasCitySelected[playerid] = 1;
TextDrawHideForPlayer(playerid,txtClassSelHelper);
TextDrawHideForPlayer(playerid,txtLosSantos);
TextDrawHideForPlayer(playerid,txtSanFierro);
TextDrawHideForPlayer(playerid,txtLasVenturas);
TogglePlayerSpectating(playerid,0);
return;
}
if(lr > 0) {
ClassSel_SwitchToNextCity(playerid);
}
else if(lr < 0) {
ClassSel_SwitchToPreviousCity(playerid);
}
}
//----------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if(gPlayerHasCitySelected[playerid]) {
ClassSel_SetupCharSelection(playerid);
return 1;
} else {
if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
TogglePlayerSpectating(playerid,1);
TextDrawShowForPlayer(playerid, txtClassSelHelper);
gPlayerCitySelection[playerid] = -1;
}
}
return 0;
}
//----------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText(\"Grand Larceny\");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
Create3DTextLabel(\"<>Amerikai kiképzőtábor<>\",0x00ff15AA, 2462.3394,-1658.8600,13.3047,268.9570,0,0);
Create3DTextLabel(\"<>Német kiképzőtábor<>\",0x00ff15AA, 1958.9811,-2588.4109,13.5469,182.5799,0,0);
//SetObjectsDefaultCameraCol(true);
//UsePlayerPedAnims();
//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
ClassSel_InitTextDraws();
// Player Class
AddPlayerClass(298,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(299,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(300,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(301,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(302,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(303,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(304,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(305,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(280,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/trains.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/pilots.txt\");
// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_law.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_airport.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/lv_gen.txt\");
// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_law.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_airport.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/sf_gen.txt\");
// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_law.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_airport.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_inner.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/ls_gen_outer.txt\");
// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/whetstone.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/bone.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/flint.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/tierra.txt\");
total_vehicles_from_files += LoadStaticVehiclesFromFile(\"vehicles/red_county.txt\");
printf(\"Total vehicles from files: %d\",total_vehicles_from_files);
//------------------------[Mapok]-------------------------------------------------------------//
CreateObject(2985, 2464.8999, -1664.8, 12.5, 0, 0, 182);
CreateObject(2985, 2457.7, -1655.1, 14.9, 0, 0, 182);
CreateObject(16770, 2475.6001, -1680.2, 13.9, 0, 0, 0);
CreateObject(2064, 2483.2, -1689, 13.1, 0, 0, 0);
CreateObject(2064, 2474.2, -1660.1, 13, 0, 0, 264);
CreateObject(2060, 2473.1001, -1660, 12.5, 0, 0, 90);
CreateObject(2060, 2473.1001, -1661, 12.5, 0, 0, 90);
CreateObject(2060, 2473.1001, -1661.9, 12.5, 0, 0, 90);
CreateObject(2060, 2473.1001, -1661.9, 12.8, 0, 0, 90);
CreateObject(2060, 2473.1001, -1661.9, 13.1, 0, 0, 90);
CreateObject(2060, 2473, -1661, 12.8, 0, 0, 90);
CreateObject(2060, 2473, -1660.9, 13.1, 0, 0, 90);
CreateObject(2060, 2473.1001, -1658.9, 12.5, 0, 0, 90);
CreateObject(2060, 2473.1001, -1658.8, 12.8, 0, 0, 90);
CreateObject(2060, 2473.2, -1658.8, 13.1, 0, 0, 90);
CreateObject(2060, 2473.2, -1659.9, 12.8, 0, 0, 90);
CreateObject(2060, 2473.2, -1659.1, 13.4, 0, 0, 90);
CreateObject(2060, 2473, -1660.8, 13.4, 0, 0, 90);
CreateObject(2060, 2473.2, -1659.1, 13.7, 0, 0, 90);
CreateObject(2060, 2472.8999, -1660.6, 13.7, 0, 0, 90);
CreateObject(2060, 2473, -1661.9, 13.4, 0, 0, 90);
CreateObject(2060, 2473.1001, -1662.9, 12.5, 0, 0, 90);
CreateObject(2060, 2473.1001, -1663, 12.8, 0, 0, 90);
CreateObject(2060, 2473.1001, -1663.8, 12.5, 0, 0, 90);
CreateObject(2060, 2473, -1663, 13.1, 0, 0, 90);
CreateObject(2060, 2472.8, -1664, 12.8, 0, 0, 90);
CreateObject(2060, 2472.8, -1664.5, 12.5, 0, 0, 90);
CreateObject(2060, 2473, -1658, 12.5, 0, 0, 90);
CreateObject(2060, 2473.3, -1657.1, 12.5, 0, 0, 90);
CreateObject(2060, 2472.8999, -1657, 12.5, 0, 0, 90);
CreateObject(2060, 2472.6001, -1656.6, 12.7, 0, 0, 90);
CreateObject(2060, 2472.8999, -1657.4, 12.8, 0, 0, 90);
CreateObject(2060, 2472.6001, -1657.8, 13.1, 0, 0, 90);
CreateObject(2060, 2472.6001, -1657, 13.1, 0, 0, 90);
CreateObject(2060, 2472.6001, -1657.8, 13.4, 0, 0, 90);
CreateObject(2060, 2472.3999, -1657.2, 13.4, 0, 0, 90);
CreateObject(1452, 2507.2, -1684, 13.6, 0, 0, 202);
CreateObject(1452, 2505.7, -1684.1, 13.6, 0, 0, 188);
CreateObject(1452, 2504.2, -1684.2, 13.6, 0, 0, 186);
CreateObject(14875, 2498.6001, -1689.3, 13.4, 0, 0, 0);
CreateObject(14875, 2482.7, -1691.1, 13.3, 0, 0, 0);
CreateObject(356, 2478.8999, -1670.3, 13.5, 0, 0, 0);
CreateObject(2255, 2453.41895, -1664.97656, 12.16455, 0, 0, 0);
CreateObject(2255, 2497.8999, -1644.9, 12.8, 0, 0, 0);
CreateObject(3502, 2503.8999, -1673.8, 14.3, 0, 0, 0);
CreateObject(3502, 2494.6001, -1656.2, 14.3, 0, 0, 88);
CreateObject(3502, 2494.7, -1660.6, 14.3, 0, 0, 87.995);
CreateObject(3502, 2494.7, -1664.9, 14.3, 0, 0, 87.995);
CreateObject(3279, 2460.8, -1651.7, 12.4, 0, 0, 0);
CreateObject(2358, 2473.2, -1687.6, 12.6, 0, 0, 0);
CreateObject(2358, 2473.1001, -1689.2, 12.6, 0, 0, 0);
CreateObject(2358, 2473.2, -1690.7, 12.6, 0, 0, 0);
CreateObject(2358, 2470.6001, -1687.8, 12.6, 0, 0, 0);
CreateObject(2358, 2475.6001, -1690.7, 12.6, 0, 0, 0);
CreateObject(2358, 2470.6001, -1690.2, 12.6, 0, 0, 0);
CreateObject(2358, 2471.3, -1692.3, 12.6, 0, 0, 0);
CreateObject(2358, 2473.2, -1692.5, 12.6, 0, 0, 0);
CreateObject(1271, 2464.8999, -1678.6, 12.9, 0, 0, 0);
CreateObject(1271, 2464.8999, -1679, 12.9, 0, 0, 0);
CreateObject(1271, 2465, -1679.6, 12.9, 0, 0, 0);
CreateObject(1271, 2464.8999, -1680.1, 12.9, 0, 0, 0);
CreateObject(1271, 2465.1001, -1679.2, 13.6, 0, 0, 0);
CreateObject(1271, 2465, -1680.2, 13.6, 0, 0, 0);
CreateObject(1271, 2464.6001, -1681.2, 12.9, 0, 0, 0);
CreateObject(1271, 2464.3, -1680.8, 13.6, 0, 0, 0);
CreateObject(1271, 2464.6001, -1680.9, 14.2, 0, 0, 0);
CreateObject(1271, 2464.8999, -1679.9, 14.3, 0, 0, 0);
CreateObject(1271, 2465.1001, -1679.8, 14.9, 0, 0, 0);
CreateObject(1271, 2464.7, -1680.5, 14.2, 0, 0, 0);
CreateObject(1271, 2464.1001, -1681, 13.6, 0, 0, 0);
CreateObject(11488, 2417.3999, -1764.8, 18.2, 0, 0, 78);
CreateObject(688, 2507.8, -1648.5, 12.9, 0, 0, 0);
CreateObject(881, 2474.5, -1691.6, 12.5, 0, 0, 0);
CreateObject(976, 2476.3, -1722.2, 12.7, 0, 0, 0);
CreateObject(997, 2506.7, -1564.1, -2.6, 0, 0, 272);
CreateObject(997, 2488.5, -1654.3, 12.3, 0, 0, 272);
CreateObject(997, 2488.7, -1658.7, 12.4, 0, 0, 272);
CreateObject(997, 2488.5, -1663.5, 12.3, 0, 0, 272);
CreateObject(997, 2485.6001, -1663.6, 12.3, 0, 0, 272);
CreateObject(997, 2485.2, -1658.8, 12.3, 0, 0, 272);
CreateObject(997, 2485, -1654.5, 12.3, 0, 0, 272);
CreateObject(997, 2482.1001, -1654.8, 12.3, 0, 0, 272);
CreateObject(997, 2482.3999, -1658.9, 12.3, 0, 0, 272);
CreateObject(997, 2482.6001, -1663.9, 12.3, 0, 0, 272);
CreateObject(997, 2590.7, -1655.2, 27, 0, 0, 272);
CreateObject(16770, 1971.8, -2652, 14.1, 0, 0, 0);
CreateObject(3502, 1956, -2651.3999, 14.5, 0, 0, 0);
CreateObject(3502, 1959.7, -2651.6001, 14.5, 0, 0, 0);
CreateObject(3502, 1963.3, -2651.7, 14.5, 0, 0, 0);
CreateObject(3502, 1963.2, -2643.8999, 14.5, 0, 0, 0);
CreateObject(3502, 1959.6, -2643.8, 14.5, 0, 0, 0);
CreateObject(3502, 1955.9, -2643.8, 14.5, 0, 0, 0);
CreateObject(3502, 1963, -2636.3, 14.5, 0, 0, 0);
CreateObject(3502, 1959.7, -2635.8, 14.5, 0, 0, 0);
CreateObject(3502, 1955.9, -2635.8, 14.5, 0, 0, 0);
CreateObject(1423, 1955.5, -2626.3, 13.3, 0, 0, 0);
CreateObject(1423, 1960.2, -2626.1001, 13.3, 0, 0, 0);
CreateObject(1423, 1963.6, -2626.3999, 13.3, 0, 0, 0);
CreateObject(1423, 1963.7, -2623.7, 13.3, 0, 0, 0);
CreateObject(1423, 1959.4, -2622.8, 13.3, 0, 0, 0);
CreateObject(1423, 1955.5, -2623.8999, 13.3, 0, 0, 0);
CreateObject(1423, 1964.1, -2620.1001, 13.3, 0, 0, 0);
CreateObject(1423, 1955.5, -2620.6001, 13.3, 0, 0, 0);
CreateObject(1423, 1964.6, -2617.3999, 13.3, 0, 0, 0);
CreateObject(1423, 1955.3, -2617.3999, 13.3, 0, 0, 0);
CreateObject(1423, 1964.9, -2614.6001, 13.3, 0, 0, 0);
CreateObject(1423, 1955.1, -2614.2, 13.3, 0, 0, 0);
CreateObject(1423, 1959.4, -2620.2, 13.3, 0, 0, 0);
CreateObject(1423, 1959.4, -2618, 13.3, 0, 0, 0);
CreateObject(1423, 1959.7, -2614.8999, 13.3, 0, 0, 0);
CreateObject(3502, 1992.09998, -2654.69995, 14.5, 0, 0, 0);
CreateObject(987, 1931, -2649.5, 12.5, 0, 0, 272);
CreateObject(987, 1931.4, -2641.2, 12.5, 0, 0, 272);
CreateObject(987, 1931, -2630.3, 12.5, 0, 0, 272);
CreateObject(987, 1931.6, -2618.3, 12.5, 0, 0, 272);
CreateObject(987, 1931.4, -2606.3999, 12.5, 0, 0, 272);
CreateObject(987, 1930.6, -2596.1001, 12.5, 0, 0, 272);
CreateObject(987, 1930.7, -2590.6001, 12.5, 0, 0, 272);
CreateObject(987, 1943.1, -2590, 12.5, 0, 0, 180);
CreateObject(987, 1952.1, -2590.2, 12.5, 0, 0, 179.995);
CreateObject(987, 1958.1, -2590.3, 12.5, 0, 0, 179.995);
CreateObject(987, 1971.9, -2590.2, 12.5, 0, 0, 179.995);
CreateObject(987, 1984.6, -2590.3, 12.5, 0, 0, 179.995);
CreateObject(987, 1938, -2590.5, 12.5, 0, 0, 179.995);
CreateObject(987, 1994.8, -2590.6001, 12.5, 0, 0, 179.995);
CreateObject(987, 2005.4, -2590.8999, 12.5, 0, 0, 179.995);
CreateObject(987, 2013.2, -2590.8999, 12.5, 0, 0, 179.995);
CreateObject(987, 1993, -2604.2, 12.5, 0, 0, 91.995);
CreateObject(987, 1993, -2601.2, 13, 0, 0, 91.994);
CreateObject(987, 1994.2, -2615.5, 12.5, 0, 0, 91.994);
CreateObject(987, 1993.3, -2621.1001, 12.5, 0, 0, 91.994);
CreateObject(987, 1994.4, -2633.2, 12.5, 0, 0, 91.994);
CreateObject(987, 1994.7, -2642.1001, 12.5, 0, 0, 91.994);
CreateObject(987, 1997, -2658.80005, 12.5, 0, 0, 91.995);
CreateObject(987, 1996.7, -2648.2, 12.5, 0, 0, 91.994);
CreateObject(987, 1995.1, -2643.2, 12.5, 0, 0, 91.994);
CreateObject(987, 1995.8, -2643, 12.5, 0, 0, 91.994);
CreateObject(2358, 1939.6, -2657.5, 12.7, 0, 0, 0);
CreateObject(2358, 1942.4, -2657.6001, 12.7, 0, 0, 0);
CreateObject(2358, 1942.3, -2655.6001, 12.7, 0, 0, 0);
CreateObject(2358, 1938.6, -2655.7, 12.7, 0, 0, 0);
CreateObject(2358, 1946.1, -2657.5, 12.7, 0, 0, 0);
CreateObject(2936, 1982.3, -2601.7, 13, 0, 0, 0);
CreateObject(1463, 1935.4, -2595.2, 12.9, 0, 0, 0);
CreateObject(1463, 1935.3, -2598.8999, 12.9, 0, 0, 0);
CreateObject(1280, 2003.7, -2577.8, 12.9, 0, 0, 0);
CreateObject(1726, 1979.5, -2593.3999, 12.5, 0, 0, 0);
CreateObject(1726, 1976.5, -2595.1001, 12.5, 0, 0, 28);
CreateObject(1726, 1982.9, -2593.5, 12.5, 0, 0, 326);
CreateObject(688, 1969.6, -2586.3999, 12.5, 0, 0, 0);
CreateObject(688, 1932.1, -2609.3999, 13.5, 0, 0, 0);
CreateObject(688, 1945.9, -2590.6001, 12.5, 0, 0, 0);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreateObject(8493, 3069, 2259.2, 36.4, 0, 0, 0);
CreateObject(3866, 2870.7, 2207.3999, 17.7, 0, 0, 0);
CreateObject(11245, 2974.59863, 2252.72266, 50.41851, 0, 0, 0);
CreateObject(7090, 3064.76855, 2237.0332, -0.25025, 0, 0, 0);
CreateObject(2406, 3075.8, 2223.5, 17.8, 280, 0, 178);
CreateObject(2406, 2965.6001, 2184, 21.1, 279.998, 0, 177.995);
CreateObject(4193, 2377.8999, -2695.3, 6, 0, 0, 0);
CreateObject(10422, 2927.8999, -1952.9, 0.8, 0, 0, 0);
CreateObject(8357, 2879.1001, -1954.7, 6.4, 0, 333, 0);
CreateObject(8357, 2938, -2003, 0, 0, 0, 0);
CreateObject(3472, 2912.8, -1945.7, 0.5, 0, 0, 0);
CreateObject(3509, 2911.8999, -1924.4, 0.2, 0, 0, 0);
CreateObject(3509, 2913.3999, -1971.7, 0.2, 0, 0, 0);
CreateObject(3509, 2946.3, -1972.9, 0.2, 0, 0, 0);
CreateObject(3509, 2944.8999, -1924.5, 0.2, 0, 0, 0);
return 1;
}
//----------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
// changing cities by inputs
if( !gPlayerHasCitySelected[playerid] &&
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
ClassSel_HandleCitySelection(playerid);
return 1;
}
// No weapons in interiors
//if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
//SetPlayerArmedWeapon(playerid,0); // fists
//return 0; // no syncing until they change their weapon
//}
// Don\'t allow minigun
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
Kick(playerid);
return 0;
}
/* No jetpacks allowed
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
Kick(playerid);
return 0;
}*/
/* For testing animations
new msg[128+1];
new animlib[32+1];
new animname[32+1];
thisanimid = GetPlayerAnimationIndex(playerid);
if(lastanimid != thisanimid)
{
GetAnimationName(thisanimid,animlib,32,animname,32);
format(msg, 128, \"anim(%d,%d): %s %s\", lastanimid, thisanimid, animlib, animname);
lastanimid = thisanimid;
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}*/
return 1;
}
//-----------------------------------------------