Anti Vehicle Spawn?
#1

HI guys, I'm searching for an anti vehicle spawn.. Can you help me?
Reply
#2

https://sampforum.blast.hk/showthread.php?pid=1832467#pid1832467
Reply
#3

Easy.


Just place a integer variable about 'originalvehicle' into your create vehicle function.When ever you create a vehicle, count it from 0 to MAX_VEHICLES with break.Then use this variable for kicking hackers;

PHP код:
public OnVehicleSpawn(vehicleid)
{
    return 
1;
}

public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;

Reply
#4

I tried this but cheater can already spawn vehicles..
Reply
#5

Quote:
Originally Posted by trablon
Посмотреть сообщение
Easy.


Just place a integer variable about 'originalvehicle' into your create vehicle function.When ever you create a vehicle, count it from 0 to MAX_VEHICLES with break.Then use this variable for kicking hackers;

PHP код:
public OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;

I don't want something like this, but an anti vehicle spawn cheat.. With this also admin can't spawn vehicles
Reply
#6

Okay, checks if a vehicle has spawned, and an admin's who spawned it, if not then destroy it and kick the spawn-er(the closest one to it)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)