Posts: 328
Threads: 79
Joined: Jan 2011
I want to set a command to lock cars for all players. i use this function
Код:
SetVehicleParams(v, playerid, 0, 1);
But the car is only locked/unlocked for that player. WHy? how to solve this, If there is another function for it, what is its define or stock. Thanks
Posts: 6,129
Threads: 36
Joined: Jan 2009
These 2 functions I made should work:
http://pastebin.com/661tJXz8
I haven't tested them though.
Posts: 328
Threads: 79
Joined: Jan 2011
But i want to make same command to lock/unlock car, So how can i do that with the function u made?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Look at the functions, you just need to use:
pawn Код:
LockVehicle(v);
UnlockVehicle(v);
if v is your vehicleid.