Hali, nagyon unatkoztam, ezért mappoltam egy \"KISVASUTAT\"
Aztán beszkripteltem, hogy menjen
Nagyon egyszerü kis szkript, de szerintem tök jó
Képek:
Akinek nem jelennek meg:
http://bpvkv.atw.hu/kisvasut/sa-mp-027.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-028.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-029.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-030.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-031.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-032.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-033.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-034.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-035.pnghttp://bpvkv.atw.hu/kisvasut/sa-mp-036.pngKoordináta: Benne a kódban (/kisvasut parancs)
Kód:
new VonatObject[48];
new asd;
#include
public OnFilterScriptInit()
{
CreateObject(11342,3343.3000500,-468.6000100,6.6000000,0.0000000,0.0000000,0.0000000); //object(southtunnel_03_sfs) (1)
CreateObject(5772,3344.8000500,-156.0000000,10.4000000,0.0000000,0.0000000,359.9000000); //object(railtunn01_lawn) (1)
CreateObject(9166,3346.0000000,-679.2000100,7.5000000,0.0000000,0.0000000,180.0000000); //object(vgsrailbuild04) (1)
CreateObject(11342,3341.6999500,-296.0000000,6.6000000,0.0000000,0.0000000,0.0000000); //object(southtunnel_03_sfs) (2)
CreateObject(5772,3349.2998000,-607.2998000,10.4000000,0.0000000,0.0000000,359.8960000); //object(railtunn01_lawn) (2)
CreateObject(9166,3339.6999500,-85.2000000,7.0000000,0.0000000,0.0000000,0.0000000); //object(vgsrailbuild04) (2)
VonatObject[0] = CreateObject(1389,3342.3000500,-111.0000000,3.7000000,0.0000000,0.0000000,0.0000000); //object(twrcrane_s_01) (1)
VonatObject[1] = CreateObject(1389,3342.3999000,-116.3000000,3.7000000,0.0000000,0.0000000,0.0000000); //object(twrcrane_s_01) (2)
VonatObject[2] = CreateObject(2395,3341.0000000,-112.0000000,4.2000000,270.0000000,0.0000000,0.0000000); //object(cj_sports_wall) (1)
VonatObject[3] = CreateObject(2395,3341.0000000,-114.7000000,4.2000000,270.0000000,0.0000000,0.0000000); //object(cj_sports_wall) (2)
VonatObject[4] = CreateObject(2395,3341.0000000,-117.4000000,4.2000000,270.0000000,0.0000000,0.0000000); //object(cj_sports_wall) (3)
VonatObject[5] = CreateObject(970,3340.5000000,-111.3000000,4.7000000,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (1)
VonatObject[6] = CreateObject(970,3342.2998000,-117.3994100,4.7000000,0.0000000,0.0000000,0.0000000); //object(fencesmallb) (2)
VonatObject[7] = CreateObject(970,3342.3994100,-109.2998000,4.7000000,0.0000000,0.0000000,0.0000000); //object(fencesmallb) (3)
VonatObject[8] = CreateObject(970,3340.5000000,-115.4000000,4.7000000,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (4)
VonatObject[9] = CreateObject(970,3344.1999500,-113.3000000,4.7000000,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (5)
VonatObject[10] = CreateObject(2753,3340.8999000,-113.4000000,5.2000000,0.0000000,0.0000000,270.0000000); //object(cj_ff_till_que) (1)
VonatObject[11] = CreateObject(2169,3341.0000000,-113.9000000,4.2000000,0.0000000,0.0000000,90.0000000); //object(med_office3_desk_1) (1)
VonatObject[12] = CreateObject(2122,3343.8999000,-115.1000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (1)
VonatObject[13] = CreateObject(2122,3343.8999000,-114.7000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (2)
VonatObject[14] = CreateObject(2122,3343.8999000,-114.3000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (3)
VonatObject[15] = CreateObject(2122,3343.8999000,-113.9000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (4)
VonatObject[16] = CreateObject(2122,3343.8999000,-113.5000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (5)
VonatObject[17] = CreateObject(2122,3343.8999000,-113.1000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (6)
VonatObject[18] = CreateObject(2122,3343.8999000,-112.7000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (7)
VonatObject[19] = CreateObject(2122,3343.8999000,-112.3000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (
VonatObject[20] = CreateObject(2122,3343.8999000,-111.9000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (9)
VonatObject[21] = CreateObject(2122,3343.8999000,-111.5000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (10)
VonatObject[22] = CreateObject(2122,3341.6999500,-117.1000000,4.7000000,0.0000000,0.0000000,270.0000000); //object(swank_din_chair_3) (11)
VonatObject[23] = CreateObject(2122,3340.7998000,-117.0996100,4.7000000,0.0000000,0.0000000,269.9950000); //object(swank_din_chair_3) (12)
VonatObject[24] = CreateObject(2122,3341.2998000,-117.0996100,4.7000000,0.0000000,0.0000000,269.9950000); //object(swank_din_chair_3) (13)
VonatObject[25] = CreateObject(2122,3342.1001000,-117.1000000,4.7000000,0.0000000,0.0000000,269.9950000); //object(swank_din_chair_3) (14)
VonatObject[26] = CreateObject(2122,3342.5000000,-117.1000000,4.7000000,0.0000000,0.0000000,269.9950000); //object(swank_din_chair_3) (15)
VonatObject[27] = CreateObject(2122,3340.8000500,-117.1000000,4.7000000,0.0000000,0.0000000,180.0000000); //object(swank_din_chair_3) (16)
VonatObject[28] = CreateObject(2122,3340.8000500,-115.1000000,4.7000000,0.0000000,0.0000000,180.0000000); //object(swank_din_chair_3) (17)
VonatObject[29] = CreateObject(2122,3340.7998000,-116.6992200,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (18)
VonatObject[30] = CreateObject(2122,3340.7998000,-116.2998000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (19)
VonatObject[31] = CreateObject(2122,3340.7998000,-115.8994100,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (20)
VonatObject[32] = CreateObject(2122,3340.7998000,-115.5000000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (21)
VonatObject[33] = CreateObject(2122,3340.8000500,-114.7000000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (23)
VonatObject[34] = CreateObject(2122,3340.7998000,-109.5996100,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (24)
VonatObject[35] = CreateObject(2122,3340.7998000,-110.0000000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (25)
VonatObject[36] = CreateObject(2122,3340.7998000,-110.3994100,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (26)
VonatObject[37] = CreateObject(2122,3340.7998000,-110.7998000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (27)
VonatObject[38] = CreateObject(2122,3340.7998000,-111.1992200,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (28)
VonatObject[39] = CreateObject(2122,3340.7998000,-111.5996100,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (29)
VonatObject[40] = CreateObject(2122,3340.7998000,-112.0000000,4.7000000,0.0000000,0.0000000,179.9950000); //object(swank_din_chair_3) (30)
VonatObject[41] = CreateObject(2122,3340.8000500,-109.6000000,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (31)
VonatObject[42] = CreateObject(2122,3341.1992200,-109.5996100,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (33)
VonatObject[43] = CreateObject(2122,3341.5996100,-109.5996100,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (34)
VonatObject[44] = CreateObject(2122,3342.0000000,-109.5996100,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (35)
VonatObject[45] = CreateObject(2122,3342.3994100,-109.5996100,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (36)
VonatObject[46] = CreateObject(2122,3342.7998000,-109.5996100,4.7000000,0.0000000,0.0000000,90.0000000); //object(swank_din_chair_3) (37)
VonatObject[47] = CreateObject(2122,3341.8000500,-113.4000000,4.7000000,0.0000000,0.0000000,0.0000000); //object(swank_din_chair_3) (39)
print(\"\\n--------------------------------------\");
print(\" Kisvasút by Peti134 aka Wiliam Levy\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
for(new i; i < MAX_OBJECTS; i++)
{
DestroyObject(VonatObject);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/asd\", cmdtext, true, 10) == 0)
{
if(asd == 1)
{
for(new i; i < MAX_OBJECTS; i++)
{
if(IsObjectMoving(VonatObject)) return SendClientMessage(playerid,-1,\"A kisvasút már mozog!\");
new Float:vx,Float:vy,Float:vz,Float:newy;
GetObjectPos(VonatObject,vx,vy,vz);
MoveObject(VonatObject,vx-5.0,vy+525.0,vz,15);
asd = 0;
}
}
else
{
for(new i; i < MAX_OBJECTS; i++)
{
if(IsObjectMoving(VonatObject)) return SendClientMessage(playerid,-1,\"A kisvasút már mozog!\");
new Float:vx,Float:vy,Float:vz,Float:newy;
GetObjectPos(VonatObject,vx,vy,vz);
MoveObject(VonatObject,vx+5.0,vy-525.0,vz,15);
asd = 1;
}
}
return 1;
}
if (strcmp(\"/kisvasut\", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,3342.3994100,-109.2998000,6.0);
return 1;
}
return 0;
}