Small /tazer bug +rep
#2

This post is my post in an other topic. I just recopied what I did.

Use OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
playerid = cop
damageid = tazed man
weaponid = tazer id


Something like this:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
        if(GotTazer[playerid] == 1 && arrFaction[playerid][p_iMember] > 0)
        {
        TogglePlayerControllable(giveplayerid, 0);
                format(string, sizeof(string), "*%s stuns %s with the tazer.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        }
        return 1;
}
Reply


Messages In This Thread
Small /tazer bug +rep - by RLGaming - 08.10.2012, 16:54
Re : Small /tazer bug +rep - by lelemaster - 08.10.2012, 17:24
Re: Small /tazer bug +rep - by RLGaming - 08.10.2012, 17:36
Re: Small /tazer bug +rep - by Riddick94 - 08.10.2012, 17:40
Re: Small /tazer bug +rep - by Skillet` - 08.10.2012, 17:44
Re : Re: Small /tazer bug +rep - by lelemaster - 08.10.2012, 17:53
Re: Re : Re: Small /tazer bug +rep - by Skillet` - 08.10.2012, 17:58
Re : Re: Re : Re: Small /tazer bug +rep - by lelemaster - 08.10.2012, 18:16
Re: Re : Re: Re : Re: Small /tazer bug +rep - by Skillet` - 08.10.2012, 22:20

Forum Jump:


Users browsing this thread: 2 Guest(s)