if(strcmp(cmd,"/tgtor",true) == 0)
{
{
if(IsPlayerInFrac(playerid,18))
{
if(tgtor1var == 0)
{
MoveObject(tgtor1, 1669.9000244141, -1547.0999755859, 5.199999809265, 3, 0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
tgtor1var = 1;
}
else
{
MoveObject(tgtor1, 1669.9000244141, -1547.0999755859, 15.199999809265, 3, 0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
tgtor1var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Gang!");
return 1;
}
}
if(strcmp(cmd,"/tgtor2",true) == 0)
{
{
if(IsPlayerInFrac(playerid,18))
{
if(tgtor2var == 0)
{
MoveObject(tgtor2, 1669.4000244141, -1479.8000488281, 5.199999809265, 3, 0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
tgtor2var = 1;
}
else
{
MoveObject(tgtor2, 1669.4000244141, -1479.8000488281, 15.199999809265, 3, 0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
tgtor2var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Gang!");
return 1;
}
}
new tgtor1;
new tgtor1var;
new tgtor2;
new tgtor2var;
tgtor1 = CreateObject(980, 1669.9000244141, -1547.0999755859, 15.199999809265, 0, 0, 90);
tgtor2 = CreateObject(980, 1669.4000244141, -1479.8000488281, 15.199999809265, 0, 0, 90);
also das Tor geht runter aber irgendwie bleibt das da noch stehen