Public
forward gate();
public gate()
{
MoveObject(tgate,-302.20001220703, 1507.8000488281, 77.099998474121,2);
return 1;
}
Befehl
if(strcmp("/auf", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5,-302.20001220703, 1507.8000488281, 77.099998474121))
{
MoveObject(tgate,-302.20001220703-10, 1507.8000488281, 77.099998474121,2);
SetTimer("tgate",5000,0);
SendClientMessage(playerid,Rot,"Das Tor wird sich nach 5 Sekunden automatisch schließen!");
return 1;
}
}