Thread: Question
View Single Post
Old 15/05/2012, 11:07 AM   #1
SpiderWalk
Gangsta
 
SpiderWalk's Avatar
 
Join Date: Apr 2010
Location: Serbia
Posts: 970
Reputation: 26
Default Question

Hello.Today I create Perk system.I have 1 question.I made perk name Maximal Armour.And how to set this.When Shooter shoot the target(Other player).To take damage on armour 0.5 percent of full armour(When Shooter shoot target to take from target just 0.5 percent of full armour)

I trying to use this public but I dont have idea how to script it.
pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(perk[playerid][MaxArmour] == 1)
    {
       
    }
    return 1;
}

PS:My english is little bad when i am explaing
SpiderWalk is offline   Reply With Quote