Raised This Month: $ Target: $400
 0% 

respawn mod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 15:46   Re: respawn mod?
Reply With Quote #1

Use
Code:
ExecuteHamB( Ham_CS_RoundRespawn, 1 )

The current function you're using (spawn()) is not guarunteed to work, unless you correctly use the "fix".

If you're really bent on using spawn(), you can follow Avalanche's instructions from the AMXX Doc;
Quote:
Originally Posted by Avalanche @ AMXX Doc
People have had trouble getting this to work, the below seems to be the "correct" way to do it without any bugs:
Code:
public soandso(id) {    spawn(id);    set_task(0.5,"spawnagain",id); } public spawnagain(id) {    spawn(id); }
You can play around with the 0.5 time.
In your version, you're setting a task for spawnagain, but you're not calling the actual spawn function beforehand.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 05-04-2010 , 16:22   Re: respawn mod?
Reply With Quote #2

I suggest to use ham to hook the killed event and to respawn him. much better and easyer
__________________
I am out of order!
grimvh2 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 03:39.


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