Raised This Month: $ Target: $400
 0% 

AutoRespawn plugin... Not working...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
smarttart62
Junior Member
Join Date: Jun 2006
Location: Connecticut, USA
Old 06-30-2006 , 09:33   AutoRespawn plugin... Not working...
Reply With Quote #1

Well im trying to make another plugin in which you basically auto-respawn when you die...
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "AutoSpawn" #define VERSION "1.0" #define AUTHOR "Smarttart62" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_cvar("amx_autospawn","1");     register_event("Death","spawnMe","a"); } public spawnMe(){     if (get_cvar_num("amx_autospawn")!=1){         return PLUGIN_HANDLED;     }         new players[32],num;     get_players(players,num);         new ii;     for (ii=0;ii<num;ii++)     {         if (!is_user_alive(ii)){             spawn(ii);             set_task(0.5,"respawn",ii);         }     }         return PLUGIN_CONTINUE; } public respawn(id){     spawn(id); }
It just wont respawn though... And also the cvar keeps saying that it cant be set in a multiplayer game...

Thanks,
-Steve
smarttart62 is offline
Send a message via AIM to smarttart62 Send a message via MSN to smarttart62 Send a message via Skype™ to smarttart62
 



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 08:00.


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