10.06.2012, 20:20
Hello guys i want to release my simple map that i use for my server. The script is called "adming" which stays for Admin Gates. I use this for my admin house at vinewood. The script does require streamer plugin. Enjoy !
pawn Код:
#include <a_samp>
#include <streamer>
new agate[2];
public OnFilterScriptInit()
{
CreateDynamicObject(987,1508.59997559,-699.75000000,94.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (8)
CreateDynamicObject(987,1519.30004883,-699.75000000,94.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (9)
CreateDynamicObject(987,1531.19995117,-699.79998779,94.40000153,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (10)
CreateDynamicObject(987,1531.19995117,-687.79998779,94.40000153,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (11)
CreateDynamicObject(987,1531.19995117,-675.79998779,94.40000153,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (12)
CreateDynamicObject(987,1531.19995117,-668.79998779,94.40000153,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (13)
CreateDynamicObject(987,1531.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (14)
CreateDynamicObject(987,1519.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (15)
CreateDynamicObject(987,1507.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (16)
CreateDynamicObject(987,1495.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (17)
CreateDynamicObject(987,1483.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (18)
CreateDynamicObject(987,1471.19995117,-657.00000000,94.40000153,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (19)
CreateDynamicObject(987,1468.40002441,-657.00000000,94.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (20)
CreateDynamicObject(987,1456.50000000,-657.00000000,94.40000153,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (21)
CreateDynamicObject(987,1456.50000000,-669.00000000,94.40000153,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (22)
CreateDynamicObject(987,1456.50000000,-681.00000000,94.40000153,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (23)
CreateDynamicObject(987,1456.50000000,-682.00000000,94.40000153,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (24)
CreateDynamicObject(987,1456.40002441,-694.00000000,94.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (25)
CreateDynamicObject(987,1468.40002441,-694.00000000,94.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (26)
agate[0] = CreateDynamicObject(987,1496.59997559,-699.75000000,93.80000305,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) gate
agate[1] = CreateDynamicObject(987,1484.59997559,-699.75000000,93.80000305,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) gate
CreateDynamicObject(987,1474.69995117,-694.09997559,93.40000153,0.00000000,0.00000000,333.00000000); //object(elecfence_bar)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/ao"))
{
MoveDynamicObject(agate[0], 1496.59997559,-699.75000000,86.80000305, 1);
MoveDynamicObject(agate[1], 1484.59997559,-699.75000000,86.80000305, 1);
return 1;
}
if(!strcmp(cmdtext, "/ac", true))
{
MoveDynamicObject(agate[0], 1496.59997559,-699.75000000,93.40000153, 2);
MoveDynamicObject(agate[1], 1484.59997559,-699.75000000,93.40000153, 2);
return 1;
}
return 0;
}