[FilterScript] DDB System - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] DDB System (
/showthread.php?tid=574662)
DDB System - justice96 - 19.05.2015
Disable Driver Drive By
Hi everyone,
I'd just like to inform you guys that I've made a simple script for enable/disable Driver Drive by (DDB). This script is perfect to be added on the server which are based in Deathmatch/TDM.
Download:
http://pastebin.com/J9k7caeB
Re: DDB System -
X337 - 19.05.2015
Simple, but nice job
Re: DDB System -
Greaper - 19.05.2015
Screenshots or video?
Re: DDB System -
Deathlane - 19.05.2015
A better way to ensure that he doesn't drive-by is to do it OnPlayerUpdate. (Checking if he is in a vehicle, if yes, set armed weapon to ID 0)
Anyhow good work.
Re: DDB System -
iWhite - 19.05.2015
What if player buys RPG for real money, like 5$, he would just lose that bazooka and his money with this script... I guess the best way to disable drive by is to check if player is pressing KEY_HORN or KEY_LOOK_LEFT/RIGHT and put him in vehicle again...
Re: DDB System -
X337 - 19.05.2015
Quote:
Originally Posted by iWhite
What if player buys RPG for real money, like 5$, he would just lose that bazooka and his money with this script... I guess the best way to disable drive by is to check if player is pressing KEY_HORN or KEY_LOOK_LEFT/RIGHT and put him in vehicle again...
|
Players won't lost dat bazooka, he just SetPlayerArmedWeapon. ._.
Re: DDB System - justice96 - 19.05.2015
Quote:
Originally Posted by bondowocopz
Simple, but nice job 
|
Thankyou masbro!
Quote:
Originally Posted by Greaper
Screenshots or video?
|
I don't have so much free time to take a screenshots, just wait for the time!
Quote:
Originally Posted by Deathlane
A better way to ensure that he doesn't drive-by is to do it OnPlayerUpdate. (Checking if he is in a vehicle, if yes, set armed weapon to ID 0)
Anyhow good work.
|
Thanks for suggestion! I'll do it soon for the next update
Quote:
Originally Posted by iWhite
What if player buys RPG for real money, like 5$, he would just lose that bazooka and his money with this script... I guess the best way to disable drive by is to check if player is pressing KEY_HORN or KEY_LOOK_LEFT/RIGHT and put him in vehicle again...
|
ResetPlayerWeapons will be lost. SetPlayerArmedWeapon is just temporary.
Re: DDB System -
Alex Magaсa - 19.05.2015
I have to say its useful for rp servers.
Re: DDB System -
Flashhiee - 19.05.2015
If someone will give a weapon to the driver it will be able again to make DB.
Re: DDB System - justice96 - 30.05.2015
Quote:
Originally Posted by Flashhiee
If someone will give a weapon to the driver it will be able again to make DB.
|
Logically, the driver can't do the DB while driving
Quote:
Originally Posted by Day_
Bad Script...
|
I'm really want to get a lots of criticism
Quote:
Originally Posted by Pottus
This is done incorrectly do it like this just always set their armed weapon to 0 if they try it may be a little less efficient but it eliminates any other overhead you might need to implement.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( (newkeys & KEY_FIRE) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) )
SetPlayerArmedWeapon(playerid,0);
}
|
I think, my script is already done correctly. but, I appreciated you!