[SUGGESTION] Disable mod garages & Pay and spray
#1

So, my suggestion is to create a function which disables mod garages and pay and sprays. It's very good for RP servers, mechanics job. When anyone can't tuning vehicle in garage, they will give work to mechanics isn't it?

Comment please

A few suggestions for a pay n spray and tuning shops by papedo:

Код:
DisableTuningGarages();
DisablePayNSpray();
SetPayNSprayPrice(price);
SetComponentPrice(componentid);
public OnVehiclePayNSpray(vehicleid,color1,color2);
public OnVehicleTuned(vehicleid);
public OnVehicleEnterTuneShop(vehicleid); //for anti-teleport anticheat
public OnVehicleExitTuneShop(vehicleid); //for anti-teleport anticheat
Reply
#2

Disable everything except the GTA Map.
Reply
#3

why couldnt you just block the door with some object?
Reply
#4

I can do it, everyone can do it, but i guess this is better. Or not?
Reply
#5

Why waste the time making a function when you can easliy map a gate that can we opened to acess it if you really wanted/needed to.
Reply
#6

Some people would like to use those garages for other things, so bocking them is not a soluction, okay?
Reply
#7

Returning 0 in OnEnterExitModShop would make more sense
Reply
#8

Set their money to $0, and then they won't be able to use it. Build up a money anticheat which gives you another kind of money than the real "SA:MP" one.
Reply
#9

Like other people suggest, if you want to disable them, just block them and put like bombs inside so it cant be used
Reply
#10

Quote:
Originally Posted by BeckzyBoi
Посмотреть сообщение
Returning 0 in OnEnterExitModShop would make more sense
Ya. But his idea about a function which'd block these mods/ pay n spray wouldn't be a bad idea too
Reply
#11

A few suggestions for a pay n spray and tuning shops:
Код:
DisableTuningGarages();
DisablePayNSpray();
SetPayNSprayPrice(price);
SetComponentPrice(componentid);
public OnVehiclePayNSpray(vehicleid,color1,color2);
public OnVehicleTuned(vehicleid);
public OnVehicleEnterTuneShop(vehicleid); //for anti-teleport anticheat
public OnVehicleExitTuneShop(vehicleid); //for anti-teleport anticheat
Reply
#12

Код:
SetPayNSprayPrice(price);
SetComponentPrice(componentid);
I think wouldn't be possible due the default game price. The single of it would be programming, like selling weapons through dialog or text, which values are changable.
Reply
#13

This is a good idea.
Reply
#14

pawn Код:
public OnVehiclePayNSpray(vehicleid,color1,color2);
public OnVehicleTuned(vehicleid);
public OnVehicleEnterTuneShop(vehicleid); //for anti-teleport anticheat
public OnVehicleExitTuneShop(vehicleid); //for anti-teleport anticheat
onvehicleenterexitmodshop
onvehiclemod
onvehiclepaintjob
onvehiclerespary
Reply
#15

Actually I don't think this is possible as it's a part of the GTA:SA that if you got money enough you can enter a shop/pay 'n' spray.
Reply
#16

Why not, when you have sultan you can not enter normal mod shop...?
Reply
#17

Quote:
Originally Posted by Axuj
Посмотреть сообщение
Why not, when you have sultan you can not enter normal mod shop...?
That's also a part of the GTA:SA thing. It was made for single player that you can't with a Sultan in a normal mod shop. Which means I don't think you can make so all vehicles can't.
Reply
#18

Quote:
Originally Posted by blackwave
Посмотреть сообщение
Код:
SetPayNSprayPrice(price);
SetComponentPrice(componentid);
I think wouldn't be possible due the default game price. The single of it would be programming, like selling weapons through dialog or text, which values are changable.
I am from Czech Republic, so I remade currency on my server to CZK and becouse CZK is weaker currency i must increased charge in pay n spray from 100 to 1000CZK (when car resprayed, i catch driver 900 CZK ) Otherwise it i cant do... I can just hope for release some function that, can set pay n spray price...
Reply
#19

I think it should be tied with the DisableInteriorEnterExits function
Reply
#20

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
I think it should be tied with the DisableInteriorEnterExits function
No.. becouse maybe you want interiors, but no Pay N Spray..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)