How to disable car tuning places?
#1

How to block players and hackers from being able to tune their car?
Reply
#2

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
Reply
#3

Most servers just map a gate behind the door so you can't enter.
Reply
#4

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.
Reply
#5

Check this include.

https://sampforum.blast.hk/showthread.php?tid=449016

Avoid tunning hack(Tunning a vehicle outside a garage)
Reply
#6

Quote:
Originally Posted by [CG]Milito
Посмотреть сообщение
Check this include.

https://sampforum.blast.hk/showthread.php?tid=449016

Avoid tunning hack(Tunning a vehicle outside a garage)
But hackers still can turn the block before tuning garage invisable and just go trough
Reply
#7

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..
Reply
#8

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)
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)