pawn Код:
// This is Admin Island by Joksa
// This is Admin Island by Joksa
// This is Admin Island by Joksa
#include <a_samp>
new gate;
new gate1;
new gate2;
new gate3;
new bool:gateopen;
new bool:gateopen2;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Admin Island is Loaded by Joksa");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Admin Island is UnLoaded by Joksa");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
CreateObject(3991,3078.0000000,-678.6992188,7.3000002,0.0000000,0.0000000,249.9938965); //object(gsfreeway7_lan) (2)
CreateObject(3991,3210.0000000,-726.0996094,8.8000002,0.0000000,0.0000000,239.9908447); //object(gsfreeway7_lan) (3)
CreateObject(3991,2941.0996094,-655.0000000,5.6999998,0.0000000,0.0000000,259.9914551); //object(gsfreeway7_lan) (4)
CreateObject(8661,3296.0996094,-759.1992188,10.3000002,0.0000000,0.0000000,147.9968262); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3286.6000977,-774.4000244,10.3000002,0.0000000,0.0000000,147.9968262); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3329.8999023,-779.0000000,10.3000002,0.0000000,0.0000000,149.9968262); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3320.1000977,-795.2999878,10.3000002,0.0000000,0.0000000,147.9963379); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3364.3000488,-798.7999878,10.3000002,0.0000000,0.0000000,149.9913330); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3353.8000488,-816.2999878,10.3000002,0.0000000,0.0000000,147.9908447); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,3362.0000000,-803.2999878,10.3000002,0.0000000,0.0000000,147.9858398); //object(gnhtelgrnd_lvs) (1)
CreateObject(2898,3285.3999023,-743.7999878,10.3000002,0.0000000,0.0000000,330.0000000); //object(funturf_law) (1)
CreateObject(2898,3282.8000488,-748.2999878,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (2)
CreateObject(2898,3280.1999512,-752.9000244,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (3)
CreateObject(2898,3277.5000000,-757.5999756,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (4)
CreateObject(2898,3274.8000488,-762.2999878,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (5)
CreateObject(2898,3272.1000977,-767.0000000,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (6)
CreateObject(2898,3269.3999023,-771.7000122,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (7)
CreateObject(2898,3269.1000977,-772.2000122,10.3000002,0.0000000,0.0000000,329.9963379); //object(funturf_law) (8)
CreateObject(3524,3283.5000000,-742.7999878,13.3999996,0.0000000,0.0000000,237.9999847); //object(skullpillar01_lvs) (1)
CreateObject(3524,3275.3000488,-756.7999878,13.3999996,0.0000000,0.0000000,237.9968262); //object(skullpillar01_lvs) (2)
CreateObject(3524,3267.1999512,-770.5999756,13.3999996,0.0000000,0.0000000,237.9968262); //object(skullpillar01_lvs) (3)
CreateObject(10946,3303.8994141,-821.2998047,11.8999996,0.0000000,0.0000000,328.7438965); //object(fuuuuuuuck_sfs) (3)
CreateObject(9833,3285.1999512,-744.0000000,13.5000000,0.0000000,0.0000000,0.0000000); //object(fountain_sfw) (1)
CreateObject(9833,3268.6999512,-772.2000122,13.5000000,0.0000000,0.0000000,0.0000000); //object(fountain_sfw) (2)
CreateObject(2985,3263.1000977,-749.9000244,11.1999998,0.0000000,0.0000000,110.0000000); //object(minigun_base) (1)
CreateObject(2985,3263.0996094,-749.8994141,11.1999998,0.0000000,0.0000000,177.9951782); //object(minigun_base) (2)
CreateObject(2985,3261.3000488,-748.7999878,11.1999998,0.0000000,0.0000000,177.9949951); //object(minigun_base) (3)
CreateObject(2985,3261.2998047,-748.7998047,11.1999998,0.0000000,0.0000000,117.9949951); //object(minigun_base) (4)
CreateObject(2985,3268.1000977,-733.7000122,10.3000002,0.0000000,0.0000000,185.9930420); //object(minigun_base) (8)
CreateObject(3279,3290.5000000,-738.7999878,10.3000002,0.0000000,0.0000000,333.5000000); //object(a51_spottower) (1)
CreateObject(3279,3268.3000488,-777.7000122,10.3000002,0.0000000,0.0000000,329.2454834); //object(a51_spottower) (2)
CreateObject(2928,3276.1000977,-756.0999756,11.6999998,0.0000000,0.0000000,237.9999847); //object(a51_intdoor) (1)
CreateObject(2928,3275.1000977,-757.9000244,11.6999998,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (2)
CreateObject(2928,3276.1000977,-756.0999756,14.1999998,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (3)
CreateObject(2928,3275.1000977,-757.9000244,14.1999998,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (4)
CreateObject(2928,3283.1000977,-744.0999756,11.6000004,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (5)
CreateObject(2928,3283.8000488,-743.0000000,11.6000004,0.0000000,0.0000000,239.2468262); //object(a51_intdoor) (6)
CreateObject(2928,3283.1000977,-744.0999756,14.1000004,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (7)
CreateObject(2928,3284.0000000,-743.0999756,14.1000004,0.0000000,0.0000000,241.2468262); //object(a51_intdoor) (8)
CreateObject(2928,3267.8999023,-769.7999878,11.8000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (9)
CreateObject(2928,3266.8999023,-771.4000244,11.8000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (10)
CreateObject(2928,3267.8999023,-769.7999878,14.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (11)
CreateObject(2928,3267.0000000,-771.5000000,14.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (12)
CreateObject(3666,3264.1000977,-750.5999756,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (1)
CreateObject(3666,3264.6999512,-750.9000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (2)
CreateObject(3666,3265.3999023,-751.2999878,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (3)
CreateObject(3666,3266.0000000,-751.5999756,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (4)
CreateObject(3666,3266.6999512,-752.0000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (5)
CreateObject(3666,3258.1999512,-764.2999878,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (6)
CreateObject(3666,3257.0000000,-763.7000122,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (7)
CreateObject(3666,3255.8000488,-763.0999756,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (8)
CreateObject(3666,3254.6000977,-762.4000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (9)
CreateObject(3666,3253.8999023,-762.0000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (10)
CreateObject(3666,3253.3999023,-762.9000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (11)
CreateObject(3666,3252.8999023,-764.0000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (12)
CreateObject(3666,3257.5000000,-765.4000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (14)
CreateObject(3666,3256.8999023,-766.4000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (15)
CreateObject(3666,3270.1000977,-736.7000122,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (16)
CreateObject(3666,3270.8000488,-735.7000122,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (17)
CreateObject(3666,3271.3999023,-734.7999878,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (18)
CreateObject(3666,3269.0000000,-736.0999756,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (19)
CreateObject(3666,3268.0000000,-735.4000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (20)
CreateObject(3666,3266.8999023,-734.7999878,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (21)
CreateObject(3666,3265.6999512,-734.0999756,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (22)
CreateObject(3666,3266.3999023,-733.2999878,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (23)
CreateObject(3666,3267.1000977,-732.4000244,11.0000000,0.0000000,0.0000000,0.0000000); //object(airuntest_las) (24)
CreateObject(2985,3269.0000000,-734.4000244,10.3000002,0.0000000,0.0000000,185.9930420); //object(minigun_base) (13)
CreateObject(2985,3270.1000977,-735.0999756,10.3000002,0.0000000,0.0000000,185.9930420); //object(minigun_base) (14)
CreateObject(2985,3254.5000000,-763.9000244,10.3000002,0.0000000,0.0000000,119.9930725); //object(minigun_base) (15)
CreateObject(2985,3255.6000977,-764.5000000,10.3000002,0.0000000,0.0000000,119.9926758); //object(minigun_base) (17)
CreateObject(2985,3256.6999512,-765.0999756,10.3000002,0.0000000,0.0000000,119.9926758); //object(minigun_base) (18)
CreateObject(3754,3275.5000000,-756.9000244,15.1000004,0.0000000,0.0000000,329.7500000); //object(lamotsig1_la) (1)
CreateObject(7246,3141.3999023,-696.5999756,13.1999998,0.0000000,0.0000000,242.0000000); //object(vgs_roadsign03) (1)
CreateObject(8406,3334.6000977,-770.5999756,15.8000002,0.0000000,0.0000000,330.2500000); //object(carparksign01_lvs) (1)
CreateObject(14467,3278.1999512,-757.7999878,13.1000004,0.0000000,0.0000000,58.5000000); //object(carter_statue) (1)
CreateObject(16362,3349.8994141,-851.6992188,13.3999996,0.0000000,0.0000000,328.4967041); //object(desn2_tscanopy) (1)
CreateObject(16362,3254.5000000,-797.4000244,13.3999996,0.0000000,0.0000000,328.4967041); //object(desn2_tscanopy) (2)
CreateObject(982,3316.0000000,-759.4000244,11.0000000,0.0000000,0.0000000,59.2500305); //object(fenceshit) (3)
CreateObject(982,3295.3999023,-747.0999756,11.0000000,0.0000000,0.0000000,59.2492676); //object(fenceshit) (4)
CreateObject(982,3358.1000977,-784.0000000,11.0000000,0.0000000,0.0000000,59.2492676); //object(fenceshit) (5)
CreateObject(982,3374.6000977,-793.7999878,11.0000000,0.0000000,0.0000000,59.2492676); //object(fenceshit) (6)
CreateObject(4639,3346.7998047,-775.5996094,12.0000000,0.0000000,0.0000000,237.9968262); //object(paypark_lan02) (1)
CreateObject(4639,3328.6999512,-765.0000000,12.0000000,0.0000000,0.0000000,59.4968262); //object(paypark_lan02) (2)
CreateObject(10946,3346.0000000,-750.2999878,11.8999996,0.0000000,0.0000000,148.7438965); //object(fuuuuuuuck_sfs) (3)
CreateObject(16362,3391.1000977,-755.2000122,13.3999996,0.0000000,0.0000000,57.9967041); //object(desn2_tscanopy) (5)
CreateObject(16362,3356.6999512,-733.7000122,13.3999996,0.0000000,0.0000000,57.9913330); //object(desn2_tscanopy) (6)
CreateObject(16362,3322.3000488,-712.2000122,13.3999996,0.0000000,0.0000000,57.9913330); //object(desn2_tscanopy) (7)
CreateObject(16362,3370.0000000,-785.0999756,13.3999996,0.0000000,0.0000000,57.9913330); //object(desn2_tscanopy) (8)
CreateObject(16362,3311.6000977,-750.5000000,13.3999996,0.0000000,0.0000000,57.9913330); //object(desn2_tscanopy) (9)
CreateObject(10946,3396.3999023,-829.0000000,11.8999996,0.0000000,0.2500000,58.9938965); //object(fuuuuuuuck_sfs) (3)
CreateObject(2928,3266.3000488,-770.0000000,11.8000002,0.0000000,0.0000000,331.9968262); //object(a51_intdoor) (13)
CreateObject(2928,3266.3000488,-770.0000000,14.3000002,0.0000000,0.0000000,332.4968262); //object(a51_intdoor) (14)
CreateObject(2928,3283.5000000,-741.0000000,11.6000004,0.0000000,0.0000000,329.9968262); //object(a51_intdoor) (15)
CreateObject(2928,3282.8000488,-739.2999878,11.6000004,0.0000000,0.0000000,60.2463074); //object(a51_intdoor) (16)
CreateObject(2928,3283.5000000,-741.0000000,14.1000004,0.0000000,0.0000000,329.2433472); //object(a51_intdoor) (17)
CreateObject(2928,3282.8000488,-739.2999878,14.1000004,0.0000000,0.0000000,62.2382812); //object(a51_intdoor) (18)
CreateObject(2928,3273.8000488,-760.0999756,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (19)
CreateObject(2928,3272.6000977,-762.4000244,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (20)
CreateObject(2928,3271.3000488,-764.5000000,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (21)
CreateObject(2928,3270.0000000,-766.7999878,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (22)
CreateObject(2928,3269.1999512,-768.0999756,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (23)
CreateObject(2928,3277.5000000,-754.0000000,15.3000002,0.0000000,0.0000000,239.4968262); //object(a51_intdoor) (24)
CreateObject(2928,3276.1000977,-756.0999756,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (25)
CreateObject(2928,3275.1000977,-757.9000244,15.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (26)
CreateObject(2928,3278.8000488,-751.7000122,15.3000002,0.0000000,0.0000000,240.7468262); //object(a51_intdoor) (27)
CreateObject(2928,3280.1999512,-749.5000000,15.3000002,0.0000000,0.0000000,240.7434082); //object(a51_intdoor) (28)
CreateObject(2928,3281.3999023,-747.2000122,15.3000002,0.0000000,0.0000000,240.7434082); //object(a51_intdoor) (29)
CreateObject(2928,3281.8999023,-746.2999878,15.3000002,0.0000000,0.0000000,240.7434082); //object(a51_intdoor) (30)
CreateObject(2928,3264.6999512,-770.7999878,11.8000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (32)
CreateObject(2928,3264.6999512,-770.7999878,14.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (34)
CreateObject(2928,3263.3999023,-773.0000000,11.8000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (35)
CreateObject(2928,3263.3999023,-773.0000000,14.3000002,0.0000000,0.0000000,237.9968262); //object(a51_intdoor) (36)
CreateObject(2928,3283.8999023,-737.0999756,11.6000004,0.0000000,0.0000000,60.2435303); //object(a51_intdoor) (37)
CreateObject(2928,3283.8999023,-737.0999756,14.1000004,0.0000000,0.0000000,62.2375488); //object(a51_intdoor) (38)
CreateObject(3605,3301.0996094,-823.3994141,16.3999996,0.0000000,0.0000000,328.5681152); //object(bevman3_law2) (1)
CreateObject(3605,3301.1000977,-823.4000244,16.3999996,0.0000000,0.0000000,328.5712891); //object(bevman3_law2) (2)
CreateObject(3605,3375.1999512,-865.5999756,16.3999996,0.0000000,0.0000000,328.5681152); //object(bevman3_law2) (1)
CreateObject(3605,3417.8000488,-794.2000122,16.3999996,0.0000000,0.0000000,148.5681152); //object(bevman3_law2) (1)
CreateObject(16362,3410.1999512,-839.0000000,13.3999996,0.0000000,0.0000000,328.4967041); //object(desn2_tscanopy) (1)
CreateObject(1300,3345.3000488,-777.7999878,10.6999998,0.0000000,0.0000000,330.0000000); //object(bin1) (1)
CreateObject(1300,3327.3999023,-767.4000244,10.6999998,0.0000000,0.0000000,330.0000000); //object(bin1) (2)
gate = CreateObject(2951,3281.0000000,-747.5999756,10.3000002,0.0000000,0.0000000,60.7500000);
gate1 = CreateObject(2951,3278.1999512,-752.5000000,10.3000002,0.0000000,0.0000000,60.7489014);
gate2 = CreateObject(2951,3273.0000000,-761.5000000,10.3000002,0.0000000,0.0000000,60.7489014);
gate3 = CreateObject(2951,3270.1999512,-766.4000244,10.3000002,0.0000000,0.0000000,60.7489014);
// Timers
SetTimer("GateCheck", 800, true);
SetTimer("GateCheck2", 800, true);
SetTimer("Island", 800, true);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
forward Callback(parameters);
public Callback(parameters)
{
return 1;
}
forward GateCheck();
public GateCheck()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 5,3279.6729,-749.7335,11.3000))
{
if(IsPlayerAdmin(i))
{
if(gateopen == false)
{
MoveObject(gate,3283.6999512,-742.7999878,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
MoveObject(gate1,3275.3000488,-757.5000000,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
gateopen = true;
}
return;
}
}
}
if(gateopen == true)
{
MoveObject(gate,3281.0000000,-747.5999756,10.3000002,5.0,0.0000000,0.0000000,60.7500000);
MoveObject(gate1,3278.1999512,-752.5000000,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
gateopen = false;
}
}
forward GateCheck2();
public GateCheck2()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 5,3271.9263,-764.3052,11.3299))
{
if(IsPlayerAdmin(i))
{
if(gateopen2 == false)
{
MoveObject(gate2,3275.3000488,-757.5000000,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
MoveObject(gate3,3268.0000000,-770.5000000,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
gateopen2 = true;
}
return;
}
}
}
if(gateopen2 == true)
{
MoveObject(gate2,3273.0000000,-761.5000000,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
MoveObject(gate3,3270.1999512,-766.4000244,10.3000002,5.0,0.0000000,0.0000000,60.7489014);
gateopen2 = false;
}
}
forward Island();
public Island()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 200,3325.3952636719,-789.79046630859,11.300000190735))
{
if(IsPlayerAdmin(i))
{
new playerid;
SendClientMessage(playerid,0x0080FFFF,"Welcome to Admin Island :D Injoy...");
}
else
{
new playerid;
SendClientMessage(playerid,0x0080FFFF,"Get out of here you're not admin or be killed");
SetTimer("Kill", 10, false);
}
}
}
return 1;
}
forward Kill();
public Kill()
{
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,0x0080FFFF,"You are killed by !!! Admin Island !!!");
return;
}
}