Raised This Month: $ Target: $400
 0% 

Change player size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-25-2013 , 10:36   Change player size
Reply With Quote #1

Hello, i saw somewhere that this is impossible but there are many things what should be impossible but are possible now with some trick.

Anyway here is code:
PHP Code:
public plugin_init() register_forward(FM_SetAbsBox,"i_sizeupdate")
public 
i_sizeupdate(id)
{
    static 
Float:a[3], Float:b[3]
    if(
id == // its me :)
    
{
        
a[0] = -5.0a[1] = -5.0a[2] = -10.0;
        
b[0] = 5.0b[1] = 5.0b[2] = 10.0;
        
engfunc(EngFunc_SetSize,id,a,b)
        
        
set_pev(id,pev_mins,a)
        
set_pev(id,pev_maxs,b)
        
set_pev(id,pev_absmin,a)
        
set_pev(id,pev_absmax,b)
        
dllfunc(DLLFunc_SetAbsBox,id)
    }

Anyway the game will crash just after game has starded ( I can also see my map for a sec )
What is the problem or what i am doing here anyway?
I dont understand it at all, i found this somewhere in this forum.

And as always, thanks!
.Dare Devil. is offline
 


Thread Tools
Display Modes

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:17.


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