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

grenade he


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chiken
Member
Join Date: Jan 2006
Old 12-20-2023 , 05:05   grenade he
Reply With Quote #1

hello

it is possible to make a plugin for the red grenade for the t and blue for the ct

THANKS
chiken is offline
IC3k1ng
Senior Member
Join Date: Mar 2023
Location: Argentina
Old 12-20-2023 , 10:56   Re: grenade he
Reply With Quote #2

This plugin should help you: https://forums.alliedmods.net/showthread.php?t=43979

All you need is your 2 models (the red and blue grenade) into a folder and insert this into the plugin config file:

Code:
"models/v_hegrenade.mdl" "yourfoldername/v_yourredgrenade.mdl" "T"
"models/v_hegrenade.mdl" "yourfoldername/v_yourbluegrenade.mdl" "CT"
Note: you obviously need to replace the example names that i put with your real folder and file names!!
__________________


IC3k1ng is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 12-20-2023 , 14:43   Re: grenade he
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "red/blue he"
#define VERSION "1.0"
#define AUTHOR "bugg3r"

new const 
    
V_CT_HEGRENADE[ ] = "yourfoldername/v_yourbluegrenade.mdl",
    
V_T_HEGRENADE[ ] = "yourfoldername/v_yourredgrenade.mdl"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("CurWeapon","HE_skins","be","1=1")
}

public 
plugin_precache()
{
    
precache_model(V_CT_HEGRENADE)
    
precache_model(V_T_HEGRENADE)
}

public 
HE_skins(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
if(get_user_weapon(id) == CSW_HEGRENADE)
    {
        switch(
get_user_team(id))
        {
            case 
1set_pev(idpev_viewmodel2V_T_HEGRENADE// T team
            
case 2set_pev(idpev_viewmodel2V_CT_HEGRENADE// CT team
        
}
    }
    
    return 
PLUGIN_CONTINUE

__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 12-21-2023 , 14:27   Re: grenade he
Reply With Quote #5

Quote:
Originally Posted by mlibre View Post
CurWeapon -> Ham_Item_Deploy
diffrence ??? please
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
chiken
Member
Join Date: Jan 2006
Old 12-21-2023 , 14:41   Re: grenade he
Reply With Quote #6

for grenade trail
chiken is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 12-21-2023 , 15:04   Re: grenade he
Reply With Quote #7

Quote:
Originally Posted by Mo3taz View Post
diffrence ??? please
basically you call a native 100 million times "resource demanding", something you save with ham_ only at the right time...
__________________
mlibre is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 12-21-2023 , 15:21   Re: grenade he
Reply With Quote #8

Quote:
Originally Posted by mlibre View Post
basically you call a native 100 million times "resource demanding", something you save with ham_ only at the right time...
thanks

Quote:
Originally Posted by chiken View Post
for grenade trail
see this or see other plugins on the forum
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
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 23:22.


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