lspdtor2 = CreateObject(985, 1544.6745605469, -1623.544921875, 14.065814971924, 0, 0, 90);
lspdtor1 = CreateObject(986, 1544.6856689453, -1631.4421386719, 14.082820892334, 0, 0, 90);
lspdtor3 = CreateObject(2933, 1588.5185546875, -1637.9149169922, 14.508417129517, 0, 0, 180);
if(strcmp(cmdtext,"/mv",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,1544.6856689453,1627.5,14))
{
MoveObject(lspdtor1,1544.6856689453,-1637.44140625,10,5.0);
MoveObject(lspdtor2,1544.6856689453,-1618.0437011719,10,5.0);
SetTimer("lspdtore1",3000,0);
}
else if(IsPlayerInRangeOfPoint(playerid,10.0,1544.6856689453,1627.5,16))
{
MoveObject(lspdtor3,1596.7685546875,-1638.0067138672,14.508417129517,5.0);
SetTimer("lspdtore2",3000,0);
}
return 1;
}
public lspdtore1(playerid)
{
MoveObject(lspdtor1,1544.6856689453,-1631.4421386719,14.082820892334,5.0);
MoveObject(lspdtor2,1544.6745605469,-1623.544921875,14.065814971924,5.0);
return 1;
}
public lspdtore2(playerid)
{
MoveObject(lspdtor3,1588.5185546875,-1637.9149169922,14.508417129517,5.0);
return 1;
}
warum gehen meine tore nicht auf?