SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 15/05/2012, 11:07 AM   #1
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Question] 1 very important question... Master_Gangster Help Archive 4 02/03/2011 07:36 PM
[QUESTION/HELP] DCMD Question Larsey123IsMe Help Archive 23 18/01/2011 04:30 PM
Question regarding playerid (noob question!) Mattjones17 Help Archive 5 27/10/2010 04:21 PM
Data type question.. (and mac address question) DarrenReeder Help Archive 2 21/10/2010 08:20 PM
Hello all i got one question (very easy to answer J.I.C question) SAMPfan109 General 0 06/03/2010 04:43 PM

All times are GMT. The time now is 02:07 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.