AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to Strip User Item ? (https://forums.alliedmods.net/showthread.php?t=117275)

dFF 01-30-2010 14:53

How to Strip User Item ?
 
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 ?

ujjl 01-30-2010 15:34

Re: How to Strip User Item ?
 
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

dFF 01-31-2010 04:56

Re: How to Strip User Item ?
 
Thanks :)


All times are GMT -4. The time now is 07:17.

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