Das tor geht irgendwie nicht auf bitte hilfe!
if(strcmp(cmd,"/oamt1", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
if(oamttor1var == 0)
{
MoveObject(oamttor1, 867.3994140625, -1256.69921875, 14, 0,-10,5);
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
oamttor1var = 1;
}
else
{
MoveObject(oamttor1, 867.3994140625, -1256.69921875, 14, 0,10,5);
SendClientMessage(playerid, COLOR_RED, "Tor geschlossen!");
oamttor1var = 0;
}
return 1;
}
}