Raised This Month: $ Target: $400
 0% 

Spawn random items on a map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 01-02-2008 , 16:00   Spawn random items on a map
Reply With Quote #1

Ok i have some questions:

1. How can i spawn an item on a random place in a map?
for example, i want to pick up an m4a1 on a random place in De_dust2, then after i pick it up, 30 seconds later it will spawn somewhere else


2.how can i spawn i knife just like the same way as #1 and be able to pick it up?


thanks
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-02-2008 , 16:16   Re: Spawn random items on a map
Reply With Quote #2

Dont know it might be posiable to create an armour entity and set the values on mapload or ofc when you want to make it...
Culd detect weapon pickup and set a task for recreate Gun?
fxfighter is offline
Send a message via MSN to fxfighter
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-02-2008 , 16:36   Re: Spawn random items on a map
Reply With Quote #3

Take a look in csdm_items.sma.
__________________
Arkshine is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-02-2008 , 16:49   Re: Spawn random items on a map
Reply With Quote #4

i would create spawn points and randomly pick one to spawn it
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 01-03-2008 , 17:24   Re: Spawn random items on a map
Reply With Quote #5

ok ill look in csdm_items, so doest anyone have any i dea to my second question?
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-03-2008 , 22:17   Re: Spawn random items on a map
Reply With Quote #6

spawn it and register touch to give it to player?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow 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 20:45.


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