Anti Team Jack
#4

PHP код:
stock GetDriverID(vehicleid)
{
    for(new 
0MAX_PLAYERSi++) if(IsPlayerConnected(i)) //Loops through all players
    
{
        if(
GetPlayerVehicleID(i) == vehicleid && GetPlayerState(i) == PLAYER_STATE_DRIVER) return i;
    }
    return 
1;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
  new 
id GetDriverID(vehicleid);
  if(
IsPlayerInAnyVehicle(id) && !ispassenger && GetPlayerTeam(playerid) == GetPlayerTeam(id))
  {
    
// your code to kick him out
  
}
  return 
1;

Reply


Messages In This Thread
Anti Team Jack - by Sting. - 26.07.2017, 10:33
Re: Anti Team Jack - by xMoBi - 26.07.2017, 10:35
Re: Anti Team Jack - by Sting. - 26.07.2017, 10:36
Re: Anti Team Jack - by StrikerZ - 26.07.2017, 10:39
Re: Anti Team Jack - by Sting. - 26.07.2017, 10:51
Re: Anti Team Jack - by StrikerZ - 26.07.2017, 10:54
Re: Anti Team Jack - by Sting. - 26.07.2017, 10:58
Re: Anti Team Jack - by R4nd4ll - 26.07.2017, 11:18
Re: Anti Team Jack - by Sting. - 26.07.2017, 11:30
Re: Anti Team Jack - by R4nd4ll - 26.07.2017, 11:31

Forum Jump:


Users browsing this thread: 1 Guest(s)