CMD:sirene(playerid)
{
if(Spieler[playerid][pFraktion] != 3)return SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Sanitäter.");
new vehicleid = GetPlayerVehicleID(playerid);
for(new slot = 0;slot<MAX_PLAYER_VEHICLES;slot++)
{
if(IsValidVehicle(PrivateVehicle[playerid][slot][vehID]))
{
if(vehicleid == PrivateVehicle[playerid][slot][vehID])
{
if(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCLCreated] == 0)
{
if(GetVehicleModel(vehicleid) != 560)return SendClientMessage(playerid, COLOR_GREY, "** Momentan nur für Sultan verfügbar.");
Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCLCreated] = 1;
Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCL] = CreateDynamicObject(19419,0,0,0,0,0,0,0);
AttachDynamicObjectToVehicle(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCL], PrivateVehicle[playerid][slot][vehID], 0.000000, 0.000000, 0.829999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Undercover-Sirene wurde angebracht.");
return 1;
}
else
{
DestroyDynamicObject(Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCL]);
Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCL] = INVALID_OBJECT_ID;
Vehicle[PrivateVehicle[playerid][slot][vehID]][vehUCLCreated] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Undercover-Sirene wurde abmontiert.");
return 1;
}
}
}
}
return 1;
}
Hey ich wollte fragen wie kann ich einstellen das es nur für Fraktions Fahrzeuge geht?