SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 26/08/2012, 05:25 PM   #1
bero1711
Little Clucker
 
Join Date: Jul 2009
Location: Croatia,Koprivnica
Posts: 20
Reputation: 0
Default Help with object health!

Hi everyone! I wan't to do that [ame]http://www.youtube.com/watch?v=7zqg5ILN_I8[/ame]
but i dont know how to get object health?
Can any1 help me?

BTW Sorry guys for my bad english,i'm from Croatia
bero1711 is offline   Reply With Quote
Old 26/08/2012, 05:54 PM   #2
dalkgamler
Big Clucker
 
Join Date: Jan 2012
Posts: 145
Reputation: 4
Thumbs up AW: Help with object health!

This is just a Variable which is setted
Like this
Every second Check
Is Player near object tree
Is Player anim chainsaw
Set var --
Var = Health
__________________
Sorry about my bad English ----- I'm a bad student from Germany
dalkgamler is offline   Reply With Quote
Old 26/08/2012, 07:03 PM   #3
bero1711
Little Clucker
 
Join Date: Jul 2009
Location: Croatia,Koprivnica
Posts: 20
Reputation: 0
Default Re: Help with object health!

and i have seen include for that.if anyone can find it,please send me pm.

EDIT: I have done this

stock IsPlayerNearObject(playerid,objectid,range){
new float:ObjX,float:ObjY,float:ObjZ;
GetObjectPos(objectid,ObjX,ObjY,ObjZ);
IsPlayerInRangeOfPoint(playerid,range,Obj:X,Obj:Y, Obj:Z);
return 1;
}
bero1711 is offline   Reply With Quote
Reply

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
[Include] OWN3D Anticheat - Health/Armour/Money/Weapons/Vehicle Health (W.I.P) MW2_OWN3D Includes 8 14/11/2011 07:05 PM
[Help] Player lose health when near object andruz99 Help Archive 5 16/05/2011 06:27 PM
[FilterScript] [FS]AllBar (Health Bar, Armour Bar, Vehicle Health Bar!) YmOn Filterscripts 28 03/11/2010 04:49 PM
Object with health? arachimi Help Archive 4 02/03/2010 01:15 PM
Saving Player Health/Spawning With Health Despare Help Archive 21 25/11/2009 05:20 AM


All times are GMT. The time now is 06:31 AM.


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