Guten Abend,
Ich habe vor das immer das Object am fahrzeug ist aber irgendwie funkt das net hir der code:
enum sacar {
CarID,
Float:saX,
Float:saY,
Float:saZ,
Float:saA,
VEHID,
SIRENE
};
CarID,
Float:saX,
Float:saY,
Float:saZ,
Float:saA,
VEHID,
SIRENE
};
new SAPDCAR[3][sacar] = {
{497,1550.6265,-1707.2272,28.5704,90.3057,-1,0},//HELI
{497,1551.1014,-1643.9941,28.5803,89.9257,-1,0},//HELI
{560,1089.7709,-1800.5479,13.3079,0.0098,-1,1}//SULTAN
};
{497,1550.6265,-1707.2272,28.5704,90.3057,-1,0},//HELI
{497,1551.1014,-1643.9941,28.5803,89.9257,-1,0},//HELI
{560,1089.7709,-1800.5479,13.3079,0.0098,-1,1}//SULTAN
};
OnGameModeInit:
for(new car=0; car<sizeof(SAPDCAR); car++) {
SAPDCAR[car][VEHID] = AddStaticVehicle(SAPDCAR[car][CarID],SAPDCAR[car][saX],SAPDCAR[car][saY],SAPDCAR[car][saZ],SAPDCAR[car][saA],0,1);
if(SAPDCAR[car][SIRENE] == 1) {
AttachObjectToVehicle(19419, SAPDCAR[car][VEHID], -0.000000, -0.254999, 0.809999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 |
}
}
SAPDCAR[car][VEHID] = AddStaticVehicle(SAPDCAR[car][CarID],SAPDCAR[car][saX],SAPDCAR[car][saY],SAPDCAR[car][saZ],SAPDCAR[car][saA],0,1);
if(SAPDCAR[car][SIRENE] == 1) {
AttachObjectToVehicle(19419, SAPDCAR[car][VEHID], -0.000000, -0.254999, 0.809999, 0.000000, 0.000000, 0.000000); //Object Model: 19419 |
}
}