Vehicles door lock
#1

Hi, how lock job vehicles doors? I wanna use SetVehicleParamsEx or SetVehicleParamsForPlayer but i don't know how do it. Thanks for answers.
Reply
#2

Use a loop:
pawn Код:
for(new v = 1; v <= MAX_VEHICLES; v++)
{
    if(c_Info[v][cJob] == 1) //Use you variables, if you don't have it with variables, use the IDs as if(v > 50 && v < 70) || It's an example, nothing else.
    {
        //Get/SetVehicleParamsEx
    }
}
Reply
#3

Maybe you can more tell how create and use this variable: "c_Info[v][cJob] == 1"?
Reply
#4

It's good if you have a dynamic vehicle system, I mean create vehicles InGame, change their jobs, factions InGame, etc.
Also, if you have a Godfather edit, you can edit it, but well... Read which I said before in //
Reply
#5

I use fsdebug filterscript and use /v command in server. This filterscript is in zip with other SA-MP files. So how i can set vehicle for job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)