Moin leute mein tor geht runter aber es geht nich mich mehr hoch weiß einer wieso
new tertor;
}
else if(IsPlayerInRangeOfPoint(playerid,5.0,1753.8046, 2083.0930, 11.7814))
{
if(PlayerInfo[playerid][pLeader] == 20 PlayerInfo[playerid][pMember] == 20 )
{
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
MoveDynamicObject(tertor,-302.1973, 1507.8628, 77.2728-10, 3.0);
SetTimer("CloseTertor", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Das Tor ist offen. Beeil dich es schließt in 5 Sekunden");
}
else
{
SendClientMessage(playerid, ROT, "* Du bist nicht berechtigt dieses Tor zu öffnen!");
return 1;
}
tertor = CreateDynamicObject(980, -302.19727, 1507.86279, 77.27282, 0.00000, 0.00000, 179.96541);
}
if(strcmp(cmd,"/tertor", true) == 0)
{
if(IsPlayerInFrac(playerid, 20))
{
if(IsPlayerInRangeOfPoint(playerid,5.0,-302.1973, 1507.8628, 77.2728))
{
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
MoveDynamicObject(tertor, -302.1973, 1507.8628, 77.2728-10, 3.0);
SetTimer("CloseTertor", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Das Tor Schließt in 5 Sekunden!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist nicht befugt das Tor zu öffnen.");
}
return 1;
Function CloseTertor()
{
MoveDynamicObject(tertor, -302.1973, 1507.8628, 71.5320, 3.0);
return 1;
}