SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/01/2012, 07:47 PM   #1
mrbeam
Big Clucker
 
mrbeam's Avatar
 
Join Date: Aug 2011
Posts: 61
Reputation: 0
Default Anti Idle DB?

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
mrbeam is offline   Reply With Quote
Old 19/01/2012, 07:51 PM   #2
Face9000
High-roller
 
Face9000's Avatar
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,246
Reputation: 185
Default Re: Anti Idle DB?

pawn Code:
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.
Face9000 is offline   Reply With Quote
Old 19/01/2012, 08:08 PM   #3
mrbeam
Big Clucker
 
mrbeam's Avatar
 
Join Date: Aug 2011
Posts: 61
Reputation: 0
Default AW: Anti Idle DB?

Fail
I want an Anti Idle DB -.-
I wont a script that removes a player from the vehicle when the driver left them.
mrbeam is offline   Reply With Quote
Old 20/01/2012, 12:18 PM   #4
mrbeam
Big Clucker
 
mrbeam's Avatar
 
Join Date: Aug 2011
Posts: 61
Reputation: 0
Default AW: Anti Idle DB?

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

mrbeam
mrbeam is offline   Reply With Quote
Old 20/01/2012, 12:26 PM   #5
SchurmanCQC
High-roller
 
SchurmanCQC's Avatar
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 1,766
Reputation: 206
Default Re: Anti Idle DB?

Don't 'push' a thread before the 48 hour mark.
SchurmanCQC is offline   Reply With Quote
Old 20/01/2012, 02:03 PM   #6
wildcookie007
Big Clucker
 
Join Date: Dec 2011
Posts: 79
Reputation: 24
Default Re: Anti Idle DB?

Put this on statechange maybe:

pawn Code:
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
wildcookie007 is offline   Reply With Quote
Old 21/01/2012, 11:19 AM   #7
mrbeam
Big Clucker
 
mrbeam's Avatar
 
Join Date: Aug 2011
Posts: 61
Reputation: 0
Default AW: Anti Idle DB?

sorry for the double post :/
@wildcookie you helped me
thx
mrbeam is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
idle kicker xDeadlyBoy Help Archive 11 17/08/2011 04:17 PM
Idle NPC Incubator Help Archive 8 31/07/2011 12:34 PM
When player is idle help. Stigg Help Archive 4 31/01/2011 11:41 PM
NPC help with my idle timer BLAbla93 Help Archive 0 22/10/2009 05:56 AM


All times are GMT. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.