Help with engine script (in GM)
#9

Why don't you try to improve your codes by removing the "engineOn" variable? This is a start, edit so it fits your script. And like I said in an other topic, try to learn by yourself, stop taking the codes of other GM or FS. The codes are always easier to understand when you made them yourself. Plus, if you learn, you'll reduce posting in scripting help.
pawn Код:
if(!strcmp(cmd, "/engine", true))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(IsPlayerConnected(playerid))
            {
                new vid = GetPlayerVehicleID(playerid);
                new engine,lights,alarm,doors,bonnet,boot,objective;
                GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                if(engine == 0)
                {
                    SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
                    return 1;
                }
                else
                {
                    SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
                    return 1;
                }
            }
        }
        return 1;
    }
Edit: I forgot things in the codes.
Reply


Messages In This Thread
Still need Help with engine script (in GM) - by jakejohnsonusa - 07.10.2012, 19:54
Re: Help with engine script (in GM) - by jakejohnsonusa - 07.10.2012, 22:43
Re: Help with engine script (in GM) - by jakejohnsonusa - 08.10.2012, 01:26
Re: Help with engine script (in GM) - by Emmet_ - 08.10.2012, 01:33
Re: Help with engine script (in GM) - by jakejohnsonusa - 08.10.2012, 01:41
Re: Help with engine script (in GM) - by jakejohnsonusa - 08.10.2012, 02:11
Re: Help with engine script (in GM) - by Emmet_ - 08.10.2012, 02:32
Re: Help with engine script (in GM) - by nickstar - 08.10.2012, 02:42
Re : Help with engine script (in GM) - by lelemaster - 08.10.2012, 02:43
Re: Help with engine script (in GM) - by jakejohnsonusa - 08.10.2012, 11:29

Forum Jump:


Users browsing this thread: 2 Guest(s)