mam cos takiego, plug jest wiekszy ale wycialem i zostawilem to co mi nie dziala:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fun>
#include <fakemeta_util>
#include <ColorChat>
#define PREFIX "[]"
public plugin_init()
{
register_plugin("Resp za kille", "1.0", "Qu-oT");
register_clcmd("say /losuj", "respawn");
//register_clcmd("say_team /respawn1", "respawn");
register_clcmd("say /frag", "frag");
/// clientprint kolor
}
public frag(id)
{
set_user_frags(id,8)
return PLUGIN_HANDLED;
}
public respawn(id)
{
if(is_user_alive(id))
{
return PLUGIN_HANDLED;
}
static team;
team=get_user_team(id);
if(team!=1 && team!=2)
{
return PLUGIN_HANDLED;
}
if(get_user_frags(id)<4)
{
return PLUGIN_HANDLED;
}
if(random_num(1, 1)=1)
{
static name[33];
get_user_name(id, name, 32);
ExecuteHamB(Ham_CS_RoundRespawn, id);
fm_set_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 1)
set_task(5.0,"endInvi")
return PLUGIN_CONTINUE;
}
else
{
return PLUGIN_CONTINUE;
}
}
public endInvi(id)
{
if(is_user_connected(id) && !is_user_bot(id))
{
fm_set_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 240)
}
}
Po 5 sekundach nie resetuje sie niewidzialność tylko zostaje do końca, brak errorow w logach
Użytkownik Żuk edytował ten post 15.06.2019 15:11


Dodatki SourceMod



Temat jest zamknięty










