Raised This Month: $ Target: $400
 0% 

AutoRespawn plugin... Not working...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 06-30-2006 , 10:58   Re: AutoRespawn plugin... Not working...
Reply With Quote #1

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("DeathMsg","spawnMe","a") } public spawnMe() {           if (get_cvar_num("amx_autospawn")!=1)     {         return PLUGIN_HANDLED     }               new players[32], num     get_players(players, num)     new i     for (i = 0; i < num; i++)     {         new id = players[i]         if (!is_user_alive(id))         {                   spawn(id)             set_task(0.5, "respawn", id)         }     }     return PLUGIN_CONTINUE } public respawn(id) {         spawn(id) }

Look at that code an compare to yours and you will find your errors.
Gizmo 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 08:00.


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