AdrenalineX Forums

General => AdrenalineX Development => Bug Reports => Topic started by: [MAF]mooman on April 19, 2010, 11:17:09 pm

Title: kick/ban bug [WIP]
Post by: [MAF]mooman on April 19, 2010, 11:17:09 pm
some hacker got in someone else's car, after i banned him the car disappeared and the other guy timed out
Title: Re: kick/ban bug
Post by: [MAF]Rac3r on April 20, 2010, 11:02:15 am
Add a bit of code to kick/ban/banevade, it should remove the players from the vehicle now. Although, changing a vehicles virtual world shouldn't of made a player timeout.

Code: [Select]
new safe = GetPlayerVehicleID(id);
printf("car found : %d",safe);
if(safe)
{
    foreach(Player, i)
{
    if(IsPlayerInVehicle(i, safe))RemovePlayerFromVehicle(id);
}
SetVehicleVirtualWorld(safe,DEADVWORLD_MIN);
}