Hey,
Wie kann ich bei /carlock das licht kurz Blinken lassen. Also An und danach wieder aus.
Hoffe ihr könnt mir helfen
if (strcmp("/carlock", cmdtext, true, 10) == 0)
{
if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
new Status = Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]];
new Float:dtc_X,Float:dtc_Y,Float:dtc_Z;
GetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],dtc_X,dtc_Y,dtc_Z);
if(!IsPlayerInRangeOfPoint(playerid,10.0,dtc_X,dtc_Y,dtc_Z))
{
SendClientMessage(playerid,COLOR_LIGHTRED,"Du bist nicht in der nähe deines Fahrzeuges");
return 1;
}
else
{
switch (Status)
{
case 0:
{
GameTextForPlayer(playerid, "~w~Fahrzeug ~r~abgeschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 1;
Dtc_LockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
}
case 1:
{
GameTextForPlayer(playerid, "~w~Fahrzeug ~g~aufgeschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0;
Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du besitzt kein Fahrzeug für deinen ausgewählten Schlüssel!");
return 1;
}
return 1;
}