[FilterScript] DDB System
#1

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
Reply
#2

Simple, but nice job
Reply
#3

Screenshots or video?
Reply
#4

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.
Reply
#5

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...
Reply
#6

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. ._.
Reply
#7

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.
Reply
#8

I have to say its useful for rp servers.
Reply
#9

If someone will give a weapon to the driver it will be able again to make DB.
Reply
#10

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)