SA-MP Forums

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

Thread Tools Display Modes
Old 13/09/2018, 05:47 PM   #1
Big Clucker
AmirSavand's Avatar
Join Date: Sep 2018
Location: Behind Schedule
Posts: 60
Reputation: 8

Double Damage

View code and download:

Leave comments here or on the GitHub page if you have any questions/suggestions.


Just include it in the gamemode.


Make sure to checkout the functions in the GitHub.

Call SetPlayerDoubleDamage(playerid, duration) to make player do double amount of damage for a duration.
I call this function when player picks up a double damage pickup.

Call HandlePlayerDoubleDamage(playerid, amount) at OnPlayerTakeDamage.

Call ResetPlayersDoubleDamage and ResetPlayerDoubleDamage to reset player(s) double damage status.
Call this when mode/event changes or player dies.

To check player double damage status, call IsPlayerDoubleDamage(playerid).

GitHub - Website - Contact

C# - Python - PHP - Angular
Unity 3D - Django - Electron

AmirSavand is offline   Reply With Quote

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
Damage/Hit System - Sistema de Damage/Hit Franco33 Scripting Help 0 20/08/2016 04:53 AM
Double damage ScIrUsna Scripting Help 1 13/04/2016 12:08 PM
[FilterScript] Easy custom damage + damage sound Voxel Filterscripts 14 30/09/2013 04:07 PM
How to detect vehicle damage, and get damage taken? Micius Scripting Help 4 31/07/2013 04:08 PM
[Include] Car damage system - Damage a car without a driver! The_Moddler Includes 68 30/03/2012 01:38 AM

All times are GMT. The time now is 03:41 PM.

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