SA-MP Forums Archive
Params problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Params problem (/showthread.php?tid=322046)



Params problem - sherlock - 29.02.2012

A param in a script I am using is making the vehicle headlights turn off, but I don't know which one it is to stop it.

pawn Код:
if(newkeys & 8192)
    {
        new car = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(car) == 470 || GetVehicleModel(car) == 599 || GetVehicleModel(car) == 490 || GetVehicleModel(car) == 525)
        {
           new param[7];
           GetVehicleParamsEx(car,param[0],param[1],param[2],param[3],param[4],param[5],param[6]);
           if(Police[car][Use] == false)
           {
                Police[car][Use]   = true;
                Police[car][Siren] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,0.0);
                AttachObjectToVehicle(Police[car][Siren],car,-0.8,0.2,1.1,0.0,0.0,0.0);
                SetVehicleParamsEx(car,1,param[1],param[2],param[3],param[4],param[5],param[5]);