Anti Idle DB? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti Idle DB? (
/showthread.php?tid=312061)
Anti Idle DB? -
mrbeam - 19.01.2012
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
Re: Anti Idle DB? -
Face9000 - 19.01.2012
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.
AW: Anti Idle DB? -
mrbeam - 19.01.2012
Fail
I want an Anti Idle DB -.-
I wont a script that removes a player from the vehicle when the driver left them.
AW: Anti Idle DB? -
mrbeam - 20.01.2012
*push*
Someone can help me and find/make this?
mrbeam
Re: Anti Idle DB? -
SchurmanCQC - 20.01.2012
Don't 'push' a thread before the 48 hour mark.
Re: Anti Idle DB? -
wildcookie007 - 20.01.2012
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
AW: Anti Idle DB? -
mrbeam - 21.01.2012
sorry for the double post :/
@wildcookie you helped me
thx