AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   random items in map (https://forums.alliedmods.net/showthread.php?t=147961)

outsiderlv 01-16-2011 10:49

random items in map
 
Can anyone give me a sample code how to create 15 random things (collectable models) in random place of map?

fireattack 01-16-2011 13:26

Re: random items in map
 
Create an entity, set a model and register a touch.

outsiderlv 01-17-2011 05:27

Re: random items in map
 
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. :)

guven5 01-18-2011 00:56

Re: random items in map
 
i know some present plugin, i guess need some edit for personalise...

LINK: http://forums.alliedmods.net/showthread.php?p=730379

fireattack 01-23-2011 09:06

Re: random items in map
 
PHP Code:

register_touch"urentity""player""playertouch" 

PHP Code:

public playertouch( const Entityid )
{
         
remove_entityEntity )
         
g_entityid ] += 




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

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