Modifying weapon damage?
#5

Quote:
Originally Posted by Zack9764
Посмотреть сообщение
Will that check for armor first and if he does have armor, take it? Or would I have to write below it..

SetPlayerArmor(target, A-100)

And I probably sound stupid, but how do I make a .inc?
I'll make it with armour too now.

pawn Код:
public OnPlayerShootPlayer(shooter, target, Float:damage)
{
    new Float:A, Float:H, Float:health, Float:armour;
    GetPlayerHealth(target, H);
    GetPlayerArmour(target, A);
    armour = 100 - A;
    health = H - armour;
    SetPlayerArmour(target, armour);
    SetPlayerHealth(target, health);
    return 1;
}
Maybe something like that?
However about the include: Just make an new file named "{name}.inc" and put it in pawno/includes
But you need to make the include. Just make functions etc. If you need something like "OnPlayerConnect", use CallRemoteFunction/CallLocalFunction
Reply


Messages In This Thread
Modifying weapon damage? - by Zack9764 - 08.01.2011, 12:24
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 12:29
Re: Modifying weapon damage? - by wups - 08.01.2011, 12:31
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 12:44
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 13:44
Re: Modifying weapon damage? - by wups - 08.01.2011, 13:45
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 13:50
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 14:01
Re: Modifying weapon damage? - by Kwarde - 08.01.2011, 14:03
Re: Modifying weapon damage? - by Zack9764 - 08.01.2011, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)