Urgent Question
#5

Use something like:

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    new Hits, Hitwinner;
    if(hittype == BULLET_HIT_TYPE_OBJECT)
    {
        if(hitid == Objectid)//if he hitted the objectid, don't put the id here, use something like new Objectid; and use Objectid = CreateDynamic........ while creating object.
        {
            Hits++
            Hitwinner = playerid;
            If(Hits == 20)
            {
                GivePlayerMoney(Hitwinner, 1000);
                Hits=0;
            }
        }
    }
   
    return 1;
}
untested code
Reply


Messages In This Thread
Urgent Question - by ilay65 - 27.09.2014, 13:11
Re: Urgent Question - by ilay65 - 27.09.2014, 14:25
Re: Urgent Question - by IamPRO - 27.09.2014, 14:44
Re: Urgent Question - by ilay65 - 27.09.2014, 14:53
Re: Urgent Question - by IamPRO - 28.09.2014, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)