Anti Idle DB?
#1

Hello guys,
i hate it when players make an Drive-By without an driver. I tryed an Anti Idle DB function but im not good enough :/
Is there anyone who could make one or maybe if there is one who can share the link with me.

mrbeam
Reply
#2

pawn Код:
if(newstate==PLAYER_STATE_PASSENGER)
{
  switch (GetPlayerWeapon(playerid))
    {
      case 24,27,31: //WEAPONS IDS
      {
        SendClientMessage(playerid, 0xFFFFFF, "You can't driveby with this weapon.");
        SetPlayerArmedWeapon(playerid, 0);
        }
    }
}
This goes OnPlayerStateChange.

Sorry for bad ident.
Reply
#3

Fail
I want an Anti Idle DB -.-
I wont a script that removes a player from the vehicle when the driver left them.
Reply
#4

*push*
Someone can help me and find/make this?

mrbeam
Reply
#5

Don't 'push' a thread before the 48 hour mark.
Reply
#6

Put this on statechange maybe:

pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
{
if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid) && GetPlayerVehicleSeat(i) == 0 && GetPlayerVehicleSeat(playerid) != 0)
{
}
}
But this only detects if there is a driver in the passangers car
Reply
#7

sorry for the double post :/
@wildcookie you helped me
thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)