Raised This Month: $ Target: $400
 0% 

Set something like a bool to an entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-11-2010 , 14:13   Set something like a bool to an entity
Reply With Quote #1

I want to set something like a bool to an entity (exactly a dropped entity, like a weapon).

For example... if a created a new weapon and the player drop that weapon... now is a weaponbox, how to set that weaponbox that is the new weapon that i created? so when other player pickup that weapon he get the NEW weapon and not the default weapon.

You understand? sry, my english is not perfect.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
padilha007
Senior Member
Join Date: Jul 2008
Old 06-11-2010 , 14:39   Re: Set something like a bool to an entity
Reply With Quote #2

check the entity id?
__________________

padilha007 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-11-2010 , 19:59   Re: Set something like a bool to an entity
Reply With Quote #3

Sounds like you are creating a weapon for a player and when dropped it becomes a weaponbox entity. You want to make it so when another player picks it up (touches the weaponbox), he gets the same weapon that the original player dropped?

Try this
PHP Code:
//Set weapon ID to weaponbox entity
set_peviEntity pev_iuser1 WeaponID );

//When touched, retrieve weapon ID from entity
WeaponID peviEntity pev_iuser1 ); 
__________________

Last edited by Bugsy; 06-11-2010 at 20:17.
Bugsy is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-11-2010 , 22:10   Re: Set something like a bool to an entity
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=115160
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Old 06-12-2010, 12:50
wrecked_
This message has been deleted by wrecked_. Reason: look below
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-12-2010 , 12:52   Re: Set something like a bool to an entity
Reply With Quote #6

Quote:
Originally Posted by wrecked_ View Post
Sorry - no matches. Please try some different terms.

__________________
Bugsy is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-12-2010 , 13:05   Re: Set something like a bool to an entity
Reply With Quote #7

Woops

https://forums.alliedmods.net/showthread.php?t=118110 =]
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 14:44.


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