Hallo wie füge ich den filterscript hier...
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new y_gate;
public OnFilterScriptInit()
{CreateObject(1684, 824.119934, -1834.153320, 13.069763, 0.0000, 0.0000, 360.0000);
CreateObject(1684, 848.804565, -1834.385498, 12.976656, 0.0000, 0.0000, 0.0000);
CreateObject(9623, 836.681580, -1842.893311, 14.415219, 0.0000, 0.0000, 0.0000);
AddStaticVehicle(432,848.5007,-2056.4290,12.8911,89.2728,0,0); //
AddStaticVehicle(432,848.5089,-2050.5977,12.9016,89.6423,43,0); //
AddStaticVehicle(433,847.6479,-2039.3992,13.2938,90.6921,43,0); //
AddStaticVehicle(433,847.8966,-2035.0530,13.3465,88.6693,43,0); //
AddStaticVehicle(470,848.2187,-2031.2402,12.8600,89.5424,43,0); //
AddStaticVehicle(470,848.1216,-2027.0566,12.8580,89.4611,43,0); //
AddStaticVehicle(471,849.5718,-2042.4751,12.3476,88.7758,120,113); //
AddStaticVehicle(471,849.4443,-2044.7155,12.3491,91.9350,120,117); //
AddStaticVehicle(520,847.1396,-2010.4507,13.6206,94.9345,0,0); //
AddStaticVehicle(522,847.5651,-2024.0438,12.4398,90.5258,7,79); //
AddStaticVehicle(522,847.5501,-2022.4180,12.4405,85.8836,36,105); //
AddStaticVehicle(525,848.3598,-2018.8285,12.7439,93.6221,36,43); //
AddStaticVehicle(528,850.0544,-2003.8496,12.9099,89.0295,0,0); //
AddStaticVehicle(539,850.0480,-2061.1599,12.2272,91.9639,70,86); //
AddStaticVehicle(548,847.5917,-1994.1929,14.5189,95.8910,1,1); //
AddStaticVehicle(556,822.3979,-2043.2081,13.2427,269.5538,1,1); //
y_gate = CreateObject(969, 828.070068, -1837.711304, 12.112743, 0.0000, 0.0000, 0.0000);
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
if (strcmp(cmdtext, "/m1open", true) == 0){
MoveObject(y_gate,827.885071, -1838.381226, 17.202259,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
return 1;
}
if (strcmp(cmdtext, "/m1close", true) == 0){
MoveObject(y_gate,828.070068, -1837.711304, 12.112743,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
return 1;
}
return 0;
}
Und den hier zusammen.
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new y_gate;
public OnFilterScriptInit()
{
y_gate = CreateObject(969, 836.911926, -1837.723633, 12.105799, 0.0000, 0.0000, 0.0000);
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/m1open", true) == 0){
MoveObject(y_gate,836.868469, -1838.381226, 17.201031,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
return 1;
}
if (strcmp(cmdtext, "/m1close", true) == 0){
MoveObject(y_gate,836.911926, -1837.723633, 12.105799,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Yakuza Gelände!");
return 1;
}
return 0;
}