well, I have a problem, I'm making a plugin for X person to write / spect spect fence while is alive, my problem is, for example there are 2 ct and 2 tt, tt one dies, and one of them left alive but this type "/ spect" and is transferable to bone SPECT is still alive but spect, but the continual round as the "tt" is still alive but is now spect: S I leave the code, if you please me can help.
and how can i block the flashlight for one person, and as weapons to block one person also and.. if you please me can help. Thanks Sorry for my English
Code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
public plugin_init() {
register_plugin("Invisible spect", "1.5", "Hasler")
register_clcmd("say /spect","Spectador")
register_clcmd("say_team /spect","Spectador")
register_cvar("mp_flashlight", "blockear")
}
public blockear() return PLUGIN_HANDLED
public Spectador(id){
if(is_user_alive(id)){
strip_user_weapons(id)
set_user_godmode(id, 1)
set_user_footsteps(id, 1)
cs_set_user_team(id,CS_TEAM_SPECTATOR,CS_DONTCHANGE)
set_pev(id, pev_effects, (pev(id, pev_effects) | 128) )
set_pev(id, pev_solid, 0)
}
}