pawn Код:
/*
Da Grove base made by [SFR]FLoRyN ---> Please do not remove the Credits
Hello this is my 1st map, is a base which i did it for a gang from my server, it contains:
- 82 Objects
- 5 Cars , 2 NRGS , 1 Maverick
- 6 Pickups (health,armour,tec9,ak47,sawn-off shotgun,sniper)
- 2 Commands (/base , /gopen)
Enjoy */
//Include
#include <a_samp>
//New
new gate2;
new heal;
new armour;
new tec9;
new ak47;
new sawnoff;
new sniper;
//Forwards
forward CloseGate2();
//Defines
#define COLOR_GREEN 0x33AA33AA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Base By [SFR]Floryn Loaded");
print("--------------------------------------\n");
//Objects
CreateObject(987, 2757.937256, 1302.238403, 10.052151, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2775.692871, 1302.653198, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2768.168701, 1302.166382, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2797.852783, 1382.642944, 9.973495, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2848.723633, 1382.695435, 10.040259, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2841.183350, 1382.723022, 9.962002, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2805.130127, 1382.713379, 9.899974, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2785.262939, 1323.940796, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2774.360840, 1323.471558, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2764.214600, 1323.161621, 10.783552, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2757.539063, 1323.218384, 10.955022, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2817.117676, 1382.750244, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2828.869873, 1382.605591, 9.750000, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2849.708008, 1338.359375, 10.117628, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2848.832031, 1224.132935, 9.874864, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2836.751465, 1223.990601, 9.898284, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2824.702637, 1223.970947, 9.877687, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2812.614014, 1224.328247, 9.870939, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2800.569824, 1224.076172, 9.870708, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2788.688965, 1224.249023, 9.883883, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2776.718506, 1224.065186, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2764.635742, 1223.898438, 9.898437, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2758.445801, 1224.526245, 9.898438, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2796.489258, 1336.104248, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2796.547363, 1347.984863, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2796.857666, 1359.837646, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2796.828857, 1371.713379, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2797.146484, 1383.182373, 9.879560, 0.0000, 0.0000, 270.0000);
CreateObject(3603, 2842.098633, 1358.884766, 15.648096, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2860.739014, 1242.625000, 9.948555, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2860.683350, 1235.863525, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2860.739014, 1242.992065, 9.975744, 0.0000, 0.0000, 180.0000);
CreateObject(987, 2799.000244, 1319.468506, 9.898438, 0.0000, 0.0000, 157.5000);
CreateObject(987, 2798.560791, 1307.072876, 9.898438, 0.0000, 0.0000, 202.5000);
CreateObject(987, 2758.400635, 1302.290405, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.538086, 1290.259277, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.572021, 1278.341919, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.572754, 1266.332153, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.511230, 1254.317871, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.596680, 1242.284302, 9.898438, 0.0000, 0.0000, 270.0000);
CreateObject(987, 2758.912598, 1236.176880, 10.006170, 0.0000, 0.0000, 270.0000);
CreateObject(1543, 2789.557861, 1283.648315, 10.861699, 0.0000, 0.0000, 0.0000);
CreateObject(3294, 2909.414551, 1323.863647, 254.389557, 0.0000, 0.0000, 0.0000);
CreateObject(3524, 2799.017578, 1319.268188, 15.307350, 0.0000, 0.0000, 281.2500);
CreateObject(3524, 2798.634277, 1306.614502, 15.325066, 0.0000, 0.0000, 281.2500);
CreateObject(3877, 2757.784180, 1303.549316, 12.879259, 0.0000, 0.0000, 0.0000);
CreateObject(3877, 2757.799805, 1322.753174, 12.879462, 0.0000, 0.0000, 0.0000);
CreateObject(3267, 2754.896484, 1294.177612, 8.858242, 0.0000, 0.0000, 67.5000);
CreateObject(3267, 2755.579590, 1327.539063, 8.796570, 0.0000, 0.0000, 67.5000);
CreateObject(14608, 2828.927734, 1358.491699, 21.152651, 0.0000, 0.0000, 45.0000);
CreateObject(3279, 2763.840576, 1298.794678, 9.974054, 0.0000, 0.0000, 0.0000);
CreateObject(14537, 2809.654053, 1265.861328, 11.696362, 0.0000, 0.0000, 0.0000);
CreateObject(3279, 2801.717285, 1378.289673, 9.974054, 0.0000, 0.0000, 0.0000);
CreateObject(3524, 2860.961914, 1381.688232, 14.307215, 0.0000, 0.0000, 202.5000);
CreateObject(3524, 2860.889160, 1226.756104, 15.462675, 0.0000, 0.0000, 359.9999);
CreateObject(3524, 2758.553223, 1224.584717, 15.096975, 0.0000, 0.0000, 359.9999);
CreateObject(7073, 2823.234619, 1374.749268, 28.016750, 0.0000, 0.0000, 225.0000);
CreateObject(751, 2798.608887, 1319.081787, 10.830056, 0.0000, 0.0000, 0.0000);
CreateObject(751, 2797.987305, 1306.946411, 10.830057, 0.0000, 0.0000, 0.0000);
CreateObject(683, 2756.276367, 1233.505493, 9.668427, 0.0000, 0.0000, 0.0000);
CreateObject(683, 2850.499268, 1221.981934, 9.922037, 0.0000, 0.0000, 0.0000);
CreateObject(683, 2793.521729, 1330.109131, 10.021732, 0.0000, 0.0000, 0.0000);
CreateObject(683, 2857.336914, 1392.518677, 9.987309, 0.0000, 0.0000, 0.0000);
CreateObject(624, 2819.393066, 1305.634277, 9.325422, 0.0000, 0.0000, 0.0000);
CreateObject(624, 2819.756592, 1289.439819, 9.325422, 0.0000, 0.0000, 0.0000);
CreateObject(624, 2820.125977, 1274.692017, 9.325422, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 2799.920898, 1323.518799, 10.415666, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2799.915283, 1330.053467, 10.415666, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2799.974609, 1336.867065, 10.415666, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2800.072754, 1349.756104, 10.415666, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2799.785889, 1356.631348, 10.415666, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2799.461670, 1363.201538, 10.415665, 0.0000, 0.0000, 90.0000);
CreateObject(2773, 2799.770264, 1371.023193, 10.415665, 0.0000, 0.0000, 90.0000);
CreateObject(2792, 2795.965088, 1320.094482, 14.589248, 0.0000, 0.0000, 337.5000);
CreateObject(9241, 2785.018799, 1275.533203, 11.808899, 0.0000, 0.0000, 180.0000);
CreateObject(9833, 2828.910156, 1334.977173, 12.973238, 0.0000, 0.0000, 0.0000);
CreateObject(1290, 2807.350830, 1324.725464, 15.781041, 0.0000, 0.0000, 78.7500);
CreateObject(1290, 2807.261719, 1334.163208, 15.773421, 0.0000, 0.0000, 78.7500);
CreateObject(1290, 2807.257324, 1343.945068, 15.773417, 0.0000, 0.0000, 78.7500);
CreateObject(1290, 2806.836670, 1353.411255, 15.773421, 0.0000, 0.0000, 90.0000);
CreateObject(1290, 2806.625488, 1362.866455, 15.773417, 0.0000, 0.0000, 90.0000);
CreateObject(1290, 2811.857422, 1372.736328, 15.773421, 0.0000, 0.0000, 0.0000);
CreateObject(987, 2855.804688, 1296.448975, 10.648183, 0.0000, 0.0000, 270.0000);
//Vehicles
// sultan1
AddStaticVehicle(560,2804.7676,1367.7190,10.6865,269.1745,86,86);
// nrg1
AddStaticVehicle(522,2813.4182,1374.9058,10.3208,179.5956,86,86);
// nrg2
AddStaticVehicle(522,2810.1130,1374.5190,10.3208,177.9999,86,86);
// elegy
AddStaticVehicle(562,2805.0613,1358.2150,10.4099,269.4549,86,86);
// uranus
AddStaticVehicle(558,2805.3425,1348.5577,10.3809,268.9919,86,86);
// infernus
AddStaticVehicle(411,2805.1096,1339.1824,10.4771,269.2256,86,86);
// stratum
AddStaticVehicle(561,2805.2490,1329.2101,10.5711,269.0772,86,86);
// maverick
AddStaticVehicle(487,2783.9873,1275.3473,13.8138,90.2182,86,86);
//Gate
gate2 = CreateObject(987, 2798.690186, 1319.258667, 9.898438, 0.0000, 0.0000, 270.8594);
//Pickups
heal = CreatePickup(1240, 2, 2800.0825,1333.1779,10.8984, 0);
armour = CreatePickup(1242, 2, 2800.0149,1342.5380,10.8984, 0);
tec9 = CreatePickup(372, 2, 2799.8647,1326.7390,10.8984, 0);
ak47 = CreatePickup(355, 2, 2799.7759,1353.6519,10.8984, 0);
sawnoff = CreatePickup(350, 2, 2799.7761,1359.6105,10.8984, 0);
sniper = CreatePickup(358, 2, 2799.7366,1366.6827,10.8984, 0);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public CloseGate2()
{
MoveObject(gate2, 2798.690186, 1319.258667, 9.898438, 2.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gopen", cmdtext, true, 10) == 0) {
MoveObject(gate2, 2799.185547,1331.419800,9.898438, 2.0);
SetTimerEx("CloseGate2",10000,0,"i",playerid);
SendClientMessage(playerid,COLOR_GREEN,"GangBase Gate Opened");
return 1;
}
if(!strcmp(cmdtext, "/base", true)) {
if(IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid), 2787.2598,1313.2899,10.7500);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
else {
SetPlayerPos(playerid, 2787.2598,1313.2899,10.7500);
SetPlayerFacingAngle(playerid, 0.0);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GREEN, "Welcome to Da Grove Base!");
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == sniper) {
GivePlayerWeapon(playerid, 34, 500);
SendClientMessage(playerid, COLOR_GREEN, "You got a Sniper with 500 rounds of Ammo!");
}
if (pickupid == sawnoff) {
GivePlayerWeapon(playerid, 26, 1000);
SendClientMessage(playerid, COLOR_GREEN, "You got a Sawn-Off Shotgun with 1000 rounds of Ammo!");
}
if (pickupid == ak47) {
GivePlayerWeapon(playerid, 30, 3000);
SendClientMessage(playerid, COLOR_GREEN, "You got a AK47 with 3000 rounds of Ammo!");
}
if (pickupid == tec9) {
GivePlayerWeapon(playerid, 32, 4000);
SendClientMessage(playerid, COLOR_GREEN, "You got a tec9 with 4000 rounds of Ammo!");
}
if (pickupid == armour) {
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, COLOR_GREEN, "Your Armour Has Succesfull Restorted!");
}
if (pickupid == heal) {
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You are Succesfully Healed!");
}
return 1;
}
//=========================================END====== ===========================