Raised This Month: $ Target: $400
 0% 

Menu Close + pev_viewmodel2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-28-2017 , 12:09   Re: Menu Close + pev_viewmodel2
Reply With Quote #1

PHP Code:
public ModelChange(w
{
    new 
id get_pdata_cbase(w414);
    if(
id 32 || id || !is_user_alive(id))
    {
        return 
HAM_SUPERCEDE;
    }

    
set_pevidpev_viewmodel2vUspModel ); 
    
set_pevidpev_weaponmodel2pUspModel ); 

__________________
TheWhitesmith is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 11-28-2017 , 13:06   Re: Menu Close + pev_viewmodel2
Reply With Quote #2

Will try, i don't quite understand understand what it means
maqi is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-28-2017 , 13:26   Re: Menu Close + pev_viewmodel2
Reply With Quote #3

if(id > 32 || id < 1 || !is_user_alive(id))

Why? Just do a if(is_user_alive(id)) check.
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-28-2017 , 13:33   Re: Menu Close + pev_viewmodel2
Reply With Quote #4

Quote:
Originally Posted by TheWhitesmith View Post
PHP Code:
public ModelChange(w
{
    new 
id get_pdata_cbase(w414);
    if(
id 32 || id || !is_user_alive(id))
    {
        return 
HAM_SUPERCEDE;
    }

    
set_pevidpev_viewmodel2vUspModel ); 
    
set_pevidpev_weaponmodel2pUspModel ); 



Those checks are unnesscary...

I can assure you that the player is valid and alive

And what ever you return in the post hook will be ignored
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-28-2017 at 13:37.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-28-2017 , 13:45   Re: Menu Close + pev_viewmodel2
Reply With Quote #5

Thank you for the clarifications guys, appreciate it.
__________________
TheWhitesmith is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-28-2017 , 18:53   Re: Menu Close + pev_viewmodel2
Reply With Quote #6

call Ham_Item_Holster, after Ham_Item_Deploy to update the model.

Sorry, I didn't see the second page

Last edited by CrazY.; 11-28-2017 at 18:54.
CrazY. 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 00:50.


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