SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/05/2016, 10:32 AM   #1
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Bleeding

General:

This is a simple filterscript which will leave little puddles of blood behind player. The filterscript contains the core functions and two commands which will allow you to trigger the bleeding ("/bstart [amount of blood puddles]", "/bstop"). It's up to you to trigger the bleeding when player gets hurt and disable it after some time.



Credits:

- Incognito for streamer plugin,
- ****** for foreach/iterator include and GetXYInFrontOfPlayer function,
- ZeeX for ZCMD command processor.



Video:

http://www.youtube.com/watch?v=dR9vFjKicpo



Functions and Definitions:

Code:
SetPlayerBleeding(playerid, bleeds);
StopPlayerBleeding(playerid);
Code:
#define MAX_PLAYER_BLEEDS (3)
#define PLAYER_BLEEDING_RANGE (1.5)


Download:

Correlli is offline   Reply With Quote
Old 19/05/2016, 12:30 PM   #2
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 586
Reputation: 120
Default Re: Bleeding

Svidja mi se

I like it very nice
Bolex_ is offline   Reply With Quote
Old 19/05/2016, 12:48 PM   #3
BiosMarcel
Banned
 
Join Date: Jul 2012
Location: Germany
Posts: 1,224
Reputation: 234
Default Re: Bleeding

Anyone here who likes solidfiles? No , ok, remove it :O
It is just the .pwn , so i would recommend using pastebin in that case.

Funny script tho
BiosMarcel is offline   Reply With Quote
Old 19/05/2016, 05:10 PM   #4
Kimble
Big Clucker
 
Kimble's Avatar
 
Join Date: Nov 2015
Posts: 80
Reputation: 4
Default Re: Bleeding

Is this going to leave puddles in the air if the player jumps?

Anyway good job.
Kimble is offline   Reply With Quote
Old 19/05/2016, 05:13 PM   #5
BiosMarcel
Banned
 
Join Date: Jul 2012
Location: Germany
Posts: 1,224
Reputation: 234
Default Re: Bleeding

By the way , solidfiles doesn't seem to work for firefox
BiosMarcel is offline   Reply With Quote
Old 19/05/2016, 05:25 PM   #6
Noris
Banned
 
Join Date: May 2016
Posts: 155
Reputation: 4
Default Re: Bleeding

Good for trolling thanks !!
Noris is offline   Reply With Quote
Old 19/05/2016, 06:58 PM   #7
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: Bleeding

Quote:
Originally Posted by Kimble View Post
Is this going to leave puddles in the air if the player jumps?

Anyway good job.
Yes... D:

Using ColAndreas would make this a thousand times better. There wouldn't be blood in the air and the blood would align with the ground instead of sticking out of it.
Crayder is offline   Reply With Quote
Old 19/05/2016, 07:20 PM   #8
BiKode
Little Clucker
 
BiKode's Avatar
 
Join Date: Aug 2014
Location: Romania
Posts: 22
Reputation: 0
Default Re: Bleeding

Like it alot, nice work man!
__________________
BiKode is offline   Reply With Quote
Old 20/05/2016, 11:04 AM   #9
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Bleeding

Thanks.

Quote:
Originally Posted by [Bios]Marcel View Post
Anyone here who likes solidfiles? No , ok, remove it :O
It is just the .pwn , so i would recommend using pastebin in that case.
http://pastebin.com/2SM4c5v4

Quote:
Originally Posted by Kimble View Post
Is this going to leave puddles in the air if the player jumps?
No, there are "IsPlayerFalling", "IsPlayerJumping" and "IsPlayerInWater" functions to prevent that. First two will check the player's animation and the water function will check if player's position is < 1.0 and if the player is not in interior and virtual world. Not the perfect check, but it might be good enough.
Correlli 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
Player bleeding ChristofferHoffmann Scripting Help 17 25/05/2012 05:10 PM
[HELP] Bleeding system ServerScripter Scripting Help 2 11/02/2012 09:58 AM
Bleeding system ChristofferHoffmann Scripting Help 0 09/02/2012 06:37 PM
Bleeding qwqwqw Help Archive 4 24/04/2010 09:53 AM
Bleeding? yamoto Help Archive 4 29/06/2009 04:04 PM


All times are GMT. The time now is 07:41 AM.


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