Raised This Month: $ Target: $400
 0% 

random items in map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
outsiderlv
Senior Member
Join Date: Mar 2010
Old 01-16-2011 , 10:49   random items in map
Reply With Quote #1

Can anyone give me a sample code how to create 15 random things (collectable models) in random place of map?
outsiderlv is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 01-16-2011 , 13:26   Re: random items in map
Reply With Quote #2

Create an entity, set a model and register a touch.
fireattack is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 01-17-2011 , 05:27   Re: random items in map
Reply With Quote #3

How can I make that the present spawns only on the ground? And how can I make that the present (random thing) is collectable? Samples would be nice.
outsiderlv is offline
guven5
Senior Member
Join Date: Jul 2010
Location: counter strike 1.6 downl
Old 01-18-2011 , 00:56   Re: random items in map
Reply With Quote #4

i know some present plugin, i guess need some edit for personalise...

LINK: http://forums.alliedmods.net/showthread.php?p=730379
__________________
guven5 is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 01-23-2011 , 09:06   Re: random items in map
Reply With Quote #5

PHP Code:
register_touch"urentity""player""playertouch" 
PHP Code:
public playertouch( const Entityid )
{
         
remove_entityEntity )
         
g_entityid ] += 

fireattack is offline
Reply


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 02:07.


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