Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* _______________________
- | |
- | Criado por Klions |
- | Detona SAMP |
- |_______________________|
- | |
- | |
- | |
- |_|
- http://detonasa-mp.blogspot.com.br/
- */
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define AkDano 5.0
- #define M4Dano 7.0
- #define ShotgunDano 13.0
- #define SwanDano 20.0
- #define SpasDano 15.0
- #define MP5Dano 3.5
- #define SniperDano 100.0
- public OnFilterScriptInit()
- {
- print("\n- [DS] - Detona SAMP - [DS] -");
- print(" Sistema de DANO - CARREGADO...");
- print(" Criado por: Klions");
- print("- [DS] - Detona SAMP - [DS] -\n");
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- new Float:DSVida;
- GetPlayerHealth(playerid, DSVida);
- if(weaponid == 30)
- {
- SetPlayerHealth(playerid, DSVida- AkDano);
- }
- if(weaponid == 31)
- {
- SetPlayerHealth(playerid, DSVida- M4Dano);
- }
- if(weaponid == 25)
- {
- SetPlayerHealth(playerid, DSVida- ShotgunDano);
- }
- if(weaponid == 26)
- {
- SetPlayerHealth(playerid, DSVida- SwanDano);
- }
- if(weaponid == 27)
- {
- SetPlayerHealth(playerid, DSVida- SpasDano);
- }
- if(weaponid == 29)
- {
- SetPlayerHealth(playerid, DSVida- MP5Dano);
- }
- if(weaponid == 34)
- {
- SetPlayerHealth(playerid, DSVida- SniperDano);
- }
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment