Disabling Vending Machines
#1

I want to know if their is a way to disable vending machines or it would be better to be able to remove the function of making it increase health but still let you use them for like RP ^^

If its possible let me know, I searched and couldnt find anything.

Thanks.
Reply
#2

You can make an own function by yourself, just check if;

- Somebody is near a vending machine.
- Somebody is pressing enter
- Somebody is getting -$1
- Somebody is getting moe health (like 10.0 or 20.0 or so)


If so, call a function and give player $1 back again and remove 10.0 or 20.0 health.
Reply
#3

The only ways to disable them are

1) Put a big enough object infront of them all

2) Use your own cash system so that the normal GTA cash system is always at Ј0, although this will obviously disable pay 'n' sprays etc too

3) Hope that any future releases of samp has a function to disable them

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)