Raised This Month: $ Target: $400
 0% 

[ESF] Powerlevel transformation problem [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Turbo ESF
Junior Member
Join Date: May 2016
Location: Argentina
Old 06-01-2016 , 18:22   Re: [ESF] Powerlevel transformation problem
Reply With Quote #11

Quote:
Originally Posted by siriusmd99 View Post
I don't know your problem, try to change the limit, but I made some optimizations to your plugin.
PHP Code:
#include <amxmodx>
#include <esf>

#define PLUGIN "ESF AumentarPL"
#define VERSION "1.0"
#define AUTHOR "Turbo"

new g_clientpl[33]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("+powerup""clcmd_powerup_start")
    
register_clcmd("-powerup""clcmd_powerup_end")
    
register_clcmd("turbo""clcmd_turbo")
}

public 
clcmd_powerup_start(id)
    
g_clientpl[id]=0;

public 
clcmd_powerup_end(id)
    if(
task_exists(id))
         
remove_task(id)


public 
clcmd_turbo(id)
{
    if(!
g_clientpl[id])
    {
        
g_clientpl[id]= getClientPL(id);
        
set_task(0.1"task_powerup"id, .flags="b")
    }
}
    
public 
task_powerup(id){
    
g_clientpl[id]+=9995
    setClientPL
(id,  g_clientpl[id])

Oh thanks
Turbo ESF is offline
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 06-02-2016 , 08:45   Re: [ESF] Powerlevel transformation problem
Reply With Quote #12

Quote:
Originally Posted by Turbo ESF View Post
I tried what he says and what happens is that KI rises but only the blue bar not the numbers.
I also tried the ACPL (Actual PowerLevel) but does not work
the blue bar is called 'KI'
the number on the blue bar is called 'PL'
KI is different from PL

and do not use clcmd to hook powerup, use 'register_event( "Powerup", "MsgPowerUp", "a" )' and 'register_event( "StopPowerup", "MsgStopPowerUp", "a" )' instead
__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios
Turbo ESF
Junior Member
Join Date: May 2016
Location: Argentina
Old 07-20-2016 , 13:46   Re: [ESF] Powerlevel transformation problem
Reply With Quote #13

I fixed it, thanks for the help
Turbo ESF is offline
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 15:19.


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