Raised This Month: $51 Target: $400
 12% 

ESF Admin Unlimited KI


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Earth's Special Forces        Category:   Statistical        Approver:   Hawk552 (427)
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-29-2008 , 12:35   ESF Admin Unlimited KI
Reply With Quote #1

ESF Admin Unlimited KI
2.1


Description:

- Ok. Let's start. Because nobody tryed to make a plugin like this i maked by myself.
- Admins with flag "a" (ADMIN_IMMUNITY) will have all the time the KI full. The KI is player energy. And when you charge a attack, fly, teleport, the KI will decrease.
- The scope of this plugin is to make admins more powerfull with full energy.
- If you don't understand the description, look at images ^^.

Cvars:

- esf_admin_unlimited_ki 1 - plugin on / 0 - plugin off

Changelog:

- Updated to version 1.0
- Updated a bit, to version 2.0

Modules:

-
hamsandwich
-
engine // i didn't used the fakemeta because in all ESF servers engine_amxx.dll is active

PS:

-
Thanks all 4 sugesstions
- Hi
ConnorMcLeod thanks 4 help

Images:




[IMG]http://img5.**************/img5/4129/ex1fb9.th.jpg[/IMG] [IMG]http://img142.**************/img142/4584/ex2ci8.th.jpg[/IMG]

Attached Files
File Type: sma Get Plugin or Get Source (ESF_Admin_UnlimitedKI.sma - 2192 views - 1.1 KB)
__________________

Last edited by tuty; 02-28-2012 at 11:56.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-29-2008 , 12:43   Re: ESF Admin full KI
Reply With Quote #2

Please change the Modification to match the game mod
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2008 , 12:47   Re: ESF Admin full KI
Reply With Quote #3

Why do you register fullupdate ?

Suggestion : check if the user is admin before you set the task.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-29-2008 , 12:49   Re: ESF Admin full KI
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Why do you register fullupdate ?

Suggestion : check if the user is admin before you set the task.
oh sorry now should be fixed ;z
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-29-2008 , 12:57   Re: ESF Admin full KI
Reply With Quote #5

you also can include that inc into sma
__________________
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-29-2008 , 13:03   Re: ESF Admin full KI
Reply With Quote #6

ok xPaw..............
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2008 , 13:22   Re: ESF Admin full KI
Reply With Quote #7

PHP Code:
stock esf_get_ki(index)
{
    if(!
is_user_alive(index))
        return 
0;

    return 
floatround(entity_get_float(indexEV_FL_fuser4));
}
stock esf_set_ki(indexvalue)
{
    
entity_set_float(indexEV_FL_fuser4float(value));

I know you haven't make those stocks, it's just stupid to float values in one stock and floatround in the other, your plugin would be more efficient if you worked directly with floats.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-29-2008 , 13:25   Re: ESF Admin full KI
Reply With Quote #8

y es i haven't make those stocks

EDIT: can i use function from amxmodx.org? some people said the functions doesn't work...is true?
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2008 , 13:44   Re: ESF Admin full KI
Reply With Quote #9

You could just use macros

PHP Code:
#define esf_get_ki(%1)        entity_get_float(%1, EV_FL_fuser4)
#define esf_set_ki(%1,%2)    entity_set_float(%1, EV_FL_fuser4, %2) 
Then, use floats :
PHP Code:
esf_set_ki(iPlayerfloatmax(1000.0esf_get_ki(iPlayer)) 
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-29-2008 at 13:47.
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 01-31-2009 , 19:28   Re: ESF Admin full KI
Reply With Quote #10

Question: Is really works?
Answer: Yeah.! Works fine! Try it
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Reply



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

Forum Jump


All times are GMT -4. The time now is 11:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode