i dla każdego gracza osobno ( każdy może użyć tej komendy raz( po przyjściu na serwer)
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <biohazard>
#include <fakemeta>
#define PLUGIN "Ultimate respawn"
#define VERSION "1.2"
#define AUTHOR "naven & amxx.pl & Daku[PL]"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say respawn", "sayrespawn");
register_clcmd("say rr", "sayrespawn");
register_cvar("amx_respawn", "2")
register_cvar("amx_autorespawn", "1")
}
public sayrespawn(id)
{
if (is_user_alive(id)) return PLUGIN_HANDLED;
if (!is_user_connected(id) || cs_get_user_team(id) == CS_TEAM_SPECTATOR) return PLUGIN_HANDLED;
if (get_cvar_num("amx_respawn") == 0)
{
set_pev(id, pev_deadflag, DEAD_RESPAWNABLE);
dllfunc(DLLFunc_Think, id);
dllfunc(DLLFunc_Spawn, id);
return PLUGIN_HANDLED;
}else client_print(0,print_chat,"[BIOHAZARD] Odrodzic mozna sie tylko raz")
return PLUGIN_HANDLED;
}
Użytkownik Daku edytował ten post 24.06.2010 18:54


Dodatki SourceMod



Temat jest zamknięty








