Author Topic: kick/ban bug [WIP]  (Read 3049 times)

0 Members and 1 Guest are viewing this topic.

Offline [MAF]mooman

  • Leader
  • Posts: 6,299
    • View Profile
kick/ban bug [WIP]
« 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
« Last Edit: July 14, 2010, 06:06:54 pm by [UK]Rac3r »
will read and answer your forum PMs when I'm less busy!

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,807
  • Well, this is embarrassing.
    • View Profile
Re: kick/ban bug
« Reply #1 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);
}