Danke habe es bekommen CLOSED
Gates bewegen
- Abgehn
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
-
Ich kann dir automatische machen enn du Teamviewer hast.
-
Silverdark echt danke aber kannste das bitte bearbeiten das es nicht jeder hat pls danke sehr
-
Hallo ich hab nen problem undzwar ich lade das filterscript hoch und dan kann ich keine befehle mehr eingeben /login <passwort>
Es geht netmehr bitte helfen -
-
danke ich brubir aus
-
Hier ist mal mein Filterscript den ich mal gemach habe. Es sind auch gates enthalten, die man bewegen kann.
Man kann es auch hier downloaden: http://rapidshare.com/files/176160686/New-LSPD.rar
//Script wurde gemacht von Lion
//Nicht die Credits löschen !!! Bei weitergabe meinen Namen erwähnen !
//Der Script darf bei bedarf abgeändert werden#include <a_samp>
#define FARBE_GELB 0xFFFF00AA
#define FARBE_ROT 0xAA3333AAforward Tor1Schliessen();
forward Tor2Schliessen();
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);new Tor1;
new Tor2;public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" New LSPD ");
print(" Created by Lion ");
print("--------------------------------------\n");CreateObject(971,1539.59,-1636.25,15.928,0.0,0.0,90.0);
CreateObject(971,1539.59,-1645.11,15.928,0.0,0.0,90.0);
CreateObject(971,1544.07,-1649.50,15.928,0.0,0.0,0.0);
CreateObject(971,1539.67,-1610.79,15.928,0.0,0.0,90.0);
CreateObject(971,1539.67,-1606.82,15.928,0.0,0.0,90.0);
CreateObject(971,1544.10,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1552.96,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1561.81,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1570.67,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1579.53,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1588.39,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1597.25,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1603.58,-1602.38,15.928,0.0,0.0,180.0);
CreateObject(971,1608.03,-1606.85,15.928,0.0,0.0,270.0);
CreateObject(971,1608.03,-1615.70,15.928,0.0,0.0,270.0);
CreateObject(971,1608.03,-1624.55,15.928,0.0,0.0,270.0);
CreateObject(971,1608.03,-1633.41,15.928,0.0,0.0,270.0);
CreateObject(971,1603.59,-1637.82,15.928,0.0,0.0,0.0);
CreateObject(971,1539.67,-1614.24,15.928,0.0,0.0,90.0);
CreateObject(974,1593.41,-1638.37,13.0703,0.0,90.0,0.0);
CreateObject(985,1539.678,-1620.155,14.01,0,360,270);Tor1 = CreateObject(971,1539.670,-1628.510,15.928,0.0,0.0,-89.141);
Tor2 = CreateObject(971,1586.284,-1638.433,15.964,0.0,0.0,177.903);AddStaticVehicle(596,1538.6652,-1645.8053,5.6111,180.0477,86,15);
AddStaticVehicle(596,1534.5525,-1645.8318,5.6120,179.5707,86,15);
AddStaticVehicle(596,1530.5320,-1645.7128,5.6109,180.0989,86,15);
AddStaticVehicle(596,1526.5253,-1645.8828,5.6112,180.2685,86,15);
AddStaticVehicle(427,1544.8344,-1651.2209,6.0225,89.7265,86,15);
AddStaticVehicle(427,1544.8445,-1654.9604,6.0226,89.5835,86,15);
AddStaticVehicle(427,1544.7744,-1658.9375,6.0226,88.9458,86,15);
AddStaticVehicle(427,1544.6775,-1663.1255,6.0225,88.7269,86,15);
AddStaticVehicle(427,1544.9531,-1667.8678,6.0224,89.0007,86,15);
AddStaticVehicle(427,1544.8413,-1672.0220,6.0226,88.7397,86,15);
AddStaticVehicle(427,1544.7749,-1675.9979,6.0225,89.9724,86,15);
AddStaticVehicle(601,1545.0646,-1680.3611,5.6494,90.6127,85,15);
AddStaticVehicle(601,1545.6511,-1684.3789,5.6494,91.4527,85,15);
AddStaticVehicle(597,1558.9303,-1711.1743,5.6584,358.8276,86,15);
AddStaticVehicle(490,1595.5826,-1711.2386,6.0174,358.7816,86,86);
AddStaticVehicle(490,1591.1503,-1711.2245,6.0192,0.1862,86,86);
AddStaticVehicle(599,1600.6221,-1704.2115,6.0814,91.1492,86,15);
AddStaticVehicle(599,1600.5972,-1700.0942,6.0784,89.8999,86,15);
AddStaticVehicle(599,1600.7118,-1695.9304,6.0774,89.5456,86,15);
AddStaticVehicle(599,1600.9093,-1692.0886,6.0798,88.6976,86,15);
AddStaticVehicle(599,1601.1238,-1687.8362,6.0827,89.1279,86,15);
AddStaticVehicle(599,1601.2595,-1683.9246,6.0808,88.8486,86,15);
AddStaticVehicle(601,1587.5006,-1711.1556,5.6494,0.7794,15,15);
AddStaticVehicle(601,1583.5101,-1711.1729,5.6494,0.4793,15,15);
AddStaticVehicle(427,1574.3253,-1710.2892,6.0225,0.3036,86,15);
AddStaticVehicle(427,1570.4272,-1710.3088,6.0225,0.1198,86,15);
AddStaticVehicle(432,1564.4272,-1710.7094,5.9027,359.1027,15,15);
AddStaticVehicle(416,1586.5719,-1677.8480,6.0462,322.3447,6,1);
AddStaticVehicle(528,1586.2675,-1671.6090,5.9372,268.6582,0,1);
AddStaticVehicle(528,1585.9574,-1667.6625,5.9362,268.9304,0,1);
AddStaticVehicle(528,1601.1064,-1679.9521,5.9343,89.6276,0,1);
AddStaticVehicle(523,1603.4496,-1675.5343,5.4613,39.2545,0,1);
AddStaticVehicle(596,1535.8270,-1677.6339,13.1031,0.0582,86,15);
AddStaticVehicle(596,1575.3622,-1614.3837,13.1031,178.8987,86,15);
AddStaticVehicle(596,1572.1152,-1614.3766,13.1039,179.9066,86,15);
AddStaticVehicle(596,1569.0621,-1614.4615,13.1037,181.3658,86,15);
AddStaticVehicle(596,1565.8510,-1614.4250,13.1026,180.4674,86,15);
AddStaticVehicle(596,1562.8546,-1614.3978,13.1038,180.1527,86,15);
AddStaticVehicle(596,1559.6940,-1614.3954,13.1043,180.0638,86,15);
AddStaticVehicle(596,1556.4446,-1614.3270,13.1042,180.0386,86,15);
AddStaticVehicle(596,1553.0522,-1614.2693,13.1041,179.6846,86,15);
AddStaticVehicle(596,1578.7461,-1709.7122,5.6112,358.4579,86,15);
AddStaticVehicle(560,-1953.5524,258.8382,35.1338,75.0687,1,0);
AddStaticVehicle(565,-1956.0359,274.1141,35.0419,66.1265,1,53);
AddStaticVehicle(561,-1955.4431,299.1432,35.2496,79.2933,1,17);
}//Falls die Tore nur von bestimmten Person, hier in meinem Beispiel "TEAM_POLIZEI" bedient werden sollen,
//müssen einfach die "//" vor den Zeilen gelöscht werden.
//Zu beachten ist, dass der Befehl "gTeam" eventuell noch mit dem Gamemode abgestimmt werden muss !!!public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/tor1", true)==0)
{
if(PlayerToPoint(15, playerid,1540.2122,-1628.6212,13.3828))
{
// if(gTeam[playerid] == TEAM_POLIZEI)
// {
MoveObject(Tor1,1539.670,-1628.510,15.928, 3.5);
MoveObject(Tor1,1539.567,-1637.498,16.035, 3.5);
SetTimer("Tor1Schliessen", 5000, 0);
SendClientMessage(playerid, FARBE_GELB,"Beeile dich !!! Das Tor schließt sich in 5 Sekunden");
return 1;
// }
// else
// {
// SendClientMessage(playerid, FARBE_ROT,"Du bist kein Polizist !!!");
// return 1;
// }
}
else
{
SendClientMessage(playerid, FARBE_ROT, "Du bist nicht nah genug am Tor !");
}
}if (strcmp(cmdtext, "/tor2", true)==0)
{
if(PlayerToPoint(15, playerid,1587.3860,-1637.9185,13.3995))
{
// if(gTeam[playerid] == TEAM_POLIZEI)
// {
MoveObject(Tor2,1586.284,-1638.433,15.964, 3.5);
MoveObject(Tor2,1576.977,-1638.293,15.929, 3.5);
SetTimer("Tor2Schliessen", 5000, 0);
SendClientMessage(playerid, FARBE_GELB,"Beeile dich !!! Das Tor schließt sich in 5 Sekunden");
return 1;
// }
// else
// {
// SendClientMessage(playerid, FARBE_ROT,"Du bist kein Polizist !!!");
// return 1;
// }
}
else
{
SendClientMessage(playerid, FARBE_ROT, "Du bist nicht nah genug am Tor !");
}
}
return 1;
}public Tor1Schliessen()
{
MoveObject(Tor1,1539.567,-1637.498,16.035, 3.5);
MoveObject(Tor1,1539.670,-1628.510,15.928, 3.5);
return 1;
}public Tor2Schliessen()
{
MoveObject(Tor2,1576.977,-1638.293,15.929, 3.5);
MoveObject(Tor2,1586.284,-1638.433,15.964, 3.5);
return 1;
}public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
} -
breadfish.de
Hat das Thema geschlossen.