AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Removing an item? (https://forums.alliedmods.net/showthread.php?t=46753)

XRaheemX 11-01-2006 22:31

Removing an item?
 
I'm having a problem that I can't find anything about on here. I have used "give_item" to give the "Longjump" item to a player. I want to be able to "take" the item away from the in the middle of the round without them having to die first. Is this possible? I can't find anything on removing items...

SweatyBanana 11-01-2006 23:15

Re: Removing an item?
 
Store what weapons they have then strip all weapons and give all weapons back other than the longjump 'weapon'.

Note: This may not be the best way to do it..In fact, I am sure it isn't.

Nostrodamous 11-01-2006 23:28

Re: Removing an item?
 
or if you use fm_util you can strip only a selectd weapon from the user. (casue strip user weapons strips everything):up:

XxAvalanchexX 11-02-2006 00:04

Re: Removing an item?
 
Quote:

Originally Posted by Nostrodamous (Post 398518)
or if you use fm_util you can strip only a selectd weapon from the user. (casue strip user weapons strips everything):up:

This doesn't work for "items" such as longjump.

I wonder if you could modify it within private data.

Nostrodamous 11-02-2006 01:44

Re: Removing an item?
 
im sure using a set_pev maybee edict function you could . (thats what the ported fm_util is anyways)

VEN 11-02-2006 03:01

Re: Removing an item?
 
I feel like all you don't know that longjump is stored in the player's PhysicsKeyValue :/
http://forums.alliedmods.net/showthr...6657#post56657

Nostrodamous 11-02-2006 04:46

Re: Removing an item?
 
Quote:

Originally Posted by VEN (Post 398559)
I feel like all you don't know that longjump is stored in the player's PhysicsKeyValue :/
http://forums.alliedmods.net/showthr...6657#post56657

your absoluty right , i have no idea about long jump , but hte thread was named "removing items" which i do know a little about . but i have no idea about long jump, ive never used it . :cry:

OFF SUBJECT : are there any tutorials or info on making include files liek your fm_util pack ? they look very confusing , i understand stock , but the #end if and stuff like that looks confusing :|

SweatyBanana 11-02-2006 08:07

Re: Removing an item?
 
Nostro..

If you admit that you know nothing about removing items, you will be most likely confusing people when posting in this thread..

Although, I did do the same myself.

XxAvalanchexX 11-02-2006 17:00

Re: Removing an item?
 
Quote:

Originally Posted by VEN (Post 398559)
I feel like all you don't know that longjump is stored in the player's PhysicsKeyValue :/
http://forums.alliedmods.net/showthr...6657#post56657

I was never that much into HLDM.

Zenith77 11-02-2006 17:09

Re: Removing an item?
 
Quote:

OFF SUBJECT : are there any tutorials or info on making include files liek your fm_util pack ? they look very confusing , i understand stock , but the #end if and stuff like that looks confusing
If you don't know how to work the preprocesser, go read the basic tutorials.


All times are GMT -4. The time now is 04:49.

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