#include public OnPluginStart() { AddCommandListener(JointTeam, "jointeam"); HookEvent("player_team", HookTeam); } public HookTeam(Handle:event, const String:name[], bool:dontBroadcast) if(GetEventInt(event, "team" ) == 3) CreateTimer(1.0, ChangeTeam, GetEventInt(event, "userid")); public Action:ChangeTeam(Handle:timer, any:userid) { new client = GetClientOfUserId(userid); if(client > 0) ChangeClientTeam(client, 2); return Plugin_Stop; } public Action:JointTeam(client, const String:command[], args) { if (client < 1 || args < 1) return Plugin_Handled; decl String:sTeam[3]; GetCmdArg(1, sTeam, sizeof(sTeam)); if(StringToInt(sTeam) != 2) return Plugin_Handled; return Plugin_Continue; }