14.10.2016, 07:17
(
Последний раз редактировалось Uberanwar; 15.10.2016 в 07:59.
)
Fixed
Okay what the hell, those **** symbols are not supposed to be there....
|
CMD:flash(playerid,params[])
{
if(pInfo[playerid][FactionTier] > 2 && IsLEOfficer(playerid))return SendClientMessage(playerid,RED,"ERROR:{FFFFFF} You must be a Law Enforcement Officer and obove Tier 2.");
new veh = GetPlayerVehicleID(playerid);
if(!GetVehicleModel(veh))return SendClientMessage(playerid,RED,"ERROR:{FFFFFF} You are not in a vehicle.");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SendClientMessage(playerid,RED,"ERROR: {FFFFFF} You are not the driver.");
if(IsValidDynamicObject(flash[veh]) || IsValidDynamicObject(flash2[veh]))
{
SendClientMessage(playerid,GetPlayerColor(playerid),"LEO:{FFFFFF} Lights switched off, deactivating CODE 2.");
DestroyObject(flash[veh]);
DestroyObject(flash2[veh]);
return 1;
}
switch(GetVehicleModel(veh))
{
case 596:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
flash2[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
AttachDynamicObjectToVehicle(flash2[veh], veh, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
}
case 597:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
flash2[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
AttachDynamicObjectToVehicle(flash2[veh], veh, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
}
case 598:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
flash2[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[vid], veh, 0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
AttachDynamicObjectToVehicle(flash2[vid], veh, -0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
}
case 599:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
flash2[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
AttachDynamicObjectToVehicle(flash2[veh], veh, -0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
}
case 541:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.375000,0.524999,0.375000,0.000000,0.000000,0.000000);
}
case 426:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.524999,0.749999,0.375000,0.000000,0.000000,0.000000);
}
case 560:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.225000,0.750000,0.449999,0.000000,0.000000,0.000000);
}
case 490:
{
flash[veh] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachDynamicObjectToVehicle(flash[veh], veh, 0.000000,1.125000,0.599999,0.000000,0.000000,0.000000);
}
default:
{
return SendClientMessage(playerid, RED, "ERROR: {FFFFFF}You are not in a compatible vehicle.");
}
}
SendClientMessage(playerid, GetPlayerColor(playerid), "LEO: {FFFFFF}Lights swithed on, activating CODE 2.");
return true;
}
When you use Microsoft Edge it's the problem of this browser. I had the same problem and now I use ****** Chrome.
![]() Small Notice: You must use AttachDynamicObjectToVehicle because you use the streamer. The same for IsValidObject => IsValidDynamicObject Change this and maybe the problem will be gone. I think not but I will look where the problem can be. ![]() - EDIT: Maybe try this: PHP код:
|