06.05.2018, 11:44
0.3.DL support please?
#0 00048ee0 in InflictDamage (playerid=5, Float:amount=0.00000, issuerid=65535, weaponid=55, bodypart=0, bool:ignore_armour=false) at pawno\include\weapon-config.inc:4668 [debug] #1 0002d92c in WC_SetPlayerHealth (playerid=5, Float:health=0.00000, Float:armour=-1.00000) at pawno\include\weapon-config.inc:1397 [debug] #2 0009d6f0 in SetPlayerHealth_test (playerid=5, Float:hp=0.00000) at \gamemodes\.pwn:10397 [debug] #3 0075a7f0 in public @_yCsethp (playerid=5, params[]=@01ec4efc "infi 0", help=0) at gamemodes\.pwn:80647 [debug] #4 0075a48c in public @yC_sethp (a=5, b[]=@01ec4efc "infi 0", c=0, i=0) at gamemodes\.pwn:80638 [debug] #5 native CallRemoteFunction () from samp-server.exe [debug] #6 0002a540 in Command_Process (playerid=5, cmdtext[]=@01ec4ec4 "/sethp", help=0) at pawno\include\YSI\y_commands.inc:2499 [debug] #7 00029c20 in ?? (... <2 arguments>) at pawno\include\YSI\y_commands.inc:2297 [debug] #8 0001118c in public OnPlayerCommandText (playerid=5, cmdtext[]=@01ec4ec4 "/sethp") at pawno\include\YSI\y_hooks/impl.inc:929
if (!ignore_armour && weaponid != WEAPON_COLLISION && weaponid != WEAPON_DROWN && weaponid != WEAPON_CARPARK && (!s_DamageArmourToggle[0] || (s_DamageArmour[weaponid][0] && (!s_DamageArmourToggle[1] || ((s_DamageArmour[weaponid][1] && bodypart == 3) || (!s_DamageArmour[weaponid][1]))))))
InflictDamage(playerid, 0.0);
SetPlayerHealth(playerid, hp);
issuerid=65535
if(!ignore_armour && weaponid != WEAPON_COLLISION && weaponid != WEAPON_DROWN && weaponid != WEAPON_CARPARK && (!s_DamageArmourToggle[0] || (s_DamageArmour[weaponid][0] && (!s_DamageArmourToggle[1] || ((s_DamageArmour[weaponid][1] && bodypart == 3) || (!s_DamageArmour[weaponid][1])))))) { if (amount <= 0.0) { amount = s_PlayerHealth[playerid] + s_PlayerArmour[playerid]; } s_PlayerArmour[playerid] -= amount; } else { if (amount <= 0.0) { amount = s_PlayerHealth[playerid]; } s_PlayerHealth[playerid] -= amount; }
InflictDamage (playerid=5, Float:amount=0.00000, issuerid=65535, weaponid=55, |
What would be the best way to create spawn protection for a player with this include? My previous SetPlayerHealth approach is void with this include enabled.
|
if(SpawnProtection[playerid] >= 1) return 0;
(6060) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
(6079) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx") (6097) : warning 201: redefinition of constant/macro (symbol "CreateVehicle") (6207) : warning 201: redefinition of constant/macro (symbol "DestroyVehicle") (6457) : error 025: function heading differs from prototype (645 : error 021: symbol already defined: "IsPlayerSpawned" (27123) : error 021: symbol already defined: "OnPlayerTakeDamage" (30072) : error 021: symbol already defined: "OnPlayerGiveDamage" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Help |
since many users want a return, then I will return it!
at the moment, a fork is created, but the new version will be filled in later the update will be available here - https://github.com/f0Re3t/samp-weapon-config |
#include <a_samp>
#include <mysql> #include <Pawn.CMD> #include <sscanf2> #include <streamer> #include <foreach> #include <regex> #include <a_http> #include <progress> #include <mSelection> #include <ColAndreas> #include <whirlpool> #include <weapon-config.inc> I have only this |