Hey Leute,
Ich habe ein Problem und zwa bewegt sich mein tor nicht
Hier der code:
new AdminTor;
AdminTor = CreateObject(980,1268.0000000,-1842.3000500,15.2000000,0.0000000,0.0000000,0.0000000); //tor
forward AdminTorTimer();
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 32)
{
if(pDuty[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,30.00,1268.1267,-1842.6917,13.3968))
if(!IsPlayerInRangeOfPoint(playerid,7.00,1268.1267,-1842.6917,13.3968))return SendClientMessage(playerid,FRot,"{FFFFFF}*{FF0000} Fehler: Du bist nicht in der Reichweite des Tores!");
MoveObject(AdminTor,1268.0000000,-0842.3000500,15.2000000,0.0000000,0.0000000,0.0000000);
SetTimer("AdminTorTimer",5000,0);
}
}
return 1;
}
public AdminTorTimer()
{
MoveObject(AdminTor,1268.0000000,-1842.3000500,15.2000000,0.0000000,0.0000000,0.0000000);
return 1;
}
Ich bedanke mich für eure hilfe
Fg [GEC]Der_Elite