Hallo liebe Community,
ich habe folgendes Problem. Undzwar möchte ich alle Cop Tore mit der Taste Z öffnen lassen.
Leider funktioniert das ganze nicht. In Pawno bekomm ich auch keine Errors.
Ingame passiert einfach nichts. Hier mein Code
if(newkeys & KEY_YES)
{
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,2237.831787, 2450.287842, 9.971788))
{
MoveDynamicObject(FBIEingangTor,2237.849854, 2458.842041, 10.011017, 3.5);
SetProTimer("FBIEingangTor1", 9000, 0);
}
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,2293.852295, 2500.680908, 5.106819))
{
MoveDynamicObject(FBIGarageTorA,2293.852295, 2508.680908, 5.106819, 3.5);
SetProTimer("FBIGarageTorA1", 9000, 0);
}
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,2334.016357, 2442.365723, 7.487854))
{
MoveDynamicObject(FBIGarageTorB,2334.016357, 2442.365723, 13.000000, 3.5);
SetProTimer("FBIGarageTorB1", 9000, 0);
}
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,1549.5883789063, -1627.7351074219, 16.296792984009))
{
MoveDynamicObject(LSPDHofTor,1549.6455078125, -1638.0, 16.296792984009, 5.0);
SetProTimer("LSPDHofTor1", 10000, 0);
}
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,1584.721313, -1637.874512, 12.525799))
{
MoveDynamicObject(LSPDTor,1592.721313, -1637.874512, 12.525799, 5.0);
SetProTimer("LSPDTor1", 10000, 0);
}
else if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid,30.0,-1632.4403,687.4573,7.1875))
{
MoveDynamicObject(SFPDTorA,-1618.2524414063, 688.2, 7, 3.5);
MoveDynamicObject(SFPDTorB,-1646.1857910156, 688.2, 7, 3.5);
SetProTimer("SFPDTore", 5000, 0);
}
}