[FilterScript] Shooting in car
#1

[ame="http://www.youtube.com/watch?v=yCIhZ-31uAk"]http://www.youtube.com/watch?v=yCIhZ-31uAk[/ame]

Pastebin: http://pastebin.com/8hghpNNE

Creator: Seregamil
Reply
#2

Nice try but I don't like this method at all let me sum this up....

1.) PVars
2.) Silly use of timers ex. _update[playerid] = SetTimerEx("_vehicleShot", 794, true, "i", playerid);
3.) Your who idea of detection is flawed and I can tell by that video it's not very effective

Anyways, check out my method for this https://sampforum.blast.hk/showthread.php?tid=463490
Reply
#3

Nice!+REP
Reply
#4

Quote:
Originally Posted by [uL]Pottus
View Post
Nice try but I don't like this method at all let me sum this up....

1.) PVars
2.) Silly use of timers ex. _update[playerid] = SetTimerEx("_vehicleShot", 794, true, "i", playerid);
3.) Your who idea of detection is flawed and I can tell by that video it's not very effective

Anyways, check out my method for this https://sampforum.blast.hk/showthread.php?tid=463490
ok, but:

PHP Code:
public OnPlayerShoot(playeridweaponidammo)
{
    for(new 
0MAX_VEHICLESi++)
    { 
You using OnPlayerUpdate -> your method is triggered 4 times per second, it's a lot for such a simple system.

In both options have their pros and cons, but change my mind I will not
Reply
#5

add,
your system have bug: if in vehicle sitting player in passenger state - your method don't working
Reply
#6

That is not a problem at all at least for the host I use, you just need to know how to use OnPlayerUpdate() effectively since OnPlayerShoot() is called only when a shot is detected it's not much of a problem. Looping through all the vehicles not a problem that happens very quickly thanks for pointing out that other bug I'll look into changing that in next update.
Reply
#7

Had this in my server already, but good job.
Reply
#8

not bad...
Reply
#9

Nice, but it takes too much time to blow up a car with the minigun.
Reply
#10

Quote:
Originally Posted by [uL]Pottus
View Post
Nice try but I don't like this method at all let me sum this up....

1.) PVars
Lol'd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)