new gelblicht[MAX_VEHICLES];
new gelblicht1[MAX_VEHICLES];ocmd:wlicht(playerid,params[])
{
new gelbvar;
new vid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pFraktionsLeader] == 4 || PlayerInfo[playerid][pFraktionsMember] == 4)
{
if(PlayerInfo[playerid][pFraktionsRange] >= 3)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
{
if(gelbvar == 0)
{
gelblicht[GetPlayerVehicleID(playerid)] = CreateObject(19294,0,0,0,0,0,0,100);
gelblicht1[GetPlayerVehicleID(playerid)] = CreateObject(19294,0,0,0,0,0,0,100);
AttachObjectToVehicle(gelblicht[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.6,-0.5,1.4,0,0,0);
AttachObjectToVehicle(gelblicht1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.6,-0.5,1.4,0,0,0);
gelbvar = 1;
}
else
{
DestroyObject(gelblicht[GetPlayerVehicleID(playerid)]);
DestroyObject(gelblicht1[GetPlayerVehicleID(playerid)]);
gelbvar = 0;
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"du brauchst das car 525");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du brauchst rank 3!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist nicht in der Fraktion 4")
}
return 1;
}