Raised This Month: $51 Target: $400
 12% 

CSDM: Tampering with respawning


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-27-2006 , 07:46   CSDM: Tampering with respawning
Reply With Quote #1

I want to control when to respawn dead players. The code used below lags after while.


Code:
set_task(1.0, "task_respawn", _,_,_, "b") public task_respawn() {    if(O_o)    {       new players[32], i       get_players(players, i, "a")       for(new a = 0; a < i; ++a){           new id = players[a]           csdm_respawn(id)       }     } }

I want to know why
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-27-2006 , 08:21  
Reply With Quote #2

Try doing it like this instead:

Code:
set_task(1.0, "task_respawn") public task_respawn() {     if(O_o)     {         new players[32], i         get_players(players, i, "a")         for(new a = 0; a < i; ++a)             csdm_respawn(iplayers[a])     }         set_task(1.0, "task_respawn") }

Also, the actual respawn may be the problem. Maybe it's not removing guns or something after death? I don't know.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 12:40.


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