Autorepare Dmg
Hi,
im writing a new plug-in & want to add autorepare dmg to races... example : race 1 has autorepare every sec. +2 HP race 2 every sec. +5HP & ... so i need the code & how can i add this to races? so how i know, i cant have the same code in 1 plugin. :cry: |
Re: Autorepare Dmg
Switch classes and check them. Assign a variable to 2.0 for example if the race is 1. The simplistic way is creating a task every 2.0 seconds and adding health to the player.
|
Re: Autorepare Dmg
Quote:
could u give me 1 example? |
Re: Autorepare Dmg
Something like this
PHP Code:
|
Re: Autorepare Dmg
Ty anakin.so how can i add this to this code? :mrgreen:
PHP Code:
|
Re: Autorepare Dmg
Quote:
PHP Code:
-------------------------------------- PHP Code:
|
Re: Autorepare Dmg
Ok, ty . thats very nice, no error & looks good. anyway i have to test first. ill test when im @ home. however a new problem :
Case 0 has autorepare : PHP Code:
|
Re: Autorepare Dmg
Quote:
Quote:
Quote:
+number to give health :) PHP Code:
I think like this... post here if you will get error from this. |
Re: Autorepare Dmg
Quote:
PHP Code:
PHP Code:
race 1 become +2 race 2 become +3 race 4 become +5 or is it poss. that i try this so : PHP Code:
PHP Code:
|
Re: Autorepare Dmg
Actually i don't know i'm still beginner on AMXX Scripting... But have you tried ?
|
| All times are GMT -4. The time now is 17:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.