02.08.2013, 16:54
Hello Scripters
I would like your little help in here,I tried to create a damage system for my script but its not kinda working mind giving me a hand ?
I am using OnPlayerTakeDamage callback for it
I would like your little help in here,I tried to create a damage system for my script but its not kinda working mind giving me a hand ?
pawn Code:
if(team[issuerid] == TEAM_A)
{
if(pInfo[issuerid][MP5] == 1 || pInfo[issuerid][Deagle] == 1)
{
if(team[playerid] == TEAM_B)
{
if(weaponid == 24)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 70);
}else if(weaponid == 29)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 45);
}
}
}
}