Damage System Help
#1

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 ?


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);
                }
            }
        }
    }
I am using OnPlayerTakeDamage callback for it
Reply
#2

That should help you out:
http://forum.sa-mp.com/showpost.php?...53&postcount=7
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)