Hallo ihr BrotFische,
habt ihr eine ahnung warum dass hier nicht funzt:
#include <a_samp>
#if defined FILTERSCRIPT
#define FILTERSCRIPT
#define green 0x4DE300FF
new triggersgarage;
new MeinHaus;
new pname[MAX_PLAYER_NAME];
new Sanchez1;
new Sanchez2;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Player Gates");
print("--------------------------------------\n");
Sanchez1 = CreateObject(985,572.32135009766,-2620.8657226563,2.1296491622925,0, 0, 270.27026367188);
Sanchez2 = CreateObject(986,572.29956054688,-2612.9375,2.1296539306641,0,0,270.22509765625);
triggersgarage = CreateObject(980,837.38641357422, -2634.8374023438, 4.0692591667175,0.0000, 0.0000,90.8073);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/triggero", true) == 0)
{
GetPlayerName(playerid,pname,sizeof(pname));
if(!strcmp(pname,"[LSR]Trigger",true))
{
MoveObject(triggersgarage,837.3857421875, -2634.8369140625, 7.8192596435547,2);
SendClientMessage(playerid,green," Trigger, deine Garage ist offen");
}
return 1;
}
if(strcmp(cmdtext, "/triggerc", true) == 0)
{
GetPlayerName(playerid,pname,sizeof(pname));
if(!strcmp(pname,"[LSR]Trigger",true))
{
MoveObject(triggersgarage,837.3857421875, -2634.8369140625, 4.8192596435547,2);
SendClientMessage(playerid,green," Trigger, deine Garage ist offen");
}
if(strcmp(cmdtext, "/sano", true) == 0)
{
GetPlayerName(playerid,pname,sizeof(pname));
if(!strcmp(pname,"[LSR]Sanchez",true))
{
MoveObject(Sanchez1,572.298828125,-2605.9375,2.1296491622925,3);
MoveObject(Sanchez2,572.298828125,-2627.865234375,2.1296491622925,3);
SendClientMessage(playerid,green,", deine Garage ist offen");
}
return 1;
}
if(strcmp(cmdtext, "/sanc", true) == 0)
{
GetPlayerName(playerid,pname,sizeof(pname));
if(!strcmp(pname,"[LSR]Sanchez",true))
{
MoveObject(Sanchez1,572.32135009766,-2620.8657226563,2.1296491622925,2);
MoveObject(Sanchez2,572.29956054688,-2612.9375,2.1296539306641,2);
SendClientMessage(playerid,green,"deine Garage ist offen");
}
return 1;
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
die gates sind gar nicht erst da