pawn Код:
//||------------------------------------------------------------------||
//|| Las Venturas Admin House ||
//|| -Mapping xxjackoxx ||
//|| -Scripting xxjackoxx ||
//|| **Do not remove credits** ||
//|| **Do not edit and release without my knowledge** ||
//||------------------------------------------------------------------||
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#if defined FILTERSCRIPT
new pickup1;
new pickup2;
new pickup3;
new pickup4;
new gate1;
new gate2;
new gate3;
new gate4;
main()
{
}
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Lv Admin House - xxjackoxx ");
print("--------------------------------------\n");
pickup1 = CreatePickup(1240, 23, 1451.6621,762.3836,11.0234);
pickup2 = CreatePickup(1210, 23, 1452.7627,759.7487,11.0234);
pickup3 = CreatePickup(1273, 23, 1455.2428,751.0911,11.0234);
pickup4 = CreatePickup(1273, 23, 1544.4130,707.4805,11.6484);
gate1 = CreateObject(16775, 1527.2288818359, 663.74810791016, 11.371126174927, 0.000000, 0.000000, 0.000000); //object (door_savhangr2) (2)
gate2 = CreateObject(16775, 1447.2185058594, 663.91955566406, 11.296081542969, 0.000000, 0.000000, 0.000000); //object (door_savhangr2) (3)
gate3 = CreateObject(2990, 1428.9173583984, 736.62756347656, 12.234292984009, 0.000000, 0.000000, 0.000000); //object (wongs_gate) (1]
gate4 = CreateObject(2990, 1442.3220214844, 736.73010253906, 12.234292984009, 0.000000, 0.000000, 0.000000); //object (wongs_gate) (3)
CreateObject(7522, 1435.6134033203, 730.78436279297, 14.336320877075, 0.000000, 0.000000, 0.000000); //object (vgnhsegate1) (1)
CreateObject(987, 1425.8376464844, 663.51745605469, 9.8203125, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (3)
CreateObject(987, 1413.8317871094, 663.48760986328, 9.8203125, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (4)
CreateObject(987, 1401.8393554688, 663.58325195313, 9.8203125, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (5)
CreateObject(987, 1397.5395507813, 663.68481445313, 9.8203125, 0.000000, 0.000000, 0.000000); //object (elecfence_bar) (6)
CreateObject(987, 1397.6932373047, 675.63616943359, 9.8203125, 0.000000, 0.000000, 270.2702636718; //object (elecfence_bar) (7)
CreateObject(987, 1397.6612548828, 687.50067138672, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (
CreateObject(987, 1397.626953125, 699.43963623047, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (9)
CreateObject(987, 1397.6446533203, 711.33172607422, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (10)
CreateObject(987, 1397.6705322266, 723.31329345703, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (11)
CreateObject(987, 1397.6824951172, 735.19256591797, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (12)
CreateObject(987, 1397.6219482422, 747.12414550781, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (13)
CreateObject(987, 1397.7110595703, 759.08734130859, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (14)
CreateObject(987, 1397.634765625, 771.06103515625, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (15)
CreateObject(987, 1397.634765625, 783.03527832031, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (16)
CreateObject(987, 1397.6848144531, 795.03491210938, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (17)
CreateObject(987, 1397.7222900391, 797.90979003906, 9.8203125, 0.000000, 0.000000, 270.26916503906); //object (elecfence_bar) (1
CreateObject(987, 1409.5013427734, 797.75738525391, 9.8203125, 0.000000, 0.000000, 180.53918457031); //object (elecfence_bar) (19)
CreateObject(987, 1421.4844970703, 797.81597900391, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (20)
CreateObject(987, 1433.4191894531, 797.79858398438, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (21)
CreateObject(987, 1445.3336181641, 797.79516601563, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (22)
CreateObject(987, 1457.3089599609, 797.79266357422, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (23)
CreateObject(987, 1469.279296875, 796.962890625, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (24)
CreateObject(987, 1481.3460693359, 797.79833984375, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (25)
CreateObject(987, 1493.3283691406, 797.81237792969, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (26)
CreateObject(987, 1505.2126464844, 797.63513183594, 9.8203125, 0.000000, 0.000000, 180.53833007813); //object (elecfence_bar) (27)
CreateObject(987, 1517.1962890625, 797.50787353516, 9.8203125, 0.000000, 0.000000, 179.28833007813); //object (elecfence_bar) (2
CreateObject(987, 1529.2219238281, 797.48553466797, 9.8203125, 0.000000, 0.000000, 180.2858886718; //object (elecfence_bar) (29)
CreateObject(987, 1541.0963134766, 797.52227783203, 9.8203125, 0.000000, 0.000000, 180.28564453125); //object (elecfence_bar) (30)
CreateObject(987, 1553.0965576172, 797.48425292969, 9.8203125, 0.000000, 0.000000, 180.28564453125); //object (elecfence_bar) (31)
CreateObject(987, 1557.2208251953, 797.51361083984, 9.8203125, 0.000000, 0.000000, 180.28564453125); //object (elecfence_bar) (32)
CreateObject(987, 1557.2026367188, 785.40985107422, 9.8203125, 0.000000, 0.000000, 90.55569458007; //object (elecfence_bar) (33)
CreateObject(987, 1557.1849365234, 773.43395996094, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (34)
CreateObject(987, 1557.1169433594, 761.43371582031, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (35)
CreateObject(987, 1557.2192382813, 749.47003173828, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (36)
CreateObject(987, 1557.1711425781, 737.51129150391, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (37)
CreateObject(987, 1557.2153320313, 725.56964111328, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (3
CreateObject(987, 1557.1619873047, 713.61865234375, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (39)
CreateObject(987, 1557.18359375, 701.66760253906, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (40)
CreateObject(987, 1557.1312255859, 689.74206542969, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (41)
CreateObject(987, 1557.0786132813, 677.84130859375, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (42)
CreateObject(987, 1557.0256347656, 665.89086914063, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (43)
CreateObject(987, 1557.0141601563, 663.34057617188, 9.8203125, 0.000000, 0.000000, 90.554809570313); //object (elecfence_bar) (44)
CreateObject(987, 1545.3995361328, 663.4189453125, 9.8203125, 0.000000, 0.000000, 0.8247985839843; //object (elecfence_bar) (45)
CreateObject(987, 1537.2141113281, 663.49072265625, 9.8203125, 0.000000, 0.000000, 0.823974609375); //object (elecfence_bar) (46)
CreateObject(987, 1505.67578125, 663.44360351563, 9.8203125, 0.000000, 0.000000, 0.823974609375); //object (elecfence_bar) (47)
CreateObject(987, 1493.7141113281, 663.48657226563, 9.8203125, 0.000000, 0.000000, 0.073974609375); //object (elecfence_bar) (4
CreateObject(987, 1481.8057861328, 663.52856445313, 9.8203125, 0.000000, 0.000000, 0.0714111328125); //object (elecfence_bar) (49)
CreateObject(987, 1469.7800292969, 663.53533935547, 9.8203125, 0.000000, 0.000000, 0.0714111328125); //object (elecfence_bar) (50)
CreateObject(987, 1457.7042236328, 663.46221923828, 9.8203125, 0.000000, 0.000000, 0.0714111328125); //object (elecfence_bar) (51)
CreateObject(3749, 1527.3527832031, 665.25360107422, 15.530289649963, 0.000000, 0.000000, 1.5); //object (clubgate01_lax) (1)
CreateObject(3749, 1447.5014648438, 665.24011230469, 15.530289649963, 0.000000, 0.000000, 0.75); //object (clubgate01_lax) (2)
CreateObject(987, 1423.4060058594, 736.88372802734, 9.8203125, 0.000000, 0.000000, 270.2702636718; //object (elecfence_bar) (54)
CreateObject(987, 1410.8637695313, 723.89331054688, 9.1953220367432, 0.000000, 0.000000, 359.9990234375); //object (elecfence_bar) (55)
CreateObject(987, 1398.8701171875, 723.86590576172, 9.1953220367432, 0.000000, 0.000000, 359.99450683594); //object (elecfence_bar) (56)
CreateObject(824, 1401.0152587891, 722.50524902344, 11.390625953674, 0.000000, 0.000000, 0.000000); //object (genveg_tallgrass0 (1)
CreateObject(987, 1448.1174316406, 724.50439453125, 9.8203125, 0.000000, 0.000000, 90.809265136719); //object (elecfence_bar) (57)
CreateObject(987, 1448.5324707031, 737.93249511719, 8.5553226470947, 0.000000, 0.000000, 21.517486572266); //object (elecfence_bar) (5
CreateObject(967, 1424.7521972656, 724.33587646484, 9.8203125, 0.000000, 0.000000, 270.970703125); //object (bar_gatebox01) (1)
CreateObject(3524, 1455.4742431641, 756.7001953125, 12.433784484863, 0.000000, 0.000000, 270.2702636718; //object (skullpillar01_lvs) (1)
CreateObject(3524, 1455.3675537109, 745.32409667969, 12.433784484863, 0.000000, 0.000000, 270.26916503906); //object (skullpillar01_lvs) (2)
CreateObject(3528, 1453.6834716797, 751.13592529297, 18.980665206909, 0.000000, 0.000000, 172.07049560547); //object (vgsedragon) (1)
CreateObject(987, 1531.4520263672, 757.11126708984, 9.8203125, 0.000000, 0.000000, 356.80419921875); //object (elecfence_bar) (35)
CreateObject(987, 1543.4450683594, 756.52905273438, 9.8203125, 0.000000, 0.000000, 356.80297851563); //object (elecfence_bar) (35)
CreateObject(987, 1545.4713134766, 756.48876953125, 9.8203125, 0.000000, 0.000000, 356.80297851563); //object (elecfence_bar) (35)
CreateObject(1616, 1454.9460449219, 663.18255615234, 15.075472831726, 0.000000, 0.000000, 89.73001098632; //object (nt_securecam1_01) (1)
CreateObject(1892, 1435.1369628906, 736.86987304688, 9.774600982666, 0.000000, 0.000000, 0.000000); //object (security_gatsh) (1)
CreateObject(16021, 1545.8984375, 713.9736328125, 9.4453182220459, 0.000000, 0.000000, 0.000000); //object (des_geyhotbase_) (1)
AddStaticVehicle(560,1413.1185,746.5369,10.5253,27 0.3449,0,6); // a1
AddStaticVehicle(560,1412.9519,743.0266,10.5251,26 8.5257,0,6); // a2
AddStaticVehicle(560,1413.0536,749.7030,10.5252,27 1.3685,0,6); // a3
AddStaticVehicle(560,1412.9919,752.9355,10.5250,27 0.5107,0,6); // a4
AddStaticVehicle(451,1413.2145,759.0961,10.5265,27 0.0818,2,2); // a5
AddStaticVehicle(451,1413.2595,762.3645,10.5262,27 0.1369,2,2); // a6
AddStaticVehicle(451,1413.1589,765.6445,10.5268,26 9.3819,2,2); // a7
AddStaticVehicle(451,1413.1221,768.9017,10.5265,27 0.4377,2,2); // a8
AddStaticVehicle(555,1413.1865,775.0526,10.5043,26 9.5836,3,3); // a9
AddStaticVehicle(555,1412.9340,778.3939,10.5041,27 0.1272,3,3); // a10
AddStaticVehicle(555,1412.6512,781.7021,10.5047,27 1.3708,3,3); // a11
AddStaticVehicle(555,1412.5989,784.9851,10.5051,27 2.6826,3,3); // a12
AddStaticVehicle(487,1434.8263,789.1796,10.9974,91 .4559,0,6); // a13
AddStaticVehicle(522,1449.1810,788.7890,10.3910,18 3.3430,50,43); // a14
AddStaticVehicle(522,1452.2227,788.7806,10.3909,18 4.5644,46,80); // a15
AddStaticVehicle(522,1455.4471,788.7032,10.3931,18 4.3937,22,77); // a16
AddStaticVehicle(568,1461.6587,788.1292,10.6844,17 9.7896,49,25); // a17
AddStaticVehicle(568,1464.9478,788.4159,10.6850,17 8.7808,80,65); // a18
AddStaticVehicle(593,1541.5964,787.7326,11.2809,18 1.2319,12,107); // a19
AddStaticVehicle(487,1509.0344,786.2919,10.9971,17 9.0047,80,30); // a20
AddStaticVehicle(578,1523.6818,787.8013,11.4444,89 .4890,3,3); // a21
AddStaticVehicle(555,1545.0845,693.5004,10.5043,40 .9401,0,0); // a22
AddStaticVehicle(541,1541.0273,698.2603,10.4453,42 .0649,0,1); // a23
AddStaticVehicle(541,1413.3961,685.8873,10.4454,27 0.4959,44,115); // 24
AddStaticVehicle(541,1413.1632,689.0511,10.4453,27 1.8362,58,53); // a25
AddStaticVehicle(541,1413.0344,692.2111,10.4451,27 0.6403,63,19); // a26
AddStaticVehicle(534,1413.0216,717.2592,10.5440,17 9.7323,17,42); // a27
AddStaticVehicle(534,1416.5411,717.0471,10.5452,17 9.1663,35,124); // a28
AddStaticVehicle(596,1420.1766,717.6459,10.5416,17 9.1094,0,1); // a29
for(new i = 0;i < MAX_VEHICLES;i++)
{
if(IsAnAdminCar(i))
{
SetVehicleNumberPlate(i,"ADMIN");
SetVehicleToRespawn(i);
}
return 1;
}
stock IsAnAdminCar(vehicleid)
{
new a = GetVehicleModel(vehicleid);
if(a == x || a == y || etc..) return 1;//CHANGE X, Y and .. TO THE MODEL ID OF ADMIN CARS
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if( pickupid == pickup1) {
SetPlayerHealth(playerid, 100);
}
if( pickupid == pickup2) {
GivePlayerWeapon(playerid, 38, 9999);
GivePlayerMoney(playerid, 400000);
GivePlayerWeapon(playerid, 20, 9999);
}
if( pickupid == pickup3) {
SetPlayerPos(playerid,2567.52,-1294.59 ,1063.25);
SetPlayerInterior(playerid, 2 );
SendClientMessage(playerid,COLOR_YELLOW,"To exit please type /exah");
}
if( pickupid == pickup4) {
SetPlayerPos(playerid,225.630997,1022.479980,1084. 069946);
SetPlayerInterior(playerid, 7 );
SendClientMessage(playerid,COLOR_YELLOW,"To exit please type /exh");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/ahopen1", true)==0)
{
MoveObject (gate1,1527.228515625, 663.748046875, 3.1211261749268,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Opened");
return 1;
}
if (strcmp(cmdtext, "/ahclose1", true)==0)
{
MoveObject (gate1,1527.2288818359, 663.74810791016, 11.371126174927,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Closed");
return 1;
}
if (strcmp(cmdtext, "/ahopen2", true)==0)
{
MoveObject (gate2,1447.2177734375, 663.9189453125, 3.0460815429688,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Opened");
return 1;
}
if (strcmp(cmdtext, "/ahclose2", true)==0)
{
MoveObject (gate2,1447.2185058594, 663.91955566406, 11.296081542969,2);
SendClientMessage(playerid, COLOR_RED, "Main Gate Closed");
return 1;
}
if (strcmp(cmdtext, "/ahsopen1", true)==0)
{
MoveObject (gate3,1428.9169921875, 736.626953125, 3.9842929840088,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 1 Opened");
return 1;
}
if (strcmp(cmdtext, "/ahsclose1", true)==0)
{
MoveObject (gate3,1428.9173583984, 736.62756347656, 12.234292984009,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 1 Closed");
return 1;
}
if (strcmp(cmdtext, "/ahsopen2", true)==0)
{
MoveObject (gate4,1442.3212890625, 736.7294921875, 3.7092957496643,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 2 Opened");
return 1;
}
if (strcmp(cmdtext, "/ahsclose2", true)==0)
{
MoveObject (gate4,1442.3220214844, 736.73010253906, 12.234292984009,2);
SendClientMessage(playerid, COLOR_RED, "Security Gate 2 Closed");
return 1;
}
if (strcmp(cmdtext, "/exah",true)==0)
{
SetPlayerPos(playerid,1451.4659,750.8608,11.0234);
SetPlayerInterior(playerid , 0);
SendClientMessage(playerid,COLOR_YELLOW,"You have left the admin house. Enjoy your day!");
return 1;
}
if (strcmp(cmdtext, "/exh",true)==0)
{
SetPlayerPos(playerid,1542.4606,705.8619,11.6484);
SetPlayerInterior(playerid , 0);
SendClientMessage(playerid,COLOR_YELLOW,"You have left the house. Enjoy your day!");
return 1;
}
return 0;
}
#endif