public PlVers:__version =
{
version = 5,
filevers = "1.4.0",
date = "03/31/2012",
time = "10:16:55"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[4];
public Extension:__ext_core =
{
name = "Core",
file = "core",
autoload = 0,
required = 0,
};
new MaxClients;
public __ext_core_SetNTVOptional()
{
MarkNativeAsOptional("GetFeatureStatus");
MarkNativeAsOptional("RequireFeature");
MarkNativeAsOptional("AddCommandListener");
MarkNativeAsOptional("RemoveCommandListener");
VerifyCoreVersion();
return 0;
}
public OnPluginStart()
{
AddCommandListener(ChooseTeam, "jointeam");
return 0;
}
public Action:ChooseTeam(client, String:command[], args)
{
if (client)
{
decl String:teamString[4];
GetCmdArg(1, teamString, 3);
new Target_Team = StringToInt(teamString, 10);
if (Target_Team != 1)
{
ShowVGUIPanel(client, "team", Handle:0, true);
return Action:3;
}
}
return Action:0;
}