Raised This Month: $32 Target: $400
 8% 

[REQ] VIP Speed gravity fixed health help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-20-2022 , 08:48   [REQ] VIP Speed gravity fixed health help
Reply With Quote #1

Hello.
I have a plugin Builder Admin Skin For Base Builder
I want that to add Respawn Health 150 and Gravity 0.5 and Speed 325 for Admins And Maximum 600 HP for Builders.
I tried many plugins and try many methods but i do not succeed.
Can anyone help to add it in this plugin or make another plugin or give me a link of plugin who work's perfectly ( please do not suggest not tested plugins )
Here is Admin Skin Code:

PHP Code:
/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___   _____       ___  ___   _   __   _            ___  ___   _____   _      
##     /   | |  _  \     /   |/   | | | |  \ | |          /   |/   | |  _  \ | |      
##    / /| | | | | |    / /|   /| | | | |   \| |         / /|   /| | | | | | | |      
##   / / | | | | | |   / / |__/ | | | | | |\   |        / / |__/ | | | | | | | |      
##  / /  | | | |_| |  / /       | | | | | | \  |       / /       | | | |_| | | |___  
## /_/   |_| |_____/ /_/        |_| |_| |_|  \_|      /_/        |_| |_____/ |_____| 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   Originated as a simple idea back in 2004, it was forgotten due to 
## lack of my 'Small' coding skills. However I have progressed in recent 
## months and somehow crossed that old post with this concept in it. So 
## naturally I challenged myself to see if I could do it, and voila! I 
## could :) 
## 
##   Once you join, you play a normal person for the first round, and for 
## all remaining rounds your CT or TE models are custom. They now read 
## "ADMIN" on front and back, and also have small "A" patches on the arms. 
## I designed these models myself, it's very easy, just bring the textures 
## into photoshop, tweak out, and replace. 
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 2) v1.1.1 - Fixed missing event 
## 1) v1.1.0 - Fixed VIP and other model bugs 
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' 
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder 
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## No CVARs for this plugin :) 
## 
## 
##########################################################################*/    


#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        
register_plugin("AMX Admin Model""1.1.1""whitemike")
        
register_event("ResetHUD""resetModel""b")
        return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
        
precache_model("models/player/adminct/adminct.mdl")
        
precache_model("models/player/adminct/adminct.mdl")

        return 
PLUGIN_CONTINUE
}

public 
resetModel(idlevelcid) {
        if (
get_user_flags(id) & ADMIN_LEVEL_H) {
                new 
CsTeams:userTeam cs_get_user_team(id)
                if (
userTeam == CS_TEAM_CT) {
                        
cs_set_user_model(id"adminct")
                }
                else if(
userTeam == CS_TEAM_CT) {
                        
cs_set_user_model(id"adminct")
                }
                else {
                        
cs_reset_user_model(id)
                }
        }

        return 
PLUGIN_CONTINUE


Last edited by crystal xtreme; 09-23-2022 at 07:06.
crystal xtreme is offline
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 09-22-2022 , 14:44   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #2

Explain more, do you want When Admin Spawn Give him 150HP + 0.5 + SPEED OR?
Taha_rajper is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 14:47   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #3

Yes.
When spawn.
crystal xtreme is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 14:47   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #4

For Builders all have 150HP and 0.5 Gravity + 325Speed.
crystal xtreme is offline
Old 09-22-2022, 15:06
Taha_rajper
This message has been deleted by Taha_rajper.
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 09-22-2022 , 15:07   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #5

Use this sub-plugin


PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < fun >

#define VIP_FLAG                    ( ADMIN_RESERVATION )
#define VIP_HEALTH                  ( 130 )

#define FBit_Get(%1,%2)             ( %1 &   ( 1 << ( %2 - 1 )))
#define FBit_Set(%1,%2)             ( %1 |=  ( 1 << ( %2 - 1 )))
#define FBit_Clear(%1,%2)           ( %1 &= ~( 1 << ( %2 - 1 )))

new g_bitVip;

public 
plugin_init( )
{
    
register_plugin"Admin - priviliges""1.0""Taha_rajper" );
    
    
RegisterHamHam_Spawn"player""CPlayer__Spawn_P"true );
}

public 
client_putinserveriPlayer )
{
    
    if(!(
cs_get_user_team(iPlayer) == CS_TEAM_CT && get_user_flags(iPlayer) & VIP_FLAG ))
    {
        
FBit_Setg_bitVipiPlayer );
    }
}

public 
client_disconnectiPlayer )
{
    
FBit_Clearg_bitVipiPlayer );
}

public 
CPlayer__Spawn_PiPlayer )
{
    if( 
FBit_Getg_bitVipiPlayer ) && is_user_aliveiPlayer ))
    {
        
set_user_healthiPlayerVIP_HEALTH );
        
set_user_maxspeediPlayer325.0 );
        
set_user_gravity iPlayer0.50 );
    }


Last edited by Taha_rajper; 09-22-2022 at 16:00.
Taha_rajper is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 15:11   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #6

Thanks <3
It's working fine
crystal xtreme is offline
Old 09-22-2022, 15:14
Taha_rajper
This message has been deleted by Taha_rajper.
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 15:17   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #7

There is one bug in plugin.
I need it just for CT's ( Builders ) It's also working for Terrorists ( Zombies )
Zombies when respawn they have only 150 HP
Kindly Fix this BUG
crystal xtreme is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 15:21   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #8

Quote:
Originally Posted by Taha_rajper View Post
Use this sub-plugin


PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < fun >

#define VIP_FLAG                    ( ADMIN_RESERVATION )
#define VIP_HEALTH                  ( 130 )

#define FBit_Get(%1,%2)             ( %1 &   ( 1 << ( %2 - 1 )))
#define FBit_Set(%1,%2)             ( %1 |=  ( 1 << ( %2 - 1 )))
#define FBit_Clear(%1,%2)           ( %1 &= ~( 1 << ( %2 - 1 )))

new g_bitVip;

public 
plugin_init( )
{
    
register_plugin"Admin - priviliges""1.0""Taha_rajper" );
    
    
RegisterHamHam_Spawn"player""CPlayer__Spawn_P"true );
}

public 
client_putinserveriPlayer )
{
    if( 
get_user_flagsiPlayer ) & VIP_FLAG )
    {
        
FBit_Setg_bitVipiPlayer );
    }
}

public 
client_disconnectiPlayer )
{
    
FBit_Clearg_bitVipiPlayer );
}

public 
CPlayer__Spawn_PiPlayer )
{
    if( 
FBit_Getg_bitVipiPlayer ) && is_user_aliveiPlayer ))
    {
        
set_user_healthiPlayerVIP_HEALTH );
        
set_user_maxspeediPlayer325.0 );
        
set_user_gravity iPlayer0.50 );
    }

Kindly cheak private messages.
crystal xtreme is offline
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 09-22-2022 , 15:28   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #9

Edited, Try now
Taha_rajper is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 15:32   Re: [REQ] VIP Speed gravity fixed health help
Reply With Quote #10

Quote:
Originally Posted by Taha_rajper View Post
Edited, Try now
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// VIP_Abilities.sma
// E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\VIP_A bilities.sma(23) : error 029: invalid expression, assumed zero
// E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\VIP_A bilities.sma(23) : warning 215: expression has no effect
// E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\VIP_A bilities.sma(23) : error 001: expected token: ";", but found "if"
// E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\VIP_A bilities.sma(23) : error 017: undefined symbol "cs_get_user_team"
// E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\VIP_A bilities.sma(23) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file E:\Games\Counter-Strike\cstrike\addons\amxmodx\scripting\compi led\VIP_Abilities.amx (compile failed).
//
// Compilation Time: 0.14 sec
// ----------------------------------------

Press enter to exit ...
crystal xtreme 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 16:54.


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