Problems with amx_spawn plugin.
Hello. I'm trying to create a plugin that will manually spawn a player.
I have a script installed on my server which does an auto-respawn when the player dies, but when playing a map like surf_egypt and someone presses the "kill afk" button, the players that die dont automatically respawn. here is my script currently Code:
#include <amxmodx>] amx_spawn Jack That action can't be performed on dead client "n^Jack" Is there any way to run an amx_ command on a dead player? I dont see anything in the script that would prohibit that. [edit]Just a side note: the script works when Im alive and i do amx_spawn Jack...[/edit] |
Your cmd_target has the flag 7 which is Obey Immunity, allow yourself and User must be alive... try just a flag of 2.
http://www.amxmodx.org/funcwiki.php?go=func&id=596 |
Thanks!
Most of that code was copied from another script. Trying to get into coding for amx more. |
| All times are GMT -4. The time now is 19:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.