Raised This Month: $ Target: $400
 0% 

How to Strip User Item ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 01-30-2010 , 14:53   How to Strip User Item ?
Reply With Quote #1

For example:
PHP Code:
strip_user_item(id"item_longjump"
Or:
PHP Code:
strip_user_item(id// Strips all items from user 
Can make someone ?

Last edited by dFF; 01-30-2010 at 14:56.
dFF is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 01-30-2010 , 15:34   Re: How to Strip User Item ?
Reply With Quote #2

PHP Code:
stock set_user_longjump(iPlayer_on 1) {    //force lj to a player, when other methods fail
    
if (!is_user_connected(iPlayer))
        return
    
    if (
_on)
    {
        
set_pdata_int(iPlayer,291,1,5)
        
engfunc(EngFunc_SetPhysicsKeyValueiPlayer"slj","1")
    }
    else
    {
        
set_pdata_int(iPlayer,291,0,5)
        
engfunc(EngFunc_SetPhysicsKeyValueiPlayer"slj","0")
    }

PHP Code:
set_user_longjump(id,0
EDIT: this is only for long-jump, in other case you have to strip all weapons, and give them back except what you wanted to remove
__________________
- blupi blupi
ujjl is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 01-31-2010 , 04:56   Re: How to Strip User Item ?
Reply With Quote #3

Thanks
dFF 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 07:17.


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