![]() |
Script Wep Damage
how do i make this script do damage
PHP Code:
|
Use [ code ] tags, it will make you script more readable.
|
stay on topic
|
If you're using the default hearts system, then this page might be useful. Though, are you the person that made this script? It's unfinished, if I'm understanding it correctly. You have a triggerAction, but you have no onAction to carry out the affect.
If you're new to scripting, and are just using examples from other people to learn, you should really read everything on this page first. Also, use the PHP tags when posting scripts. ^^ It puts the code in a scroll box, and highlights it. Much easier to read. |
so where do i put "players[1].hearts"
at and does this make it - hearts by 1 |
Quote:
Trust me. ;) Anyway, if you're using custom animations in place of the sword, I assume this isn't a "classic" server, so you might want a custom HP system. |
PHP Code:
The above will subtract 1 heart from the player every time they say /hurtme. But, as Excalibur said, you'll want a custom system if you're using custom GANIs for weapons. |
All times are GMT +2. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.