SA-MP Forums Archive
[FilterScript] [FS] Anti Driveby while Driver - 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] [FS] Anti Driveby while Driver (/showthread.php?tid=74199)



[FS] Anti Driveby while Driver - FreshKilla - 20.04.2009

Remove please.


Re: [FS] Anti Driveby while Driver - Dairyll - 20.04.2009

How about in other people's screen?


Re: [FS] Anti Driveby while Driver - Shadow_ - 20.04.2009

What you mean in the other peoples screen?
What's more to explain? It doesn't let you shoot while driver! which most RP servers have as a rule(for some unknown reason)
so for them this would bee great!!


Re: [FS] Anti Driveby while Driver - FreshKilla - 20.04.2009

Quote:
Originally Posted by ShadowMcFartPants!
What you mean in the other peoples screen?
What's more to explain? It doesn't let you shoot while driver! which most RP servers have as a rule(for some unknown reason)
so for them this would bee great!!
exactly, and thanks!


Re: [FS] Anti Driveby while Driver - Rks25 - 20.04.2009

you can arrange a pastebinlink?


Re: [FS] Anti Driveby while Driver - Shadow_ - 20.04.2009

no need for pastebin, infact i duno why he didn't do this anyway


Код:
forward AntiDB(playerid);

public OnFilterScriptInit()
{
	print("- Anti Driveby -");
	print("- LOADED -");
	SetTimer("AntiDB",100,true);
	return 1;
}

public AntiDB(playerid)
{
	if (GetPlayerWeapon(playerid) == 28 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 29 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 32 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	return 1;
}



Re: [FS] Anti Driveby while Driver - Redirect Left - 20.04.2009

There are alot of more efficient ways to do it than a 100ms timer


Re: [FS] Anti Driveby while Driver - FreshKilla - 20.04.2009

well there is another way is if you got a drivebyable gun and you enter the car it will kick you out and say you cannot drive with this weapon but this system is just basicly blocks drive bying


Re: [FS] Anti Driveby while Driver - n_i_k_i - 21.04.2009

Код:
public AntiDB(playerid)
{
	if (GetPlayerWeapon(playerid) == 28 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 29 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 32 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
Bad.
Код:
public AntiDB(playerid)
{
	if ((GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 29 || GetPlayerWeapon(playerid) == 32) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
Good.


Re: [FS] Anti Driveby while Driver - FreshKilla - 21.04.2009

Quote:
Originally Posted by n_i_k_i
Код:
public AntiDB(playerid)
{
	if (GetPlayerWeapon(playerid) == 28 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 29 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	if (GetPlayerWeapon(playerid) == 32 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
Bad.
Код:
public AntiDB(playerid)
{
	if ((GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 29 || GetPlayerWeapon(playerid) == 32) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);
	}
	return 1;
}
Good.
dude it still functions perfectly so you dont need to be writing this
PS: added to many ( )


Re: [FS] Anti Driveby while Driver - [JIeXa] - 21.04.2009

public OnPlayerStateChange(playerid, newstate, oldstate) if(newstate == PLAYER_STATE_DRIVER) ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);

my short version


Re: [FS] Anti Driveby while Driver - FreshKilla - 21.04.2009

Quote:
Originally Posted by [JIeXa
]
public OnPlayerStateChange(playerid, newstate, oldstate) if(newstate == PLAYER_STATE_DRIVER) ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0);

my short version
but that would do it no matter what, this just dose it when ever you have a mp5,uzi,tec9 in hand


Re: [FS] Anti Driveby while Driver - [JIeXa] - 21.04.2009

version short
very short !


Re: [FS] Anti Driveby while Driver - vovz - 22.04.2009

This looks kind stupid while you are on Bike


Re: [FS] Anti Driveby while Driver - MenaceX^ - 22.04.2009

Seif has it already, in Seif's script it just disarms the player while he enters the car, saves the ammo + weapon.

When he exits his car, it gives him back..


Re: [FS] Anti Driveby while Driver - g4ngsta - 22.04.2009

I re-scripted your script a bit, I haven't tested it yet but it has to work fine .

Link: http://pawn.pastebin.com/f68f554ed

Have fun.


Re: [FS] Anti Driveby while Driver - MenaceX^ - 22.04.2009

Quote:
Originally Posted by g4ngsta
I re-scripted your script a bit, I haven't tested it yet but it has to work fine .

Link: http://pawn.pastebin.com/f68f554ed

Have fun.
I think you need permissions to do it..


Re: [FS] Anti Driveby while Driver - Redirect Left - 22.04.2009

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by g4ngsta
I re-scripted your script a bit, I haven't tested it yet but it has to work fine .

Link: http://pawn.pastebin.com/f68f554ed

Have fun.
I think you need permissions to do it..
screw permissions, his script was so incredibly inefficient it NEEDED it ¬_¬


Re: [FS] Anti Driveby while Driver - [IB]Scorcher - 22.04.2009

Quote:
Originally Posted by Jolteon | RD Left
Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by g4ngsta
I re-scripted your script a bit, I haven't tested it yet but it has to work fine .

Link: http://pawn.pastebin.com/f68f554ed

Have fun.
I think you need permissions to do it..
screw permissions, his script was so incredibly inefficient it NEEDED it ¬_¬
Owned, lol.


Re: [FS] Anti Driveby while Driver - Shadow_ - 22.04.2009

omai, Why are you guys so mean? What's the point? Give advise show him how to make it better, w/e don't just rip him how would you like it if you scripted something preety useful and someone just ripped the shit out of it ?