How to disable car tuning places? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to disable car tuning places? (
/showthread.php?tid=471408)
How to disable car tuning places? -
Unri - 22.10.2013
How to block players and hackers from being able to tune their car?
Re: How to disable car tuning places? -
park4bmx - 22.10.2013
pawn Код:
DisableInteriorEnterExits();
Or
pawn Код:
for(new i=0; i<12;i++)
{
new slot=-1
slot = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), i);
if(slot !=-1) RemoveVehicleComponent(GetPlayerVehicleID(playerid), i);
}
Something like that
Re: How to disable car tuning places? -
Mattakil - 23.10.2013
Most servers just map a gate behind the door so you can't enter.
Re: How to disable car tuning places? -
Unri - 23.10.2013
Quote:
Originally Posted by Mattakil
Most servers just map a gate behind the door so you can't enter.
|
I mentioned, that i need a method, that would work against hackers too.
Respuesta: How to disable car tuning places? -
[CG]Milito - 23.10.2013
Check this include.
https://sampforum.blast.hk/showthread.php?tid=449016
Avoid tunning hack(Tunning a vehicle outside a garage)
Re: Respuesta: How to disable car tuning places? -
Unri - 23.10.2013
Quote:
Originally Posted by [CG]Milito
|
But hackers still can turn the block before tuning garage invisable and just go trough
Re : How to disable car tuning places? -
Matnix - 23.10.2013
pawn Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
if(GetPlayerInterior(playerid) == 0) // if when he tune his car he wasn't in int.
{
// action to do?
}
return 1;
}
Somethings like that? or..
Respuesta: How to disable car tuning places? -
[CG]Milito - 23.10.2013
Then, use park4bmx code to check if they have any modded part in their car, if they do have a modded part in the vehicle ban them. (Supposing you map a gate behind the tuning garages)
Re: Re : How to disable car tuning places? -
Unri - 23.10.2013
Quote:
Originally Posted by Matnix
pawn Код:
public OnVehicleMod(playerid,vehicleid,componentid) { if(GetPlayerInterior(playerid) == 0) // if when he tune his car he wasn't in int. { // action to do? } return 1; }
Somethings like that? or..
|
Oh yea, that rings a bell! Thanks man!
Quote:
Originally Posted by [CG]Milito
Then, use park4bmx code to check if they have any modded part in their car, if they do have a modded part in the vehicle ban them. (Supposing you map a gate behind the tuning garages)
|
You dont understand. I needed a way to disable default tuning so i could create a custom one. Baning people by checking their parts wouldnt make sense.