new Ambulance[2];
new iVehicleObjective[MAX_VEHICLES][2];
//Gamemodeinit
Ambulance[0] = CreateVehicle(416,1181.2927,-1308.6554,13.8131,268.1655,1,2,-1);
Ambulance[1] = CreateVehicle(416,1182.3372,-1338.8624,13.8364,271.7602,1,2,-1);
iVehicleObjective[Ambulance[0]][1] = 0; //Door Lock
iVehicleObjective[Ambulance[1]][1] = 0; //Door Lock
ocmd:flock(playerid,params[])
{
SendClientMessage(playerid,0xFFFFFF,"DEBUG!");
if(pInfo[playerid][Member] == 4)
{
SendClientMessage(playerid,0xFFFFFF,"DEBUG!");
for(new i = 0; i < sizeof(Ambulance); i++)
{
new vehicleid = GetPlayerVehicleID(playerid);
SendClientMessage(playerid,0xFFFFFF,"DEBUG!");
if(vehicleid== Ambulance[i])
{
iVehicleObjective[Ambulance[i]][1] = 1; //Door Lock
SendClientMessage(playerid,0xFFFFFF,"DEBUG!");
}
}
}
return 1;
}
stock SetVehicleParamsForPlayerEx(vehicleid, playerid, objective, doorslocked)
{
SetVehicleParamsForPlayer(vehicleid, playerid, objective, doorslocked);
iVehicleObjective[vehicleid][0] = objective;
iVehicleObjective[vehicleid][1] = doorslocked;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, iVehicleObjective[vehicleid][0], iVehicleObjective[vehicleid][1]);
}
bitte um Hilfe