Quote:
public OnPluginStart() {
// Hook jointeam command
RegConsoleCmd("jointeam", OnJoinTeam);
// Create console variables
cvarForceTeamOnJoin = CreateConVar("sm_force_team_on_join", "RED");
cvarForceTeamOnDeath = CreateConVar("sm_force_team_on_death", "RED");
cvarBlockJoinTeam = CreateConVar("sm_block_join_team", "0");
// Events
HookEvent("player_death", eventPlayerDeath);
HookEvent("player_spawn", eventPlayerSpawn);
HookEvent("teamplay_round_start", eventRoundRestart);
|
HookEvent("player_death", eventPlayerDeath);
cvarForceTeamOnDeath = CreateConVar("sm_force_team_on_death", "RED");
how can me change it, like when afk put player in spec, change player to a team, like despectate, but despectate is incompatible with PlNl0N.
__________________